hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shengjun Xin <s...@gopivotal.com>
Subject Re: About "Could not find the main class: org.apache.hadoop.hdfs.server.namenode.NameNode"
Date Tue, 15 Apr 2014 08:43:17 GMT
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