I want to write a value say 65 in hbase. I have to run the following command on hbase shell for that:
put 'table','key','cf:qual','A'
But is there a way to write it directly something like:
put 'table','key','cf:qual',65 (this is not allowed though)
Let me know if you understand the question else I will explain more.
Update:
By 65 I meant to put 'A' but directly the ascii value of 'A'. The real issue for me is I want to put values which fall in the range of 128-255 from the shell.
Since Hbase Shell is implemented using ruby you can insert byte values by representing them in hexadecimal format.
Important note: The value has to be with in " " (double quotes) not ' ' (single quotes).
Useful links:
How Does Ruby handle bytes/binary
Hexadecimal Digits (Hex-Codes) Cheatsheet
you can also use Hbase built in functions like this
it works for me.