Katta执行错误

时间:2011-03-22 06:47:34

标签: lucene katta

嗨,我试过了 bin / katta搜索IndexName“查询”

上面的工作正常并且

bin / katta搜索IndexName“查询”100 这也很好,

我写了一个程序 ILuceneClient client = new LuceneClient(); client.count(....)//工作正常

但下面的一个是抛出异常

Hits hits = client.search(query,new String [] {_kattaIndexName});

=============================================== =================================== 11/03/22 07:43:36 WARN client.NodeInteraction:159 - 无法与节点hadoop5:20000进行交互。尝试使用其他节点[hadoop4:20000,hadoop1:20000](id = 6) java.lang.reflect.InvocationTargetException     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     在java.lang.reflect.Method.invoke(Method.java:597)     在net.sf.katta.client.NodeInteraction.run(NodeInteraction.java:135)     at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(ThreadPoolExecutor.java:886)     at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:908)     在java.lang.Thread.run(Thread.java:619) 引起:org.apache.hadoop.ipc.RemoteException:java.io.IOException:无法执行多线程分片搜索:     在net.sf.katta.lib.lucene.LuceneServer.search(LuceneServer.java:416)     在net.sf.katta.lib.lucene.LuceneServer.search(LuceneServer.java:261)     在net.sf.katta.lib.lucene.LuceneServer.search(LuceneServer.java:235)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     在java.lang.reflect.Method.invoke(Method.java:597)     在org.apache.hadoop.ipc.RPC $ Server.call(RPC.java:508)     在org.apache.hadoop.ipc.Server $ Handler $ 1.run(Server.java:959)     在org.apache.hadoop.ipc.Server $ Handler $ 1.run(Server.java:955)     at java.security.AccessController.doPrivileged(Native Method)     在javax.security.auth.Subject.doAs(Subject.java:396)

at org.apache.hadoop.ipc.Server $ Handler.run(Server.java:953)

1 个答案:

答案 0 :(得分:2)

在Windows中使用eclipse作为客户端时遇到了类似的问题。我发现我在katta集群的lib上使用了不同版本的lucence核心。似乎Hadoop IPC对版本控制非常敏感。因此,您应该确保您的eclipse使用了与您的katta lib包含的相同版本的lucene核心。