But when I doing this so, mvn clean install gives:
Could not transfer artifact org.elasticsearch.plugin:elasticsearch-watcher:pom:2.0.0-rc1 from/to elasticsearch-releases (http://maven.elasticsearch.org/releases): Not authorized
Whole message:
Failed to execute goal on project crawler-elasticsearch: Could not resolve dependencies for project com.enniu.cloud.services:crawler-elasticsearch:jar:1.2-SNAPSHOT: Failed to collect dependencies at org.elasticsearch.plugin:elasticsearch-watcher:jar:2.0.0-rc1: Failed to read artifact descriptor for org.elasticsearch.plugin:elasticsearch-watcher:jar:2.0.0-rc1: Could not transfer artifact org.elasticsearch.plugin:elasticsearch-watcher:pom:2.0.0-rc1 from/to elasticsearch-releases (http://maven.elasticsearch.org/releases): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]
By the way, we trying to use watcher 2.0.0-rc1 because now we have upgraded our elasticsearch to 2.0.0-rc1 .
If we can't use 2.0.0-rc1 of watcher, which version should we use with elasticsearch 2.0.0-rc1?
Exception in thread "main" java.lang.NullPointerException
at org.elasticsearch.client.transport.support.TransportProxyClient$1.doWithNode(TransportProxyClient.java:58)
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:202)
at org.elasticsearch.client.transport.support.TransportProxyClient.execute(TransportProxyClient.java:55)
at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:272)
at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:347)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)
at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:67)
at com.enniu.cloud.services.elasticsearch.WatcherManager.deleteWatch(WatcherManager.java:120)
at com.enniu.cloud.services.elasticsearch.WatcherManager.lambda$delete$1(WatcherManager.java:105)
at com.enniu.cloud.services.elasticsearch.WatcherManager$$Lambda$2/1143968486.apply(Unknown Source)
at com.enniu.cloud.services.elasticsearch.WatcherManager.performOnWatch(WatcherManager.java:114)
at com.enniu.cloud.services.elasticsearch.WatcherManager.delete(WatcherManager.java:104)
at com.enniu.cloud.services.elasticsearch.WatcherManager.main(WatcherManager.java:138)
this looks as if the client you are using does not load the watcher plugin. Can you show code, where you instantiate the client that you wrap around WatcherClient
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.