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 Read issue - Json Mapping error #48

Open
sraghav opened this issue Feb 17, 2017 · 0 comments
Open

hbase Read issue - Json Mapping error #48

sraghav opened this issue Feb 17, 2017 · 0 comments

Comments

@sraghav
Copy link

sraghav commented Feb 17, 2017

We are reading from a secured hbase cluster, and facing the following issue -

Exception in thread "main" com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class org.apache.spark.rdd.RDDOperationScope]: can not instantiate from JSON object (need to add/enable type information?)

the actual content form the table is plain String. The source code for the same is fairly straightforward -

val hBaseRDD = sparkContext.hbaseTable[(String)]("myDB:test").select("123456789").inColumnFamily("m")
hBaseRDD.take(10)

We have provided the hbase quorum information through hbase-site.xml in the packaged jar file.

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