This just means your classpath is not set properly, so when fuse-dfs uses
libhdfs to try and connect to your server, it cannot instantiate hadoop
objects.

I have a JIRA open to improve error messaging when this happens:

https://issues.apache.org/jira/browse/HADOOP-3918

If you use the fuse_dfs_wrapper.sh, you should be able to set HADOOP_HOME
and it will create the classpath for you.

In retrospect, fuse_dfs_wrapper.sh should probably complain and exit if
HADOOP_HOME is not set.

-- pete


On 8/7/08 2:35 PM, "Sebastian Vieira" <[EMAIL PROTECTED]> wrote:

> On Thu, Aug 7, 2008 at 4:25 PM, Pete Wyckoff <[EMAIL PROTECTED]> wrote:
> 
>> 
>> Hi Sebastian,
>> 
>> Those 2 things are just warnings and shouldn't cause any problems.  What
>> happens when you ls /mnt/hadoop ?
> 
> 
> [EMAIL PROTECTED] fuse-dfs]# ls /mnt/hadoop
> ls: /mnt/hadoop: Transport endpoint is not connected
> 
> Also, this happens when i start fuse-dfs in one terminal, and do a df -h in
> another:
> 
> [EMAIL PROTECTED] fuse-dfs]# ./fuse_dfs_wrapper.sh dfs://master:9000 
> /mnt/hadoop
> -d
> port=9000,server=master
> fuse-dfs didn't recognize /mnt/hadoop,-2
> fuse-dfs ignoring option -d
> unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
> INIT: 7.8
> flags=0x00000003
> max_readahead=0x00020000
>    INIT: 7.8
>    flags=0x00000001
>    max_readahead=0x00020000
>    max_write=0x00100000
>    unique: 1, error: 0 (Success), outsize: 40
> unique: 2, opcode: STATFS (17), nodeid: 1, insize: 40
> 
> -now i do a df -h in the other term-
> 
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/hadoop/conf/Configuration
> Caused by: java.lang.ClassNotFoundException:
> org.apache.hadoop.conf.Configuration
>     at java.net.URLClassLoader$1.run(Unknown Source)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(Unknown Source)
>     at java.lang.ClassLoader.loadClass(Unknown Source)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>     at java.lang.ClassLoader.loadClass(Unknown Source)
>     at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> 
> Then the output from df is:
> 
> df: `/mnt/hadoop': Software caused connection abort
> 
> 
> 
>>  And also what version of fuse-dfs are you
>> using? The handling of options is different in trunk than in the last
>> release.
> 
> 
> [EMAIL PROTECTED] fuse-dfs]# ./fuse_dfs --version
> ./fuse_dfs 0.1.0
> 
> I did a checkout of the latest svn and compiled using the command you gave
> in one of your previous mails.
> 
> 
>> 
>> You can also look in /var/log/messages.
>> 
> 
> Only one line:
> Aug  7 20:21:05 master fuse_dfs: mounting dfs://master:9000/
> 
> 
> Thanks for your time,
> 
> 
> Sebastian

Reply via email to