Showing posts with label hadoop. Show all posts
Showing posts with label hadoop. Show all posts

Monday, December 30, 2013

How to fix hadoop 2.2.0 with 64bit os ploblem

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/.