hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuti Awasthi <stutiawas...@hcl.com>
Subject RE: Mounting HDFS
Date Sat, 07 Jan 2012 08:35:49 GMT
Hi Alo,Srivas,

Thanks for pointing this out. I am still getting the same error. This time with fuse_dfs_wrapper.sh
I echoed the environment variables value also.

[root@slave fuse-dfs]# ./fuse_dfs_wrapper.sh dfs://slave:54310 /root/FreshMount/mnt1/ -d

CLASSPATH=/usr/java/jdk1.6.0_30/jre/lib/rt.jar:/usr/java/jdk1.6.0_30/jre/lib/jce.jar:/usr/java/jdk1.6.0_30/jre/lib/javaws.jar:/usr/java/jdk1.6.0_30/jre/lib/deploy.jar:/usr/java/jdk1.6.0_30/jre/lib/jsse.jar:/usr/java/jdk1.6.0_30/jre/lib/plugin.jar:ls:/root/FreshMount/hadoop-0.20.2/lib/commons-cli-1.2.jar:/root/FreshMount/hadoop-0.20.2/lib/commons-codec-1.3.jar:/root/FreshMount/hadoop-0.20.2/lib/commons-el-1.0.jar:/root/FreshMount/hadoop-0.20.2/lib/commons-httpclient-3.0.1.jar:/root/FreshMount/hadoop-0.20.2/lib/commons-logging-1.0.4.jar:/root/FreshMount/hadoop-0.20.2/lib/commons-logging-api-1.0.4.jar:/root/FreshMount/hadoop-0.20.2/lib/commons-net-1.4.1.jar:/root/FreshMount/hadoop-0.20.2/lib/core-3.1.1.jar:/root/FreshMount/hadoop-0.20.2/lib/hsqldb-1.8.0.10.jar:/root/FreshMount/hadoop-0.20.2/lib/jasper-compiler-5.5.12.jar:/root/FreshMount/hadoop-0.20.2/lib/jasper-runtime-5.5.12.jar:/root/FreshMount/hadoop-0.20.2/lib/jets3t-0.6.1.jar:/root/FreshMount/hadoop-0.20.2/lib/jetty-6.1.14.jar:/root/FreshMount/hadoop-0.20.2/lib/jetty-util-6.1.14.jar:/root/FreshMount/hadoop-0.20.2/lib/junit-3.8.1.jar:/root/FreshMount/hadoop-0.20.2/lib/kfs-0.2.2.jar:/root/FreshMount/hadoop-0.20.2/lib/log4j-1.2.15.jar:/root/FreshMount/hadoop-0.20.2/lib/mockito-all-1.8.0.jar:/root/FreshMount/hadoop-0.20.2/lib/oro-2.0.8.jar:/root/FreshMount/hadoop-0.20.2/lib/servlet-api-2.5-6.1.14.jar:/root/FreshMount/hadoop-0.20.2/lib/slf4j-api-1.4.3.jar:/root/FreshMount/hadoop-0.20.2/lib/slf4j-log4j12-1.4.3.jar:/root/FreshMount/hadoop-0.20.2/lib/xmlenc-0.52.jar:/root/FreshMount/hadoop-0.20.2/hadoop-0.20.2-ant.jar:/root/FreshMount/hadoop-0.20.2/hadoop-0.20.2-core.jar:/root/FreshMount/hadoop-0.20.2/hadoop-0.20.2-examples.jar:/root/FreshMount/hadoop-0.20.2/hadoop-0.20.2-test.jar:/root/FreshMount/hadoop-0.20.2/hadoop-0.20.2-tools.jar

LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/root/FreshMount/hadoop-0.20.2/build/libhdfs:/usr/java/jdk1.6.0_30/jre/lib/i386/server/:/lib/libfuse.so

JAVA_HOME=/usr/java/jdk1.6.0_30

Error:
port=54310,server=slave
fuse-dfs didn't recognize /root/FreshMount/mnt1/,-2
fuse-dfs ignoring option -d
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.10
flags=0x0000000b
max_readahead=0x00020000
   INIT: 7.8
   flags=0x00000001
   max_readahead=0x00020000
   max_write=0x00020000
   unique: 1, error: 0 (Success), outsize: 40
unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 56
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

-----Original Message-----
From: alo.alt [mailto:wget.null@googlemail.com]
Sent: Friday, January 06, 2012 10:41 PM
To: hdfs-user@hadoop.apache.org
Subject: Re: Mounting HDFS

Stuti, define in CLASSPATH="...." only the jars you really need for. An export of all jars
in a given directory is a red flag (done with *.jar).

- Alex


On Jan 6, 2012, at 7:23 AM, M. C. Srivas wrote:

>
>   unique: 1, error: 0 (Success), outsize: 40
> unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 56 Error occurred during initialization
of VM
> java/lang/NoClassDefFoundError: java/lang/Object
>
> Exported Environment Variable:
>
> CLASSPATH="/root/FreshMount/hadoop-0.20.2/lib/*.jar:/root/FreshMount/hadoop-0.20.2/*.jar:/usr/bin/java:/usr/local/lib:/usr/lib:/usr/:/usr/java/jdk1.6.0_26/jre/lib/rt.jar:/usr/java/jdk1.6.0_26/jre/lib/"
>
>
> CLASSPATH is a list of jars, not a list of directories
>
>
> I know that this is simple Java Classpath Error but I have set JAVA_HOME correctly.
>
> [root@slave ~]# which java
> /usr/bin/java
>


::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named
recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or
opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of
HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and
/ or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited.
If you have
received this email in error please delete it and notify the sender immediately. Before opening
any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

Mime
View raw message