Error while starting Hadoop

Discussion in 'Big Data and Analytics' started by Pranjal Khatoniar, Feb 12, 2016.

  1. Pranjal Khatoniar

    Alumni

    Joined:
    Jan 13, 2016
    Messages:
    6
    Likes Received:
    0
    When I tried to start Hadoop by trying this "start-dfs.sh" as shown below I am getting error message

    pranjal@pranjal-VirtualBox:/usr/local/hadoop/etc/hadoop$ hadoop /sbin/start-dfs.sh
    Error: Could not find or load main class .sbin.start-dfs.sh

    I checked the $HOME/.bashrc where I see the below entries


    export HADOOP_HOME=/usr/local/hadoop
    export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
    export PATH=$PATH:$HADOOP_HOME/bin

    I double checked these and entries seems fine -
    1. hdfs-site.xml
    2. yarn-site.xml
    3. core-site.xml

    Can you kindly suggest how to proceed
     
    #1
  2. Pranjal Khatoniar

    Alumni

    Joined:
    Jan 13, 2016
    Messages:
    6
    Likes Received:
    0
    Can someone from support or anyone help me please ?
     
    #2
  3. DeshDeep Singh

    DeshDeep Singh Well-Known Member
    Simplilearn Support Alumni

    Joined:
    Sep 22, 2015
    Messages:
    935
    Likes Received:
    66
    Hi Pranjal,

    This error comes only when jar files are not present in your folder. So that means installation was not done correctly. I would recommend to follow below document that will help you resolve this error as installation needs to be done again and with proper commands.
     

    Attached Files:

    #3

Share This Page