是由於elasticsearch和jackson不符合造成的,需要根據elasticsearch版本下載對應的jackson
2018-11-21 11:46:41 WARN TaskSetManager:66 - Lost task 4.0 in stage 0.0 (TID 4, 192.168.1.140, executor 1): java.lang.NoSuchFieldError: NO_INTS
at com.fasterxml.jackson.dataformat.smile.SmileParserBase.(SmileParserBase.java:185)
at com.fasterxml.jackson.dataformat.smile.SmileParser.(SmileParser.java:128)
at com.fasterxml.jackson.dataformat.smile.SmileParserBootstrapper.constructParser(SmileParserBootstrapper.java:104)
at com.fasterxml.jackson.dataformat.smile.SmileFactory._createParser(SmileFactory.java:401)
at com.fasterxml.jackson.dataformat.smile.SmileFactory.createParser(SmileFactory.java:315)
at org.elasticsearch.common.xcontent.smile.SmileXContent.createParser(SmileXContent.java:87)
at org.elasticsearch.common.xcontent.XContentHelper.convertToMap(XContentHelper.java:140)
at org.elasticsearch.common.xcontent.XContentHelper.convertToMap(XContentHelper.java:114)
at org.elasticsearch.common.xcontent.XContentHelper.convertToMap(XContentHelper.java:92)
at org.elasticsearch.search.lookup.SourceLookup.sourceAsMapAndType(SourceLookup.java:89)
at org.elasticsearch.search.lookup.SourceLookup.sourceAsMap(SourceLookup.java:93)
at org.elasticsearch.search.SearchHit.getSourceAsMap(SearchHit.java:347)
at org.elasticsearch.search.SearchHit.sourceAsMap(SearchHit.java:333)
at org.elasticsearch.search.SearchHit.getSource(SearchHit.java:301)
at
at scala.collection.Iterator
foreach
apply
foreach
apply
runJob
runJob
TaskRunner.run(Executor.scala:345)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
出現該異常時,是由於elasticsearch和jackson不符合造成的,需要根據elasticsearch版本下載對應的jackson,我用的elasticsearch5.6.2所以對應的版本是jackson版本是2.8.6