Java 使用solrj库
我正试图使用solrj库在Cloudera Sorl服务器上做一些索引工作 此时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". &
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,它来自一个可传递的依赖项。尝试检查此项,然后运行依赖关系树或任何其他工具来查找并解决冲突