嗨,我试过 bin/katta 搜索 IndexName "Query"
上面的工作正常,
bin/katta 搜索 IndexName "Query" 100 也可以正常工作,
我写了一个程序 ILuceneClient client = new LuceneClient(); client.count(....) //工作正常
但下面的一个是抛出异常
点击 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) 在 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:886) 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 在 java.lang。