Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

Solved Go to solution
Highlighted

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

New 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

Accepted Solutions

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

Contributor

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

2 REPLIES 2

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

Contributor

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

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

New 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.

Don't have an account?
Coming from Hortonworks? Activate your account here