failure: Lost task 18.3 in stage 17.0 (TID 59784,XXXXX, executor 19): java.lang.IllegalArgumentException: Row length is 0
The scene is written hbase:
val put = new Put(Bytes.toBytes(line._1))
When taken as line._1 key, the value is "This exception occurs" or null. So do the following process, first filtering out is null and "" data
resultRdd.filter bhaseRdd = Val (R & lt => { r._1! = "" && r._1! = null && r._1.length> 0 }). Map (Line => { Val PUT = new new of Put (Bytes.toBytes ( line._1)) // rowKey parameters, get the PUT Val Key = line._2.keySet () Iterator ();. // get the corresponding Datamap
........