java.lang.NoSuchMethodError:


(Aravind Kompelly) #1

Hi Team,

I have upgraded my elastic search java API's to v6.1.1 from v0.90.5
Everything compiled fine and have deployed in tomcat server
While starting the server it's throwing following error.

java.lang.NoSuchMethodError: org.elasticsearch.common.settings.Settings.builder()Lorg/elasticsearch/common/settings/Settings$Builder;
at tv.myplex.services.search.base.NodeIndexer.init(NodeIndexer.java:58).

In my class 58 line is:

Settings settings = Settings.builder().loadFromSource(source,XContentType.YAML).build();
client = new Node(settings).client();

which is equalent to

Settings settings = Settings.builder().put("cluster.name", "elasticsearch").build();
client = new Node(settings).client();

Can anyone please help me out to fix this issue.

Thank you.


(David Pilato) #2

Not sure but we don't support embedded nodes anymore.
Better to use the REST client


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.