hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anacristing" <99403...@qq.com>
Subject Re: About "Could not find the main class: org.apache.hadoop.hdfs.server.namenode.NameNode"
Date Wed, 16 Apr 2014 00:36:09 GMT
It's the same




------------------ Original ------------------
From:  "Shengjun Xin";<sxin@gopivotal.com>;
Date:  Tue, Apr 15, 2014 04:43 PM
To:  "user"<user@hadoop.apache.org>; 

Subject:  Re: About "Could not find the main class: org.apache.hadoop.hdfs.server.namenode.NameNode"



try to use bin/hadoop classpath to check whether the classpath is what you set



On Tue, Apr 15, 2014 at 4:16 PM, Anacristing <99403352@qq.com> wrote:
 Hi,


    I'm trying to setup Hadoop(version 2.2.0) on Windows(32-bit) with cygwin(version 1.7.5).
     I export JAVA_HOME=/cygdrive/c/Java/jdk1.7.0_51 in hadoop-env.sh 
    and the classpath is
/home/Administrator/hadoop-2.2.0/etc/hadoop:
/home/Administrator/hadoop-2.2.0/share/hadoop/common/lib/*:
 /home/Administrator/hadoop-2.2.0/share/hadoop/common/*:
/home/Administrator/hadoop-2.2.0/share/hadoop/hdfs:
/home/Administrator/hadoop-2.2.0/share/hadoop/hdfs/lib/*:
/home/Administrator/hadoop-2.2.0/share/hadoop/hdfs/*:
 /home/Administrator/hadoop-2.2.0/share/hadoop/yarn/lib/*:
/home/Administrator/hadoop-2.2.0/share/hadoop/yarn/*:
/home/Administrator/hadoop-2.2.0/share/hadoop/mapreduce/lib/*:
/home/Administrator/hadoop-2.2.0/share/hadoop/mapreduce/*:
 /contrib/capacity-scheduler/*.jar



    when I execute "bin/hdfs namenode -format", I get "Could not find the main class: org.apache.hadoop.hdfs.server.namenode.NameNode"
 

Anybody know why?


Thanks!






-- 
Regards 

Shengjun
Mime
View raw message