spark-hbase-connector icon indicating copy to clipboard operation
spark-hbase-connector copied to clipboard

Not able to save the RDD generated from Dataframe

Open sharmalalit opened this issue 7 years ago • 1 comments

I have created a dataframe from spark SQL. val df = sqlContext.sql(..) df.rdd.toHbaseTable // Does not works.

Let me know how to save a dataframe using the connector.

sharmalalit avatar May 13 '17 13:05 sharmalalit

I think the problem is, when you use df.rdd it converts to RDD[Row]. But the API requires the rdd type is of tupe. For example: RDD[(String, Int)]

Deninc avatar May 27 '17 22:05 Deninc