Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Upgrade to Lucene 2.2.0 and Hadoop 0.12.3.

Andrzej Bialecki5de25972c771
diff --git a/CHANGES.txt b/CHANGES.txt
index 9adc00df5..3452f392d 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -57,6 +57,8 @@ Unreleased changes (1.0-dev)
17. NUTCH-471 - Fix synchronization in NutchBean creation.
(Enis Soztutar via dogacan)
+18. Upgrade to Lucene 2.2.0 and Hadoop 0.12.3. (ab)
+
Release 0.9 - 2007-04-02
1. Changed log4j confiquration to log to stdout on commandline
diff --git a/lib/hadoop-0.12.2-core.jar b/lib/hadoop-0.12.3-core.jar
old mode 100644
new mode 100755
similarity index 86%
rename from lib/hadoop-0.12.2-core.jar
rename to lib/hadoop-0.12.3-core.jar
index 1c8b64b7c..53264d78b
Binary files a/lib/hadoop-0.12.2-core.jar and b/lib/hadoop-0.12.3-core.jar differ
diff --git a/lib/lucene-core-2.1.0.jar b/lib/lucene-core-2.1.0.jar
deleted file mode 100644
index 6660095dc..000000000
Binary files a/lib/lucene-core-2.1.0.jar and /dev/null differ
diff --git a/lib/lucene-core-2.2.0.jar b/lib/lucene-core-2.2.0.jar
new file mode 100755
index 000000000..2469481c3
Binary files /dev/null and b/lib/lucene-core-2.2.0.jar differ
diff --git a/lib/lucene-misc-2.1.0.jar b/lib/lucene-misc-2.1.0.jar
deleted file mode 100644
index 0fa03c6f6..000000000
Binary files a/lib/lucene-misc-2.1.0.jar and /dev/null differ
diff --git a/lib/lucene-misc-2.2.0.jar b/lib/lucene-misc-2.2.0.jar
new file mode 100755
index 000000000..1fcfe981c
Binary files /dev/null and b/lib/lucene-misc-2.2.0.jar differ
diff --git a/lib/native/Linux-i386-32/libhadoop.a b/lib/native/Linux-i386-32/libhadoop.a
index e7a7ec2c2..e14ebeb09 100644
Binary files a/lib/native/Linux-i386-32/libhadoop.a and b/lib/native/Linux-i386-32/libhadoop.a differ
diff --git a/src/java/org/apache/nutch/indexer/FsDirectory.java b/src/java/org/apache/nutch/indexer/FsDirectory.java
index 6263be30a..dcaa461f1 100644
--- a/src/java/org/apache/nutch/indexer/FsDirectory.java
+++ b/src/java/org/apache/nutch/indexer/FsDirectory.java
@@ -219,8 +219,8 @@ public class FsDirectory extends Directory {
out = fs.create(path);
}
- public void flushBuffer(byte[] b, int size) throws IOException {
- out.write(b, 0, size);
+ public void flushBuffer(byte[] b, int offset, int size) throws IOException {
+ out.write(b, offset, size);
}
public void close() throws IOException {
diff --git a/src/java/org/apache/nutch/indexer/IndexSorter.java b/src/java/org/apache/nutch/indexer/IndexSorter.java
index f1431c956..ad6a62920 100644
--- a/src/java/org/apache/nutch/indexer/IndexSorter.java
+++ b/src/java/org/apache/nutch/indexer/IndexSorter.java
@@ -145,6 +145,18 @@ public class IndexSorter extends ToolBase {
throw new UnsupportedOperationException();
}
+ public byte[] getPayload(byte[] data, int offset) throws IOException {
+ return null;
+ }
+
+ public int getPayloadLength() {
+ return 0;
+ }
+
+ public boolean isPayloadAvailable() {
+ return false;
+ }
+
public void close() throws IOException {
original.close();
}
diff --git a/src/plugin/lib-lucene-analyzers/lib/lucene-analyzers-2.1.0.jar b/src/plugin/lib-lucene-analyzers/lib/lucene-analyzers-2.1.0.jar
deleted file mode 100644
index 60b9a6d1e..000000000
Binary files a/src/plugin/lib-lucene-analyzers/lib/lucene-analyzers-2.1.0.jar and /dev/null differ
diff --git a/src/plugin/lib-lucene-analyzers/lib/lucene-analyzers-2.2.0.jar b/src/plugin/lib-lucene-analyzers/lib/lucene-analyzers-2.2.0.jar
new file mode 100755
index 000000000..7e37b7319
Binary files /dev/null and b/src/plugin/lib-lucene-analyzers/lib/lucene-analyzers-2.2.0.jar differ
diff --git a/src/plugin/summary-lucene/lib/lucene-highlighter-2.1.0.jar b/src/plugin/summary-lucene/lib/lucene-highlighter-2.1.0.jar
deleted file mode 100644
index bc034c2c0..000000000
Binary files a/src/plugin/summary-lucene/lib/lucene-highlighter-2.1.0.jar and /dev/null differ
diff --git a/src/plugin/summary-lucene/lib/lucene-highlighter-2.2.0.jar b/src/plugin/summary-lucene/lib/lucene-highlighter-2.2.0.jar
new file mode 100755
index 000000000..c91579e65
Binary files /dev/null and b/src/plugin/summary-lucene/lib/lucene-highlighter-2.2.0.jar differ