Failed to execute ES query 1m java.lang.Exception: failure in bulk execution:

43 views
Skip to first unread message

manish kumar

unread,
Jan 15, 2017, 1:11:51 PM1/15/17
to Aurelius
This code has some issue

            graph.tx().commit();
            GraphUtils.refreshGraph(graph);
            String targetVertexType = params.getOb3().value("vertexType");
        HashMap<String, Long> existingCounts = counterService.getExistingCounts(session, params.getObjId1(),
                params.getObjId2(),
                params.getObjId3());            
            if(targetVertexType.equals("POST")) {
                params.getOb3().property("postUpvoteCount", existingCounts.get("upvote"));
            } else {
                params.getOb3().property("commentUpvoteCount", existingCounts.get("upvote"));
            }
            graph.tx().commit();

eCheckingTransaction@64b34bd6 holds no locks: writing mutations using store transaction CassandraTransaction@15e76370[read=QUORUM,write=QUORUM]
23:38:06.954 [http-nio-8084-exec-94] ERROR c.t.t.d.es.ElasticSearchIndex - Failed to execute ES query ElasticsearchIllegalArgumentException[failed to execute script]; nested: ScriptException[dynamic scripting for [groovy] disabled]; 
23:38:06.955 [http-nio-8084-exec-94] ERROR c.t.t.d.es.ElasticSearchIndex - Failed to execute ES query 1m
java.lang.Exception: failure in bulk execution:
[0]: index [titan], type [IndxPostGeoByPostTimeAndUpvote], id [3dxnwg], message [ElasticsearchIllegalArgumentException[failed to execute script]; nested: ScriptException[dynamic scripting for [groovy] disabled]; ]
at com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex.mutate(ElasticSearchIndex.java:614) ~[titan-es-1.0.0.jar:na]
at com.thinkaurelius.titan.diskstorage.indexing.IndexTransaction$1.call(IndexTransaction.java:123) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.diskstorage.indexing.IndexTransaction$1.call(IndexTransaction.java:120) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.diskstorage.util.BackendOperation.executeDirect(BackendOperation.java:56) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.diskstorage.util.BackendOperation.execute(BackendOperation.java:42) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.diskstorage.indexing.IndexTransaction.flushInternal(IndexTransaction.java:120) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.diskstorage.indexing.IndexTransaction.commit(IndexTransaction.java:101) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.diskstorage.BackendTransaction.commitIndexes(BackendTransaction.java:125) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.commit(StandardTitanGraph.java:732) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.commit(StandardTitanTx.java:1352) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.graphdb.tinkerpop.TitanBlueprintsGraph$GraphTransaction.doCommit(TitanBlueprintsGraph.java:263) [titan-core-1.0.0.jar:na]
at org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction.commit(AbstractTransaction.java:94) [gremlin-core-3.0.1-incubating.jar:3.0.1-incubating]

Gabriel Campero Durand

unread,
Jan 17, 2017, 7:26:51 AM1/17/17
to Aurelius

Hi,

This seems to be an easy problem: you just need to enable dynamic scripting on your Elasticsearch. You could pass this option in your .yml file for ES, according to the version of ES that you use.

I hope that solves it :)

Best,

Gabriel.

manish kumar

unread,
Jan 26, 2017, 12:37:33 AM1/26/17
to Aurelius
what is the reason behind this error i never faced this before.
Reply all
Reply to author
Forward
0 new messages