incubator-accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John W Vines <john.w.vi...@ugov.gov>
Subject Re: Failed to load native map library: libNativeMap-Linux-i386-32.so
Date Fri, 30 Dec 2011 04:31:09 GMT


----- Original Message -----
| From: "David Medinets" <david.medinets@gmail.com>
| To: "accumulo-user" <accumulo-user@incubator.apache.org>
| Sent: Thursday, December 29, 2011 6:52:47 PM
| Subject: Failed to load native map library: libNativeMap-Linux-i386-32.so
| I am trying to get the following command to run:
| 
| bin/accumulo shell -u root
| 
| and still getting the "Failed to find an available server in the list
| of servers" message.
| 
| --
| -- How to make libNativeMap optional?
| --
| 
| In tserver_ubuntu20gb.debug.log, I am seeing this error:
| 
| Failed to load native map library
| /home/ubuntu/accumulo-1.5.0-incubating-SNAPSHOT/lib/native/map/libNativeMap-Linux-i386-32.so
| Uncaught exception in TabletServer.main, exiting
| 
| I read through JIRA ACCUMULO-185 at
| 
| http://www.mail-archive.com/accumulo-dev@incubator.apache.org/msg00986.html
| 
| While the JIRA comments say the lib is optional, it does not say how
| to resolve the uncaught exception. I notice that the error message
| says that the tablet server is exiting.
| 
| --
| -- Compilation Attempt
| --
| 
| I switched to the C++ directory and ran make with these results:
| 
| $ make
| cd nativeMap ; make
| make[1]: Entering directory
| `/home/ubuntu/accumulo-1.5.0-incubating-SNAPSHOT/src/server/src/main/c++/nativeMap'
| g++ -g -fPIC -shared -O2 -fno-omit-frame-pointer -fno-strict-aliasing
| -Wall -I/usr/lib/jvm/java-7-openjdk-i386/include/linux
| -I/usr/lib/jvm/java-7-openjdk-i386/include -m64 -o
| libNativeMap-Linux-amd64-64.so
| org_apache_accumulo_server_tabletserver_NativeMap.cc util.cc
| In file included from /usr/include/stdio.h:28:0,
| from /usr/lib/jvm/java-7-openjdk-i386/include/jni.h:39,
| from org_apache_accumulo_server_tabletserver_NativeMap.h:18,
| from org_apache_accumulo_server_tabletserver_NativeMap.cc:17:
| /usr/include/features.h:323:26: fatal error: bits/predefs.h: No such
| file or directory
| compilation terminated.
| In file included from /usr/include/unistd.h:26:0,
| from util.cc:17:
| /usr/include/features.h:323:26: fatal error: bits/predefs.h: No such
| file or directory
| compilation terminated.
| make[1]: *** [libNativeMap-Linux-amd64-64.so] Error 1
| make[1]: Leaving directory
| `/home/ubuntu/accumulo-1.5.0-incubating-SNAPSHOT/src/server/src/main/c++/nativeMap'
| make: *** [nm] Error 2
| 
| I have the missing predefs.h file at
| 
| /usr/include/i386-linux-gnu/bits/predefs.h
| 
| But I don't know how to tell the accumulo make about that location.
| 
| --
| 
| Please let know if there is a way to resolve either of these two
| issues.
| 
| Thanks.

While this doesn't resolve the problem you have found, it is worth noting that in absence
of any native map libraries the default map will be used. No configuration changes need to
be made to tell the system to use the native or default maps, rather it attempts to load the
native map and will fall back to the default map if necessary.

John

Mime
View raw message