How to obtain Phoenix table data via HBase REST service

后端 未结 2 1743
耶瑟儿~
耶瑟儿~ 2021-01-23 03:19

I created a HBase table using the Phoenix JDBC Driver in the following code snippet:

    Class.forName(\"org.apache.phoenix.jdbc.PhoenixDriver\");
    Connection         


        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-23 04:10

    You really should get your data from phoenix table using phoenix not HBase. Phoenix use is custom encoding for it's Integer and BigInt also salting (if you use one).

    Phoenix also mostly use byte for storing data and StringBinary for encoding it. So, lot of chance that your key is not 5 but \x80\x00\x00\x05(Integer)

提交回复
热议问题