Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hbase column versioning #315

Open
aapkitechtube opened this issue May 23, 2019 · 0 comments
Open

Hbase column versioning #315

aapkitechtube opened this issue May 23, 2019 · 0 comments

Comments

@aapkitechtube
Copy link

aapkitechtube commented May 23, 2019

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() }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant