Installing hadoop-2.5.2 on Ubantu-12 Error during Implementation "bin/hdfs namenode –format"



0
Error Message: Exception in thread "main" java.lang.NoClassDefFoundError: export
Caused by: java.lang.ClassNotFoundException: export
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: export. Program will exit.
--------------------------------------------------------------
Configuration Details
$ sudo vi ~/.bashrc
export JAVA_HOME='/usr/lib/jvm/java-6-openjdk-i386'
export JRE_HOME='/usr/lib/jvm/java-6-openjdk-i386/jre'
export HADOOP_PREFIX='/usr/lib/hadoop/hadoop-2.5.2’
export HADOOP_HOME=$HADOOP_PREFIX/bin
export PATH=$PATH:$JAVA_HOME:$JRE_HOME:$HADOOP_PREFIX:$HADOOP_HOME

$ source ~/.bashrc

$ sudo vi /usr/lib/hadoop/hadoop-2.5.1/etc/hadoop/hadoop-env.sh
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386
export HADOOP_OPTS=”-Djava.net.preferIPv4Stack=true”
export HADOOP_PREFIX=/usr/lib/hadoop/hadoop-2.5.2


4 Answer(s)


0

hi Venkateswara,

Let us know that command were you trying to execute. the error was not able to execute the command, whatever it is

0

bin/hdfs namenode -format
This is the command

0

>hadoop namenode -format

0

used the command: bin/hadoop namenode -format
Error Message:
root@ubuntu:/usr/lib/hadoop/hadoop-2.5.2# bin/hadoop namenode -format
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

HADOOP_HDFS_HOME not found!

Used the command: bin/hdfs namenode -format
Exception in thread "main" java.lang.NoClassDefFoundError: export
Caused by: java.lang.ClassNotFoundException: export

Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password