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

Not able to save the RDD generated from Dataframe #51

Open
sharmalalit opened this issue May 13, 2017 · 1 comment
Open

Not able to save the RDD generated from Dataframe #51

sharmalalit opened this issue May 13, 2017 · 1 comment

Comments

@sharmalalit
Copy link

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.

@Deninc
Copy link

Deninc commented May 27, 2017

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)]

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

2 participants