Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-611 - Upgrade Nutch to use Hadoop 0.16. This upgrade removes the deprecated addDefaultResouce and addFinalResource methods. Should now use addResource. Two scripts start-balancer.sh and stop-balancer.sh are added to the bin directory.

Dennis Kubes1add01357223
diff --git a/CHANGES.txt b/CHANGES.txt
index 54066e8f5..dd8a5c831 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -210,6 +210,8 @@ Unreleased changes (1.0-dev)
75. NUTCH-603 - Add more default url normalizations (kubes)
+76. NUTCH-611 - Upgrade Nutch to use Hadoop 0.16 (kubes)
+
Release 0.9 - 2007-04-02
1. Changed log4j confiquration to log to stdout on commandline
diff --git a/bin/start-balancer.sh b/bin/start-balancer.sh
new file mode 100755
index 000000000..c55c0a95f
--- /dev/null
+++ b/bin/start-balancer.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+# Start balancer daemon.
+
+hadoop-daemon.sh start balancer $@
diff --git a/bin/stop-balancer.sh b/bin/stop-balancer.sh
new file mode 100755
index 000000000..9cfdbcff3
--- /dev/null
+++ b/bin/stop-balancer.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+# Stop balancer daemon.
+# Run this on the machine where the balancer is running
+
+hadoop-daemon.sh stop balancer
diff --git a/lib/hadoop-0.15.3-core.jar b/lib/hadoop-0.15.3-core.jar
deleted file mode 100644
index e11390402..000000000
Binary files a/lib/hadoop-0.15.3-core.jar and /dev/null differ
diff --git a/lib/hadoop-0.16.0-core.jar b/lib/hadoop-0.16.0-core.jar
new file mode 100644
index 000000000..1ead30494
Binary files /dev/null and b/lib/hadoop-0.16.0-core.jar differ
diff --git a/lib/native/Linux-amd64-64/libhadoop.a b/lib/native/Linux-amd64-64/libhadoop.a
index 1dddea630..acaf946fc 100644
Binary files a/lib/native/Linux-amd64-64/libhadoop.a and b/lib/native/Linux-amd64-64/libhadoop.a differ
diff --git a/lib/native/Linux-amd64-64/libhadoop.so b/lib/native/Linux-amd64-64/libhadoop.so
index 2c41b5a47..ef73cab9c 100644
Binary files a/lib/native/Linux-amd64-64/libhadoop.so and b/lib/native/Linux-amd64-64/libhadoop.so differ
diff --git a/lib/native/Linux-amd64-64/libhadoop.so.1 b/lib/native/Linux-amd64-64/libhadoop.so.1
index 2c41b5a47..ef73cab9c 100644
Binary files a/lib/native/Linux-amd64-64/libhadoop.so.1 and b/lib/native/Linux-amd64-64/libhadoop.so.1 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
index 2c41b5a47..ef73cab9c 100644
Binary files a/lib/native/Linux-amd64-64/libhadoop.so.1.0.0 and b/lib/native/Linux-amd64-64/libhadoop.so.1.0.0 differ
diff --git a/lib/native/Linux-i386-32/libhadoop.a b/lib/native/Linux-i386-32/libhadoop.a
index 72858aef1..b3ae2940a 100644
Binary files a/lib/native/Linux-i386-32/libhadoop.a and b/lib/native/Linux-i386-32/libhadoop.a differ
diff --git a/lib/native/Linux-i386-32/libhadoop.so b/lib/native/Linux-i386-32/libhadoop.so
index 42c309319..bf854a59e 100644
Binary files a/lib/native/Linux-i386-32/libhadoop.so and b/lib/native/Linux-i386-32/libhadoop.so differ
diff --git a/lib/native/Linux-i386-32/libhadoop.so.1 b/lib/native/Linux-i386-32/libhadoop.so.1
index 42c309319..bf854a59e 100644
Binary files a/lib/native/Linux-i386-32/libhadoop.so.1 and b/lib/native/Linux-i386-32/libhadoop.so.1 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
index 42c309319..bf854a59e 100644
Binary files a/lib/native/Linux-i386-32/libhadoop.so.1.0.0 and b/lib/native/Linux-i386-32/libhadoop.so.1.0.0 differ
diff --git a/src/plugin/protocol-httpclient/src/test/org/apache/nutch/protocol/httpclient/TestProtocolHttpClient.java b/src/plugin/protocol-httpclient/src/test/org/apache/nutch/protocol/httpclient/TestProtocolHttpClient.java
index 3226853ff..9c3fb7056 100644
--- a/src/plugin/protocol-httpclient/src/test/org/apache/nutch/protocol/httpclient/TestProtocolHttpClient.java
+++ b/src/plugin/protocol-httpclient/src/test/org/apache/nutch/protocol/httpclient/TestProtocolHttpClient.java
@@ -54,7 +54,7 @@ public class TestProtocolHttpClient extends TestCase {
server.addContext(context);
conf = new Configuration();
- conf.addDefaultResource("nutch-default.xml");
+ conf.addResource("nutch-default.xml");
conf.addResource("nutch-site-test.xml");
http = new Http();