Author: siren
Date: Tue Aug  8 12:30:16 2006
New Revision: 429788

URL: http://svn.apache.org/viewvc?rev=429788&view=rev
Log:
Update hadoop version to 0.5.0

Added:
    lucene/nutch/trunk/lib/hadoop-0.5.0.jar   (with props)
Removed:
    lucene/nutch/trunk/lib/hadoop-0.4.0.jar
Modified:
    lucene/nutch/trunk/CHANGES.txt
    lucene/nutch/trunk/src/java/org/apache/nutch/searcher/DistributedSearch.java

Modified: lucene/nutch/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/lucene/nutch/trunk/CHANGES.txt?rev=429788&r1=429787&r2=429788&view=diff
==============================================================================
--- lucene/nutch/trunk/CHANGES.txt (original)
+++ lucene/nutch/trunk/CHANGES.txt Tue Aug  8 12:30:16 2006
@@ -6,6 +6,9 @@
     tools (siren)
 
  2. NUTCH-344 - Fix for thread blocking issue (Greg Kim via siren)
+ 
+ 3. NUTCH-260 - Update hadoop version to 0.5.0 (Renaud Richardet,
+    siren)
 
 Release 0.8 - 2006-07-25
 

Added: lucene/nutch/trunk/lib/hadoop-0.5.0.jar
URL: 
http://svn.apache.org/viewvc/lucene/nutch/trunk/lib/hadoop-0.5.0.jar?rev=429788&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lucene/nutch/trunk/lib/hadoop-0.5.0.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: 
lucene/nutch/trunk/src/java/org/apache/nutch/searcher/DistributedSearch.java
URL: 
http://svn.apache.org/viewvc/lucene/nutch/trunk/src/java/org/apache/nutch/searcher/DistributedSearch.java?rev=429788&r1=429787&r2=429788&view=diff
==============================================================================
--- 
lucene/nutch/trunk/src/java/org/apache/nutch/searcher/DistributedSearch.java 
(original)
+++ 
lucene/nutch/trunk/src/java/org/apache/nutch/searcher/DistributedSearch.java 
Tue Aug  8 12:30:16 2006
@@ -277,15 +277,18 @@
       return new Hits(totalHits, (Hit[])queue.toArray(new Hit[queue.size()]));
     }
     
-    private Protocol getRemote(Hit hit) {
+    // version for hadoop-0.5.0.jar
+    public static final long versionID = 1L;
+    
+    private Protocol getRemote(Hit hit) throws IOException {
       return (Protocol)
-        RPC.getProxy(Protocol.class, defaultAddresses[hit.getIndexNo()], conf);
+        RPC.getProxy(Protocol.class, versionID, 
defaultAddresses[hit.getIndexNo()], conf);
     }
 
-    private Protocol getRemote(HitDetails hit) {
+    private Protocol getRemote(HitDetails hit) throws IOException {
       InetSocketAddress address =
         (InetSocketAddress)segmentToAddress.get(hit.getValue("segment"));
-      return (Protocol)RPC.getProxy(Protocol.class, address, conf);
+      return (Protocol)RPC.getProxy(Protocol.class, versionID, address, conf);
     }
 
     public String getExplanation(Query query, Hit hit) throws IOException {



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-cvs mailing list
Nutch-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nutch-cvs

Reply via email to