Without -Djava.library.path=/opt/mapr/hadoop/hadoop-0.20.2/lib/native/Linux-amd64-64/ as an argument to running Java, I get the following error,
2013-11-13 15:23:29,414 WARN pool-3-thread-3 org.apache.hadoop.util.NativeCodeLoader Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2013-11-13 15:23:29,414 INFO pool-3-thread-3 org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback Falling back to shell based
What does this mean? Is it slower to use shell based? Should I fix this? Should I care about this warning?
FYI this error (or an UnspecifiedLinkError) can be fixed by either of the following,
- See this answer for details setting the java.library.path - rhive.connect() issues with MapR distribution
To the file hadoop-env.sh add the following line
export HADOOP_CLIENT_OPTS=-Djava.library.path=$HADOOP_HOME/lib/native/Linux-amd64-64/
Thanks for the help.