绊脚石乃是进身之阶。

请求一个gradle的 elasticsearch配置文件

Elasticsearch | 作者 qijun4tian | 发布于2016年11月11日 | 阅读数:6246

我的报错
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.logging.log4j.Logger.debug(Ljava/lang/String;Ljava/lang/Object;)V
at org.elasticsearch.threadpool.ThreadPool.<init>(ThreadPool.java:203)
at org.elasticsearch.client.transport.TransportClient.buildTemplate(TransportClient.java:109)
at org.elasticsearch.client.transport.TransportClient.<init>(TransportClient.java:228)
at org.elasticsearch.transport.client.PreBuiltTransportClient.<init>(PreBuiltTransportClient.java:69)
at org.elasticsearch.transport.client.PreBuiltTransportClient.<init>(PreBuiltTransportClient.java:65)
at com.chejianer.epc.service.impl.elasticServiceImpl.main(elasticServiceImpl.java:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
已邀请:

qijun4tian

赞同来自:

compile 'org.apache.logging.log4j:log4j-api:2.4' 
compile 'org.apache.logging.log4j:log4j-core:2.4'
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.4'
compile 'org.apache.logging.log4j:log4j-jcl:2.4' 
compile 'org.slf4j:jcl-over-slf4j:1.7.12'

compile 'org.elasticsearch.client:transport:5.0.0'
我的log配置

要回复问题请先登录注册