If you show a message
"WARN util.NativeCodeLoader: Unable to load native-hadoop library for
your platform."
you need to build hadoop source
1. download hadoop source
2. edit pom.xml
https://issues.apache.org/jira/browse/HADOOP-10110
3. build hadoop
mvn package -Pnative -DskipTests
4. copy libhadoop.so.1.0.0
cp hadoop-common-project/hadoop-common/target/native/target/usr/local/lib/libhadoop.so.1.0.0 /usr/local/hadoop/lib/native/.
Thank you :D
ReplyDelete