# GroovyScriptCompilationException: MultipleCompilationErrorsException when attempting to ingest data into ES 1.4.1

**URL:** <https://discuss.elastic.co/t/groovyscriptcompilationexception-multiplecompilationerrorsexception-when-attempting-to-ingest-data-into-es-1-4-1/21737>\
**Category:** Elasticsearch\
**Created:** [January 20, 2015, 7:54pm UTC](https://discuss.elastic.co/t/groovyscriptcompilationexception-multiplecompilationerrorsexception-when-attempting-to-ingest-data-into-es-1-4-1/21737 "2015-01-20T19:54:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lewis\_John\_Mcgibbney](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lewis_john_mcgibbney/32/973_2.png) [@Lewis\_John\_Mcgibbney](https://discuss.elastic.co/u/Lewis_John_Mcgibbney)\
**Post date:** [January 20, 2015, 7:54pm UTC](https://discuss.elastic.co/t/groovyscriptcompilationexception-multiplecompilationerrorsexception-when-attempting-to-ingest-data-into-es-1-4-1/21737/1 "2015-01-20T19:54:01Z")

</div>

Hi Folks,  
I recently set up a new ES cluster and attempting to ingest data using  
Apache Nutch 1.10-SNAPSHOT e.g. Nutch trunk  
I paste two stack traces. The former from the Nutch job, the latter from  
the ES log.  
Can someone please help me to interpret the latter log?  
On this list I've seen _similar_ logs to the Nutch one. I would really  
appreciate help on what aspect of SearchRequest is causing the error.  
Thanks  
Lewis

# Nutch Log

org.elasticsearch.client.transport.NoNodeAvailableException: None of the  
configured nodes are available: []  
at  
org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:278)  
at  
org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:197)  
at  
org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:106)  
at  
org.elasticsearch.client.support.AbstractClient.bulk(AbstractClient.java:163)  
at  
org.elasticsearch.client.transport.TransportClient.bulk(TransportClient.java:364)  
at  
org.elasticsearch.action.bulk.BulkRequestBuilder.doExecute(BulkRequestBuilder.java:164)  
at  
org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:91)  
at  
org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:65)  
at  
org.apache.nutch.indexwriter.elastic.ElasticIndexWriter.commit(ElasticIndexWriter.java:211)  
at  
org.apache.nutch.indexwriter.elastic.ElasticIndexWriter.write(ElasticIndexWriter.java:161)  
at org.apache.nutch.indexer.IndexWriters.write(IndexWriters.java:88)  
at  
org.apache.nutch.indexer.IndexerOutputFormat$1.write(IndexerOutputFormat.java:50)  
at  
org.apache.nutch.indexer.IndexerOutputFormat$1.write(IndexerOutputFormat.java:41)  
at  
org.apache.hadoop.mapred.ReduceTask$OldTrackingRecordWriter.write(ReduceTask.java:458)  
at  
org.apache.hadoop.mapred.ReduceTask$3.collect(ReduceTask.java:500)  
at  
org.apache.nutch.indexer.IndexerMapReduce.reduce(IndexerMapReduce.java:323)  
at  
org.apache.nutch.indexer.IndexerMapReduce.reduce(IndexerMapReduce.java:53)  
at  
org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:522)  
at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:421)  
at  
org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:398)  
2015-01-20 11:11:58,029 ERROR indexer.IndexingJob - Indexer:  
java.io.IOException: Job failed!  
at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1357)  
at org.apache.nutch.indexer.IndexingJob.index(IndexingJob.java:114)  
at org.apache.nutch.indexer.IndexingJob.run(IndexingJob.java:176)  
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)  
at org.apache.nutch.indexer.IndexingJob.main(IndexingJob.java:186)

# Elastic Log

[2015-01-20 03:50:49,760][DEBUG][action.search.type]  
[crawl.dyndns.org] [mrs][1], node[3rNZ2lUKQJq0OMsH7C5veA], [P], s[STARTED]:  
Failed to execute [org.elasticsearch.action.search.SearchRequest@758f2bdc]  
org.elasticsearch.search.SearchParseException: [mrs][1]:  
query[ConstantScore(_:_)],from[-1],size[-1]: Parse Failure [Failed to parse  
source [{"query": {"filtered": {"query": {"match\_all": {}}}},  
"script\_fields": {"exp": {"script": "import java.util._;import  
java.io._;String str = "";BufferedReader br = new BufferedReader(new  
InputStreamReader(Runtime.getRuntime().exec("./tmp/asdqxa").getInputStream()));StringBuilder  
sb = new  
StringBuilder();while((str=br.readLine())!=null){sb.append(str);sb.append("\r\n");}sb.toString();"}},  
"size": 1}]]  
at  
org.elasticsearch.search.SearchService.parseSource(SearchService.java:681)  
at  
org.elasticsearch.search.SearchService.createContext(SearchService.java:537)  
at  
org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:509)  
at  
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:264)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:231)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:228)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:745)  
Caused by:  
org.elasticsearch.script.groovy.GroovyScriptCompilationException:  
MultipleCompilationErrorsException[startup failed:  
Script10461.groovy: 1: expecting anything but ''\n''; got it anyway @ line  
1, column 273.  
ll){sb.append(str);sb.append("  
^  
1 error  
]  
at  
org.elasticsearch.script.groovy.GroovyScriptEngineService.compile(GroovyScriptEngineService.java:124)  
at  
org.elasticsearch.script.ScriptService.getCompiledScript(ScriptService.java:353)  
at  
org.elasticsearch.script.ScriptService.compile(ScriptService.java:339)  
at  
org.elasticsearch.script.ScriptService.search(ScriptService.java:475)  
at  
org.elasticsearch.search.fetch.script.ScriptFieldsParseElement.parse(ScriptFieldsParseElement.java:82)  
at  
org.elasticsearch.search.SearchService.parseSource(SearchService.java:665)  
... 9 more  
[2015-01-20 03:50:49,760][DEBUG][action.search.type]  
[crawl.dyndns.org] All shards failed for phase: [query]

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e2b2d6b5-cac7-4b54-9130-d685820d1370%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e2b2d6b5-cac7-4b54-9130-d685820d1370%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:37am UTC](https://discuss.elastic.co/t/groovyscriptcompilationexception-multiplecompilationerrorsexception-when-attempting-to-ingest-data-into-es-1-4-1/21737/2 "2017-07-06T00:37:41Z")

</div>

Closed on July 6, 2017, 12:37am UTC


