semagrow / connector-cassandra

Enables Semagrow to connect to a Cassandra store
0 stars 0 forks source link

Semagrow throws http 500 internal server error on any query on Cassandra endpoint #1

Closed stasinos closed 8 years ago

stasinos commented 8 years ago

Submitter: Stathis Grigoropoulos, via email

Steps to Reproduce:

install make export CLIMATE1_BUILD_DIR=/yourpath/ export CLIMATE1_CASSANDRA_DATA_DIR=/yourpath/ git clone https://github.com/iaklampanos/bde-climate-1 /yourpath/ cd yourpath make compose make ingest-file NETCDFFILE=/path/to/file/file Optional: make clean-netcdf-all #to build java projects of giannis and antonis

Command java -jar //netcdf-cassandra/target/netcdf-cassandra-0.0.1-SNAPSHOT-jar-with-dependencies.jar -s -t 'wrf' -e http://localhost:8090/SemaGrow/sparql

Output

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Exception in thread "main" org.openrdf.query.QueryEvaluationException: Apache Tomcat/7.0.52 - Error report

HTTP Status 500 - Unsupported tuple expr type: class org.openrdf.query.algebra.Join


type Status report

message Unsupported tuple expr type: class org.openrdf.query.algebra.Join

description The server encountered an internal error that prevented it from fulfilling this request.


Apache Tomcat/7.0.52

at org.openrdf.repository.sparql.query.SPARQLTupleQuery.evaluate(SPARQLTupleQuery.java:59) at gr.demokritos.iit.netcdf.cassandra.SemagrowToNetCDF.termSearch(SemagrowToNetCDF.java:130) at gr.demokritos.iit.netcdf.cassandra.Main.main(Main.java:205) Caused by: org.openrdf.repository.RepositoryException: Apache Tomcat/7.0.52 - Error report

HTTP Status 500 - Unsupported tuple expr type: class org.openrdf.query.algebra.Join


type Status report

message Unsupported tuple expr type: class org.openrdf.query.algebra.Join

description The server encountered an internal error that prevented it from fulfilling this request.


Apache Tomcat/7.0.52

at org.openrdf.http.client.HTTPClient.handleHTTPError(HTTPClient.java:953) at org.openrdf.http.client.HTTPClient.sendTupleQueryViaHttp(HTTPClient.java:718) at org.openrdf.http.client.HTTPClient.getBackgroundTupleQueryResult(HTTPClient.java:602) at org.openrdf.http.client.HTTPClient.sendTupleQuery(HTTPClient.java:367) at org.openrdf.repository.sparql.query.SPARQLTupleQuery.evaluate(SPARQLTupleQuery.java:52) ... 2 more

Troubleshooting/Testing Steps Attempted Runt different search params, imported different files. Seems to be file independent .

antru6 commented 8 years ago

The current version of Cassandra connector uses a slightly different metadata vocabulary, than this of the previous version. The user in his application used a docker build of a previous version of sevod-scraper, and as a result the connector wouldn't work because of invalid metadata. Therefore, we are now using Webhooks to trigger automated building of the docker repositories.