Hey Guys,
just would like to start with your new ES adapter (great idea!) but unfortunately the adapter didn't work on my site. If followed these instructions
https://github.com/exasol/elasticsearch-virtual-schema/blob/main/doc/dialects/elasticsearch_sql_user_guide.md
and add the latestes jars to bucket fs in the default folder. When I run
curl http://r:[email protected]:1234/default
the files are there:
virtual-schema-dist-8.0.0-elasticsearch-1.0.0.jar
x-pack-sql-jdbc-7.12.0.jar
Afterwards I've created the adapter by
CREATE OR REPLACE JAVA ADAPTER SCRIPT ELASTIC.ES_ADAPTER AS
%scriptclass com.exasol.adapter.RequestDispatcher;
%jar /buckets/bfsdefault/default/virtual-schema-dist-8.0.0-elasticsearch-1.0.0.jar;
%jar /buckets/bfsdefault/default/x-pack-sql-jdbc-7.12.0.jar;
/
and of course I create the connection with
CREATE OR REPLACE CONNECTION ELASTIC_CONNECTION TO 'jdbc:es://http://192.168.178.29:9205/';;
But when I try to create the VS with
CREATE VIRTUAL SCHEMA VIRTUAL_SCHEMA_TEST USING ELASTIC.ES_ADAPTER WITH CONNECTION_NAME = 'ELASTIC_CONNECTION' SCHEMA_NAME = 'ELASTIC';
I receive the above error. Here is the full stack trace:
SQL-Fehler [22002]: VM error:
java.lang.IllegalArgumentException: Unknown Virtual Schema Adapter "UNKNOWN" requested. Currently registered Virtual Schema Adapter factories: "ES"
Stack trace:
com.exasol.adapter.AdapterRegistry.getAdapterForName(AdapterRegistry.java:76)
com.exasol.adapter.RequestDispatcher.findResponsibleAdapter(RequestDispatcher.java:62)
com.exasol.adapter.RequestDispatcher.executeAdapterCall(RequestDispatcher.java:51)
com.exasol.adapter.RequestDispatcher.adapterCall(RequestDispatcher.java:41)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
com.exasol.ExaWrapper.runSingleCall(ExaWrapper.java:95) (Session: 1696051372399491389)
Did I skip a step or is it a bug? I've used the community edition 6.2.4. I would really like to work with this feature. Thanx in advance.