AnsweredAssumed Answered

wrong ELF class: ELFCLASS64 using HDFS API

Question asked by matroyd on Jun 25, 2012
Latest reply on Aug 8, 2017 by sagarsoni
While trying to use HDFS API on MapR from Linux, getting the following error. What could be the root cause?

    java.lang.UnsatisfiedLinkError: /libs/libMapRClient.so: /libs/libMapRClient.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
     at java.lang.ClassLoader$NativeLibrary.load(Native Method)
     at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
     at java.lang.Runtime.loadLibrary0(Runtime.java:823)
     at java.lang.System.loadLibrary(System.java:1028)
     at com.mapr.fs.MapRFileSystem.<clinit>(MapRFileSystem.java:1019)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:247)
     at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1028)
     at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1079)
     at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1531)
     at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:69)
     at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:1571)
     at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1553)
     at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:232)
     at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:115)
     at XXXX.getMaprFS(XXXX.java:338)
     at XXXX.writeFile(XXXX.java:285)
    Unable to load libMapRClient.so native library

Outcomes