Hadoop: Error: slave: bash: line 0: cd: /opt/hadoop-1.1.0/libexec/..: No such file or directory

0 votes

Master running on Ubuntu and Salve running on different OS. One of the Slave running on windows. In this case windows doesn't have the same path as Master HADOOP_PATH running on Ubuntu.

 In my case

Master node HADOOP_PATH : /opt/hadoop-1.1.0

Slave Node HADOOP_PATH : /opt/softwares/hadoop-1.1.0

while i'm starting Master node by,

bin$start-dfs.sh

It's throwing error:

slave: bash: line 0: cd: /opt/hadoop-1.1.0/libexec/..: No such file or directory
slave: bash: /opt/hadoop-1.1.0/bin/hadoop-daemon.sh: No such file or directory

Can someone help how to come out of this error?

    Aug 7 in Big Data Hadoop by Sunny
    18 views

    1 answer to this question.

    0 votes

    Hi,

      In this case, it is searching the same path as master on the slave, but Salve has a different path. Create the same user for both Master and Slave node. Create same path (dir) as master on salve and then create the symbolic link for the actual path.

    This issue can be solved in two ways:

    1. Create the same path and then create a symbolic link from the actual path. (OR)
    2. Start Salve daemons manually by  start-dfs.sh (OR)
    3. bin#./hadoop-daemon.sh start datanode 

    Hope it helps.

    answered Aug 7 by Gitika
    • 25,300 points

    Related Questions In Big Data Hadoop

    0 votes
    1 answer

    Hadoop Pipe: shared libraries, No such file or directory error

    Add -rpath my.zip/lib to LDFLAGS_HDP. For compilation to work, you ...READ MORE

    answered Aug 30, 2018 in Big Data Hadoop by Frankie
    • 9,810 points
    55 views
    0 votes
    1 answer

    “no such file or directory" in case of hadoop fs -ls

    The behaviour that you are seeing is ...READ MORE

    answered May 9, 2018 in Big Data Hadoop by nitinrawat895
    • 10,490 points

    edited May 9, 2018 by nitinrawat895 2,084 views
    0 votes
    1 answer
    0 votes
    1 answer

    Hadoop: `.' no such file or directory while installing

    Try hadoop fs -mkdir -p /user/[Username] and then run ...READ MORE

    answered Nov 2, 2018 in Big Data Hadoop by Omkar
    • 67,290 points
    60 views
    0 votes
    1 answer

    Hadoop Mapreduce word count Program

    Firstly you need to understand the concept ...READ MORE

    answered Mar 16, 2018 in Data Analytics by nitinrawat895
    • 10,490 points
    2,315 views
    0 votes
    1 answer

    hadoop.mapred vs hadoop.mapreduce?

    org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

    answered Mar 16, 2018 in Data Analytics by nitinrawat895
    • 10,490 points
    237 views
    0 votes
    10 answers

    hadoop fs -put command?

    put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

    answered Dec 7, 2018 in Big Data Hadoop by Aditya
    11,915 views
    0 votes
    1 answer

    Hadoop dfs -ls command?

    In your case there is no difference ...READ MORE

    answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
    • 9,240 points
    881 views
    0 votes
    1 answer