hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srinivas Chamarthi <srinivas.chamar...@gmail.com>
Subject Re: Errors running Hadoop 2.2.0 on Cygwin
Date Tue, 26 Nov 2013 17:14:29 GMT
now I have the legitimate classpath

/cygdrive/c/hadoop-2.2.0/etc/hadoop:/cygdrive/c/hadoop-2.2.0/share/hadoop/common/lib/*:/cygdrive/c/hadoop-2.2.0/share/hadoop/common/*:/cygdrive/c/hadoop-2.2.0/share/hadoop/hdfs:/cygdrive/c/hadoop-2.2.0/share/hadoop/hdfs/lib/*:/cygdrive/c/hadoop-2.2.0/share/hadoop/hdfs/*:/cygdrive/c/hadoop-2.2.0/share/hadoop/yarn/lib/*:/cygdrive/c/hadoop-2.2.0/share/hadoop/yarn/*:/cygdrive/c/hadoop-2.2.0/share/hadoop/mapreduce/lib/*:/cygdrive/c/hadoop-2.2.0/share/hadoop/mapreduce/*:/cygdrive/c/hadoop-2.2.0/contrib/capacity-scheduler/*.jar

but I still have the same issue. any help ?

thx
srinivas


On Mon, Nov 25, 2013 at 11:41 AM, Srinivas Chamarthi <
srinivas.chamarthi@gmail.com> wrote:

> added echo $CLASSPATH in libexec/hadoop-config.sh and here is what it
> contains
>
>
>
> C:\hadoop-2.2.0\etc\hadoop;C:\hadoop-2.2.0\share\hadoop\common\lib\*;C:\hadoop-2.2.0\share\hadoop\common\*:/cygdrive/c/hadoop-2.2.0/share/hadoop/hdfs:/cygdrive/c/hadoop-2.2.0/share/hadoop/hdfs/lib/*:/cygdrive/c/hadoop-2.2.0/share/hadoop/hdfs/*:/cygdrive/c/hadoop-2.2.0/share/hadoop/yarn/lib/*:/cygdrive/c/hadoop-2.2.0/share/hadoop/yarn/*:/cygdrive/c/hadoop-2.2.0/share/hadoop/mapreduce/lib/*:/cygdrive/c/hadoop-2.2.0/share/hadoop/mapreduce/*:/cygdrive/c/hadoop-2.2.0//contrib/capacity-scheduler/*.jar
>
> I can clearly see windows paths in the  classpath. I think is the reason
> for the issue. But I haven't mentioned anything expilcitly with windows
> based paths
>
> this is what is mentioned in my ~/.bashrc file
>
> export HADOOP_HOME=/cygdrive/c/hadoop-2.2.0/
> export HADOOP_MAPRED_HOME=/cygdrive/c/hadoop-2.2.0
> export HADOOP_COMMON_HOME=/cygdrive/c/hadoop-2.2.0
> export HADOOP_HDFS_HOME=/cygdrive/c/hadoop-2.2.0
> export YARN_HOME=/cygdrive/c/hadoop-2.2.0
> export HADOOP_CONFIG_DIRECTORY=/cygdrive/c/hadoop-2.2.0/etc/hadoop
>
>
>
> On Mon, Nov 25, 2013 at 10:43 AM, Ted Yu <yuzhihong@gmail.com> wrote:
>
>> Can you show us the classpath ?
>>
>> Cheers
>>
>>
>> On Tue, Nov 26, 2013 at 2:40 AM, Srinivas Chamarthi <
>> srinivas.chamarthi@gmail.com> wrote:
>>
>>> I have the following error while running 2.2.0 using cygwin. anyone can
>>> help with the problem ?
>>>
>>> /cygdrive/c/hadoop-2.2.0/bin
>>> $ ./hdfs namenode -format
>>> java.lang.NoClassDefFoundError:
>>> org/apache/hadoop/hdfs/server/namenode/NameNode
>>> Caused by: java.lang.ClassNotFoundException:
>>> org.apache.hadoop.hdfs.server.namenode.NameNode
>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>> Could not find the main class:
>>> org.apache.hadoop.hdfs.server.namenode.NameNode.  Program will exit.
>>> Exception in thread "main"
>>>
>>>
>>>
>>
>

Mime
View raw message