I have an use case where I am generating a row key based on the list of columns which are part of primary key columns. The feed file comes with same record multiple times. We need to maintain versioning in hbase.
The issue I am facing is here: I would like to specify a dataframe column as a timestamp here
I have an use case where I am generating a row key based on the list of columns which are part of primary key columns. The feed file comes with same record multiple times. We need to maintain versioning in hbase.
The issue I am facing is here: I would like to specify a dataframe column as a timestamp here
def saveToHbase (catalog: String, df: DataFrame, timestamp: String): Unit = { df.write.options( Map(HBaseTableCatalog.tableCatalog -> catalog, HBaseRelation.TIMESTAMP -> timestamp, HBaseTableCatalog.newTable -> "5")) .format("org.apache.spark.sql.execution.datasources.hbase") .save() }