org.elasticsearch.hadoop.rest.EsHadoopParsingException

Cannot parse value [1] for field [boolField]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • Cannot parse value [1] for field [boolField]
  • Cannot parse value [2010] for field [f1]
  • Stack trace

    • org.elasticsearch.hadoop.rest.EsHadoopParsingException: Cannot parse value [1] for field [boolField] at org.elasticsearch.hadoop.serialization.ScrollReader.read(ScrollReader.java:713) at org.elasticsearch.hadoop.serialization.ScrollReader.map(ScrollReader.java:806) at org.elasticsearch.hadoop.serialization.ScrollReader.read(ScrollReader.java:704) at org.elasticsearch.hadoop.serialization.ScrollReader.readHitAsMap(ScrollReader.java:458) at org.elasticsearch.hadoop.serialization.ScrollReader.readHit(ScrollReader.java:383) at org.elasticsearch.hadoop.serialization.ScrollReader.read(ScrollReader.java:278) at org.elasticsearch.hadoop.serialization.ScrollReader.read(ScrollReader.java:251) at org.elasticsearch.hadoop.rest.RestRepository.scroll(RestRepository.java:456) at org.elasticsearch.hadoop.rest.ScrollQuery.hasNext(ScrollQuery.java:86) at org.elasticsearch.spark.rdd.AbstractEsRDDIterator.hasNext(AbstractEsRDDIterator.scala:43) at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:327) at scala.collection.Iterator$$anon$14.hasNext(Iterator.scala:388) at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:327) at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:308) at scala.collection.Iterator$class.foreach(Iterator.scala:727) at scala.collection.AbstractIterator.foreach(Iterator.scala:1157) at scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:48) at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:103) at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:47) at scala.collection.TraversableOnce$class.to(TraversableOnce.scala:273) at scala.collection.AbstractIterator.to(Iterator.scala:1157) at scala.collection.TraversableOnce$class.toBuffer(TraversableOnce.scala:265) at scala.collection.AbstractIterator.toBuffer(Iterator.scala:1157) at scala.collection.TraversableOnce$class.toArray(TraversableOnce.scala:252) at scala.collection.AbstractIterator.toArray(Iterator.scala:1157) at org.apache.spark.sql.execution.SparkPlan$$anonfun$5.apply(SparkPlan.scala:212) at org.apache.spark.sql.execution.SparkPlan$$anonfun$5.apply(SparkPlan.scala:212) at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1858) at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1858) at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66) at org.apache.spark.scheduler.Task.run(Task.scala:89) at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214) 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) Caused by: java.lang.IllegalArgumentException: For input string: "1" at scala.collection.immutable.StringLike$class.parseBoolean(StringLike.scala:238) at scala.collection.immutable.StringLike$class.toBoolean(StringLike.scala:226) at scala.collection.immutable.StringOps.toBoolean(StringOps.scala:31) at org.elasticsearch.spark.serialization.ScalaValueReader.parseBoolean(ScalaValueReader.scala:112) at org.elasticsearch.spark.serialization.ScalaValueReader$$anonfun$booleanValue$1.apply(ScalaValueReader.scala:111) at org.elasticsearch.spark.serialization.ScalaValueReader$$anonfun$booleanValue$1.apply(ScalaValueReader.scala:111) at org.elasticsearch.spark.serialization.ScalaValueReader.checkNull(ScalaValueReader.scala:81) at org.elasticsearch.spark.serialization.ScalaValueReader.booleanValue(ScalaValueReader.scala:111) at org.elasticsearch.spark.serialization.ScalaValueReader.readValue(ScalaValueReader.scala:67) at org.elasticsearch.spark.sql.ScalaRowValueReader.readValue(ScalaEsRowValueReader.scala:28) at org.elasticsearch.hadoop.serialization.ScrollReader.parseValue(ScrollReader.java:726) at org.elasticsearch.hadoop.serialization.ScrollReader.read(ScrollReader.java:711) ... 34 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 9 months ago