Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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.