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, 2019 in Big Data Hadoop by Sunny
    1,066 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, 2019 by Gitika
    • 65,910 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,830 points
    813 views
    +1 vote
    1 answer

    bash: sbin/hadoop: No such file or directory

    The hadoop command is not present in ...READ MORE

    answered Sep 18, 2019 in Big Data Hadoop by Omkar
    • 69,210 points
    3,489 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
    • 11,380 points

    edited May 9, 2018 by nitinrawat895 7,803 views
    0 votes
    1 answer
    +1 vote
    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
    • 11,380 points
    10,555 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
    • 11,380 points
    2,184 views
    +2 votes
    11 answers

    hadoop fs -put command?

    Hi, You can create one directory in HDFS ...READ MORE

    answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
    • 11,380 points
    104,187 views
    –1 vote
    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,390 points
    4,260 views
    0 votes
    1 answer
    webinar REGISTER FOR FREE WEBINAR X
    REGISTER NOW
    webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP