嗨,我试过bin/katta IndexName "Query"
上面的那个很好,而且
bin/katta IndexName "Query“100也很好,
我编写了一个程序ILuceneClient client =新的LuceneClient();client.count(.)//工作正常
但是下面的一个是抛出异常
Hits =client.search(查询,新String[] { _kattaIndexName });
================================================================================== 11/03/22 07:43:36警告client.NodeInteraction:159 -未能与节点hadoop5 5:20000交互。在sun.reflect.NativeMethodAccessorImpl.invoke0(Native方法中与其他节点进行尝试,在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)、sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)、java.lang.reflect.Method.invoke(Method.java:597)、net.sf.katta.client.NodeInteraction.run(NodeInteraction.java:135)和java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.上进行尝试java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)引起的: org.apache.hadoop.ipc.RemoteException: java.io.IOException:多线程碎片搜索无法执行:在net.sf.katta.lib.lucene.LuceneServer.search(LuceneServer.java:261) at net.sf上的org.apache.hadoop.ipc.RemoteException。katta.lib.lucene.LuceneServer.search(LuceneServer.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native方法)在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:508) at org.apache.hadoop.ipc.Server$Handler$1.run(Server( 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) )
在org.apache.hadoop.ipc.Server$Handler.run(Server.java:953)
发布于 2011-12-10 07:02:19
在windows中使用eclipse作为客户端时,我遇到了类似的问题。我发现我使用了不同版本的lucence核心,就像在katta集群的库中一样。看起来Hadoop对版本控制非常敏感。因此,您应该确保eclipse使用了与katta包含的lucene内核相同的版本。
https://stackoverflow.com/questions/5387734
复制相似问题