I have been trying to insert List of Records into HBase using HBase client library. it works for a single Put in either Table or HTable(deprecated) but does not recognize List(Puts) Error Says: Expected: util.List, but was List
Could not understand the meaning of this error. Tried converting to JavaList but did not succeed.
Any quick advice would be higher appreciable. `
val quoteRecords = new ListBuffer[Put]()
val listQuotes = lines.foreachRDD(rdd => {
rdd.foreach(record => addPutToList(buildPut(record)))
})
table.put(quoteRecords.toList)
quoteRecords.foreach(table.put)
println(listQuotes)
`