首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Katta执行错误

Katta执行错误
EN

Stack Overflow用户
提问于 2011-03-22 06:47:34
回答 1查看 185关注 0票数 0

嗨,我试过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)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-12-10 07:02:19

在windows中使用eclipse作为客户端时,我遇到了类似的问题。我发现我使用了不同版本的lucence核心,就像在katta集群的库中一样。看起来Hadoop对版本控制非常敏感。因此,您应该确保eclipse使用了与katta包含的lucene内核相同的版本。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5387734

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档