Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Encoded values coming back from HBase API

avatar
Cloudera Employee

Using the Knox gateway-shell to make requests to the HBase APIs, I receive values that are encoded in the response. Do I have to decode each value individually or is there a way to have all the values of the response decoded?

1 ACCEPTED SOLUTION

avatar
Super Guru

@Brad Bukacek Jr

By design, the HBase REST server returns content encoded response with base64. So all your content, like the column family, the qualifier and the raw content will be encoded. You just need to create a custom JSON deserializer.

Here is an awesome blog about this subject: https://blog.layer4.fr/2016/11/16/hbase-rest-api-knox-java/

There is a special section about your problem.

View solution in original post

1 REPLY 1

avatar
Super Guru

@Brad Bukacek Jr

By design, the HBase REST server returns content encoded response with base64. So all your content, like the column family, the qualifier and the raw content will be encoded. You just need to create a custom JSON deserializer.

Here is an awesome blog about this subject: https://blog.layer4.fr/2016/11/16/hbase-rest-api-knox-java/

There is a special section about your problem.