I am newbie and I am trying to find out a solution to this problem. I have followed this turorial in order to setup Hadoop 2.7.2 on Ubuntu 15.10
http://idroot.net/tutorials/how-to-install-apache-hadoop-on-ubuntu-14-04/
When I launch "hdfs namenode format" I continue to receive this error Error: Could not find or load main class org.apache.hadoop.hdfs.server.namenode.NameNode
this is the bashrc content
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export HADOOP_INSTALL=/usr/local/hadoop
export PATH=$PATH:$HADOOP_INSTALL/bin
export PATH=$PATH:$HADOOP_INSTALL/sbin
export HADOOP_MAPRED_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_HOME=$HADOOP_INSTALL
export HADOOP_HDFS_HOME=$HADOOP_INSTALL
export YARN_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_INSTALL/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_INSTALL/lib"
Can anyone help me to solve this (stupid I think) question?
Many thanks Kama
First make sure that the directories namenode and datanode already exist in the location specified within the
hdfs-site.xml
file. You can use the commandmkdir
to create those.Then try to format the namenode using
or
Please note the hyphen.
My bashrc configuration for hadoop: