Support Questions

Find answers, ask questions, and share your expertise

Special characters in a HBase row while called through Knox via HBase Rest

avatar
Contributor

Hi,

HDP-2.6.1.0-129.

Are there any restrictions with regards to special characters used in HBase rows called through Knox via HBase Rest?

We're having issues with # sign:

hbase(main):020:0> scan 'hbaseexample'
k#0                column=columns:_ca1, timestamp=1503650932806, value=test
1 row(s) in 0.0200 seconds


When we try to access it via Knox (where k#0 is encoded into k%230) by calling https://srv-knx01:8443/gateway/default/hbase/hbaseexample/k%230 we get 404 Not Found.

Adding two # signs throws an exception:

hbase(main):020:0> scan 'hbaseexample'
k#0                column=columns:_ca1, timestamp=1503650932806, value=test
k#0#               column=columns:_ca1, timestamp=1503650932806, value=test
2 row(s) in 0.0200 seconds


https://srv-knx01:8443/gateway/default/hbase/hbaseexample/k%230%23

Caused by: java.lang.IllegalArgumentException: Illegal character in fragment at index 57: http://srv-namenode01:60080/hbaseexample/k#0#?doAs=feeder

There were no issues with 2.4.

Any hints would be greatly appreciated.

1 ACCEPTED SOLUTION

avatar
Rising Star

Do you know what version of Knox you are running, there was major work done around this area in the recent 0.13.0 release https://issues.apache.org/jira/browse/KNOX-949

View solution in original post

2 REPLIES 2

avatar
Rising Star

Do you know what version of Knox you are running, there was major work done around this area in the recent 0.13.0 release https://issues.apache.org/jira/browse/KNOX-949

avatar
Contributor

Thank you @Sandeep More

That seems to be the one! We're running latest HDP (2.6.1) which comes with Knox 0.12.0.

Going to try to convince support to release 0.13.0 RPMs.