java.lang.ArrayIndexOutOfBoundsException: 1

Stack Overflow | Irshad Alam | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Unable to parse 10GB tab separated txt file in spark

    Stack Overflow | 7 months ago | Irshad Alam
    java.lang.ArrayIndexOutOfBoundsException: 1

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      1

      at $line47.$read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$anonfun$2.apply()
    2. $line47
      $read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$anonfun$2.apply
      1. $line47.$read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$anonfun$2.apply(<console>:35)
      2. $line47.$read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$anonfun$2.apply(<console>:35)
      2 frames
    3. Scala
      AbstractIterator.toArray
      1. scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
      2. scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
      3. scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
      4. scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
      5. scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
      6. scala.collection.Iterator$$anon$10.next(Iterator.scala:312)
      7. scala.collection.Iterator$class.foreach(Iterator.scala:727)
      8. scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
      9. scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:48)
      10. scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:103)
      11. scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:47)
      12. scala.collection.TraversableOnce$class.to(TraversableOnce.scala:273)
      13. scala.collection.AbstractIterator.to(Iterator.scala:1157)
      14. scala.collection.TraversableOnce$class.toBuffer(TraversableOnce.scala:265)
      15. scala.collection.AbstractIterator.toBuffer(Iterator.scala:1157)
      16. scala.collection.TraversableOnce$class.toArray(TraversableOnce.scala:252)
      17. scala.collection.AbstractIterator.toArray(Iterator.scala:1157)
      17 frames
    4. Spark Project SQL
      SparkPlan$$anonfun$5.apply
      1. org.apache.spark.sql.execution.SparkPlan$$anonfun$5.apply(SparkPlan.scala:212)
      2. org.apache.spark.sql.execution.SparkPlan$$anonfun$5.apply(SparkPlan.scala:212)
      2 frames
    5. Spark
      Executor$TaskRunner.run
      1. org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1858)
      2. org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1858)
      3. org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)
      4. org.apache.spark.scheduler.Task.run(Task.scala:89)
      5. org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214)
      5 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames