You are missing libkfs_access.so
can you copy this file over?
Sriram
On Sunday, May 8, 2011, Tung Nguyen <
beta...@yahoo.com> wrote:
> Hi
Sriram,
> Thank you for your reply. Actually, in the
http://sourceforge.net/apps/trac/kosmosfs/wiki/UsingWithHadoop, there's an instruction about LD_LIBRARY_PATH. I followed that so I have LD_LIBRARY_PATH point to kfs/lib.I also exported it out$ echo $LD_LIBRARY_PATH /home/mine/kfs-0.5/build/lib
> Anyway, I tried to copy that lib to the Hadoop native lib directory: ls lib/native/Linux-amd64-64/libhadoop.a libhadoop.so
libhadoop.so.1.0.0libhadoop.la libhadoop.so.1 libkfsClient.so
> I still got the same error: java.lang.UnsatisfiedLinkError: no kfs_access in java.library.path at
>
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1028) at org.kosmix.kosmosfs.access.KfsAccess.<clinit>(KfsAccess.java:103)....ThanksTT
>
> --- On Sun, 5/8/11, Sriram Rao <
srira...@gmail.com> wrote:
>
> From: Sriram Rao <
srira...@gmail.com>
> Subject: Re: [Kosmosfs-users] Unable to load kfs_access native library in Hadoop
> To: "Tung Nguyen" <
beta...@yahoo.com>
> Cc:
kosmosf...@lists.sourceforge.net> Date: Sunday, May 8, 2011, 2:46 PM
>
>
> The bit you missed:
> Update the LD_LIBRARY_PATH environment variable so that libkfsClient.so can be loaded
>
> The
easiest way to fix this is to copy the libkfsaccess.so from build/lib
> to: /home/mine/hadoop-0.20.2/bin/../lib/native/Linux-amd64-64
>
>
> Sriram
>
>
> On Sun, May 8, 2011 at 8:22 AM, Tung Nguyen <
beta...@yahoo.com> wrote:
>
> Hi,I tried to use Hadoop with KFS. I followed the instruction at
http://sourceforge.net/apps/trac/kosmosfs/wiki/UsingWithHadoop> but when I issued #bin/hadoop fs -fs
kfs://localhost:20000 -ls /I got the following error. I used hadoop-0.20.0 and KFS-0.5
> java.lang.UnsatisfiedLinkError: no kfs_access in java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1028)
> at org.kosmix.kosmosfs.access.KfsAccess.<clinit>(KfsAccess.java:103)
> at org.apache.hadoop.fs.kfs.KFSImpl.<init>(KFSImpl.java:45)
> at org.apache.hadoop.fs.kfs.KosmosFileSystem.initialize(KosmosFileSystem.java:70) at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1378)
> at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1390) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:196)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:95) at org.apache.hadoop.fs.FsShell.init(FsShell.java:82) at org.apache.hadoop.fs.FsShell.run(FsShell.java:1731)
> at
> org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) at
> org.apache.hadoop.fs.FsShell.main(FsShell.java:1880)
> Unable to load kfs_access native library: /home/mine/hadoop-0.20.2/bin/../lib/native/Linux-amd64-64
> I am sure that KFS and Hadoop are working fine. I used kfsshell to create dir, copy file to kfs and hdfs without any problem.
> In
the /home/mine/hadoop-0.20.2/lib/native/Linux-amd64-64 dir I have:-rw-r--r-- 1 mine mine 115416 2010-02-19 03:07 libhadoop.a-rw-r--r-- 1 mine mine 904 2010-02-19 03:07
libhadoop.la> -rw-r--r-- 1 mine mine 75669 2010-02-19 03:07 libhadoop.so-rw-r--r-- 1 mine mine 75669 2010-02-19 03:07 libhadoop.so.1-rw-r--r-- 1 mine mine 75669 2010-02-19 03:07
> libhadoop.so.1.0.0
> Please help me out.Thank youTT
> ------------------------------------------------------------------------------
>
> WhatsUp Gold - Download Free Network Management Software
>
> The most intuitive, comprehensive, and cost-effective
> network
>
> management toolset available today. Delivers lowest initial
>
> acquisition cost and overall TCO of any competing solution.
>
>
http://p.sf.net/sfu/whatsupgold-sd> _______________________________________________
>
> Kosmosfs-users mailing list
>
>
Kosmosf...@lists.sourceforge.net>
>
https://lists.sourceforge.net/lists/listinfo/kosmosfs-users>
>
>
>
>