Unable to create a Elasticsearch data source

Hi Team,

In process of analyzing a capability of elastic search to a virtual graph in Stardog.

Requesting help on this.

trying to create a virtual graph with elasticsearch as a data source .

have downloaded and paste jar files in /server/dbms/ mentioned here below : Specific Data Source Considerations | Stardog Documentation 7.7.0

Receiving below error while creating a data source

WARN 2021-07-28 18:23:03,922 [stardog-user-1] org.elasticsearch.client.RestClient:logResponse(65): request [GET http://40.71.118.26:9200/_cat/indices?h=index] returned 1 warnings: [299 Elasticsearch-7.13.4-c5f60e894ca0c61cdbae4f5a686d9f08bcefc942 "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See Set up minimal security for Elasticsearch | Elasticsearch Guide [7.13] | Elastic to enable security."]
WARN 2021-07-28 18:23:03,923 [stardog-user-1] com.complexible.stardog.protocols.http.server.StardogUndertowErrorHandler:accept(68): Unexpected exception was handled by the server
java.lang.NoSuchMethodError: 'org.elasticsearch.client.Response org.elasticsearch.client.RestClient.performRequest(java.lang.String, java.lang.String, java.util.Map, org.apache.http.HttpEntity, org.apache.http.Header[])'
at com.complexible.stardog.virtual.vega.elasticsearch.calcite.ElasticsearchTransport$HttpFunction.applyInternal(ElasticsearchTransport.java:298) ~[stardog-virtual-core-7.6.4.jar:?]
at com.complexible.stardog.virtual.vega.elasticsearch.calcite.ElasticsearchTransport$HttpFunction.apply(ElasticsearchTransport.java:283) ~[stardog-virtual-core-7.6.4.jar:?]
at com.complexible.stardog.virtual.vega.elasticsearch.calcite.ElasticsearchTransport$HttpFunction.apply(ElasticsearchTransport.java:272) ~[stardog-virtual-core-7.6.4.jar:?]
at java.util.function.Function.lambda$andThen$1(Function.java:88) ~[?:?]
at java.util.function.Function.lambda$andThen$1(Function.java:88) ~[?:?]
at com.complexible.stardog.virtual.vega.elasticsearch.calcite.ElasticsearchTransport.version(ElasticsearchTransport.java:114) ~[stardog-virtual-core-7.6.4.jar:?]
at com.complexible.stardog.virtual.vega.elasticsearch.calcite.ElasticsearchTransport.(ElasticsearchTransport.java:93) ~[stardog-virtual-core-7.6.4.jar:?]
at com.complexible.stardog.virtual.vega.elasticsearch.calcite.ElasticsearchSchema.createTables(ElasticsearchSchema.java:80) ~[stardog-virtual-core-7.6.4.jar:?]
at com.complexible.stardog.virtual.vega.elasticsearch.calcite.ElasticsearchSchema.(ElasticsearchSchema.java:66) ~[stardog-virtual-core-7.6.4.jar:?]
at com.complexible.stardog.virtual.vega.elasticsearch.ElasticsearchDataSource.(ElasticsearchDataSource.java:100) ~[stardog-virtual-core-7.6.4.jar:?]
at com.complexible.stardog.virtual.vega.elasticsearch.ElasticsearchDataSource.(ElasticsearchDataSource.java:51) ~[stardog-virtual-core-7.6.4.jar:?]
at com.complexible.stardog.virtual.vega.elasticsearch.ElasticsearchDataSource$ElasticsearchDataSourceFactory.create(ElasticsearchDataSource.java:216) ~[stardog-virtual-core-7.6.4.jar:?]
at com.complexible.stardog.virtual.vega.elasticsearch.ElasticsearchDataSource$ElasticsearchDataSourceFactory.create(ElasticsearchDataSource.java:180) ~[stardog-virtual-core-7.6.4.jar:?]
at com.complexible.stardog.virtual.DefaultVirtualGraphRegistry.createDataSource(DefaultVirtualGraphRegistry.java:809) ~[stardog-virtual-core-7.6.4.jar:?]
at com.complexible.stardog.virtual.DefaultVirtualGraphRegistry.addDataSourceWithoutClosingPrior(DefaultVirtualGraphRegistry.java:787) ~[stardog-virtual-core-7.6.4.jar:?]
at com.complexible.stardog.virtual.DefaultVirtualGraphRegistry.addDataSource(DefaultVirtualGraphRegistry.java:738) ~[stardog-virtual-core-7.6.4.jar:?]
at com.complexible.stardog.virtual.SecuredVirtualGraphRegistry.addDataSource(SecuredVirtualGraphRegistry.java:488) ~[stardog-virtual-core-7.6.4.jar:?]
at com.complexible.stardog.protocols.http.server.virtual.admin.DataSourceHttpService.addDataSource(DataSourceHttpService.java:601) ~[stardog-virtual-protocols-http-server-7.6.4.jar:?]
at com.complexible.stardog.protocols.http.server.virtual.admin.DataSourceHttpService.add(DataSourceHttpService.java:226) ~[stardog-virtual-protocols-http-server-7.6.4.jar:?]
at com.stardog.http.server.undertow.jaxrs.ExtractRoutes.lambda$handleIt$5(ExtractRoutes.java:192) ~[stardog-protocols-http-server-7.6.4.jar:?]
at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [shiro-core-1.7.1.jar:1.7.1]
at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [shiro-core-1.7.1.jar:1.7.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]

This might be the result of a mismatch between Elasticsearch client versions. We certify our system with ES client version 6.7.1 (we document that here: Supported Client Drivers | Stardog Documentation 7.7.0) and it looks like you are using version 7.13.4. Perhaps they dropped support for a method that we are calling. Let me know if reverting to the older client is not a viable option for you.

-Paul

Thank you very much.. this worked

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