Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-845 Native hadoop libs not available through maven.

Andrzej Bialecki8707be945416
diff --git a/CHANGES.txt b/CHANGES.txt
index 9270e2e96..0dc9e841a 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,8 @@ Nutch Change Log
Release 2.0 - Current Development
+* NUTCH-845 Native hadoop libs not available through maven (ab)
+
* NUTCH-843 Separate the build and runtime environments (ab)
* NUTCH-821 Use ivy in nutch builds (Enis Soztutar, jnioche)
diff --git a/build.xml b/build.xml
index f0e9c4ba6..27e9089f7 100644
--- a/build.xml
+++ b/build.xml
@@ -159,6 +159,9 @@
<!-- local area -->
<copy file="${build.dir}/${final.name}.jar"
todir="${runtime.local}/lib"/>
+ <copy todir="${runtime.local}/lib/native">
+ <fileset dir="lib/native"/>
+ </copy>
<copy todir="${runtime.local}/conf">
<fileset dir="conf"/>
</copy>
diff --git a/lib/native/Linux-amd64-64/libhadoop.a b/lib/native/Linux-amd64-64/libhadoop.a
deleted file mode 100644
index b58ebdd43..000000000
Binary files a/lib/native/Linux-amd64-64/libhadoop.a and /dev/null differ
diff --git a/lib/native/Linux-amd64-64/libhadoop.so b/lib/native/Linux-amd64-64/libhadoop.so
deleted file mode 100644
index 759d0bace..000000000
Binary files a/lib/native/Linux-amd64-64/libhadoop.so and /dev/null differ
diff --git a/lib/native/Linux-amd64-64/libhadoop.so.1 b/lib/native/Linux-amd64-64/libhadoop.so.1
deleted file mode 100644
index 759d0bace..000000000
Binary files a/lib/native/Linux-amd64-64/libhadoop.so.1 and /dev/null differ
diff --git a/lib/native/Linux-amd64-64/libhadoop.so.1.0.0 b/lib/native/Linux-amd64-64/libhadoop.so.1.0.0
deleted file mode 100644
index 759d0bace..000000000
Binary files a/lib/native/Linux-amd64-64/libhadoop.so.1.0.0 and /dev/null differ
diff --git a/lib/native/Linux-i386-32/libhadoop.a b/lib/native/Linux-i386-32/libhadoop.a
deleted file mode 100644
index 3ba7f1702..000000000
Binary files a/lib/native/Linux-i386-32/libhadoop.a and /dev/null differ
diff --git a/lib/native/Linux-i386-32/libhadoop.so b/lib/native/Linux-i386-32/libhadoop.so
deleted file mode 100644
index 0716c1b7b..000000000
Binary files a/lib/native/Linux-i386-32/libhadoop.so and /dev/null differ
diff --git a/lib/native/Linux-i386-32/libhadoop.so.1 b/lib/native/Linux-i386-32/libhadoop.so.1
deleted file mode 100644
index 0716c1b7b..000000000
Binary files a/lib/native/Linux-i386-32/libhadoop.so.1 and /dev/null differ
diff --git a/lib/native/Linux-i386-32/libhadoop.so.1.0.0 b/lib/native/Linux-i386-32/libhadoop.so.1.0.0
deleted file mode 100644
index 0716c1b7b..000000000
Binary files a/lib/native/Linux-i386-32/libhadoop.so.1.0.0 and /dev/null differ
diff --git a/lib/native/README.txt b/lib/native/README.txt
new file mode 100644
index 000000000..a70e818c9
--- /dev/null
+++ b/lib/native/README.txt
@@ -0,0 +1,36 @@
+This is a placeholder to put Hadoop native libraries -it's a component
+that contains platform-specific native code that significantly speeds up
+data (de)compression. Since there are no maven artifacts for this component
+the build process can't automatically download it.
+
+These libraries are purely optional, and if they are missing Hadoop will
+use corresponding pure Java components. The impact of native compression
+becomes noticeable with larger datasets and weaker CPU-s - if you notice
+that the CPU is routinely saturated when a job is sorting or reducing,
+then using these libs may help.
+
+Installation instructions
+=========================
+You can obtain the necessary files from a distribution package of Hadoop,
+e.g. hadoop-0.20.2.tar.gz. Unpack this archive, and copy the content of
+lib/native here, so that the layout looks like this:
+
+<Nutch home>/lib/native/Linux-amd64-64/...
+<Nutch home>/lib/native/Linux-i386-32/...
+
+Local runtime
+-------------
+The build process will include these native libraries when preparing
+the /runtime/local environment for running in local mode.
+
+/runtime/local/bin/nutch knows how to use these libs - if they are
+found and correctly used you should see lines like this in your logs:
+
+Distributed runtime
+-------------------
+If you want to use this component in an existing Hadoop cluster (when using
+/runtime/deploy artifacts) you need to make sure these files are placed in
+Hadoop/lib/native directory on each node, and then restart the cluster. If
+you installed the cluster from a distribution package of Hadoop then these
+libraries should already be in the right place and you shouldn't need to do
+anything else.