Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/355.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用solrj库_Java_Solrj - Fatal编程技术网

Java 使用solrj库

Java 使用solrj库,java,solrj,Java,Solrj,我正试图使用solrj库在Cloudera Sorl服务器上做一些索引工作 此时 String zkHostString = "http://xxx.xxx.xxx.xxx:xxxx/solr"; CloudSolrClient solr = new CloudSolrClient(zkHostString); 我出错了 > SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". &

我正试图使用solrj库在Cloudera Sorl服务器上做一些索引工作

此时

        String zkHostString = "http://xxx.xxx.xxx.xxx:xxxx/solr";
        CloudSolrClient solr = new CloudSolrClient(zkHostString);
我出错了

> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J:
> See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
文件slf4j-api-1.7.7.jar存在于我的库路径中(我从/dist和/dist/solrj lib获得了所有jar文件)


为了构建我的项目,如果有必要的话,我正在使用Eclipse。

最有可能的是,您的类路径中有旧版本的slf4j,它来自一个可传递的依赖项。尝试检查此项,然后运行依赖关系树或任何其他工具来查找并解决冲突