I am getting "java.lang.NoClassDefFoundError: org/elasticsearch/action/GenericAction" while creating index via JAVA API with all 7.0+ ES versions .
I decompiled its library but dont see GenericAction.class .
Can anyone guide me on same how can i resolve this ?
which dependencies did you include in your java project?
Thanks for reply. i am using below dependency in pom.xml
just before digging deeper: Is there any reason using of not using the high level rest client?
Not aware of high level rest client .
I have to create elasticsearch index dynamically at the end of every month in yyyy.dd format.so i was using referring (@https://www.elastic.co/guide/en/elasticsearch/client/java-rest/master/java-rest-high-create-index.html)
My java code is working with respect to elasticsearch version 6.1.1 but not with latest version.
Could you please guide on same?
Are you aware of date math support in index names and index templates, that prevents you from creating any indices manually?
That sounds as if you would not need to do any index creation in your own code at all.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.