如何使用类似于 HBase API 的 Phoenix-Spark 添加 HBase 时间戳:
Put(rowkey, timestamp.getMillis)
这是我的代码:
val rdd = processedRdd.map(r => Row.fromSeq(r))
val dataframe = sqlContext.createDataFrame(rdd, schema)
dataframe.save("org.apache.phoenix.spark", SaveMode.Overwrite,
Map("table" -> HTABLE, "zkUrl" -> zkQuorum))