su poulin
echo “create ‘mytest’, ‘cf1′” | hbase shell
echo “put ‘mytest’, ‘row1′, ‘cf1′, ‘val1′” | hbase shell
echo “put ‘mytest’, ‘row1′, ‘cf1′, ‘val2′” | hbase shell
echo “scan ‘mytest’” | hbase shell

date –date=”Fri Nov 11 11:11:11 PST 2011″ +%s
# start hbase shell
hbase shell
org.apache.hadoop.hbase.util.Bytes.toString(“abcde”.to_java_bytes)
org.apache.hadoop.hbase.util.Bytes.toInt(“abcde”.to_java_bytes)
org.apache.hadoop.hbase.util.Bytes.toInt(“\xa\xb\xc\xd”.to_java_bytes)
org.apache.hadoop.hbase.util.Bytes.toInt(“\x61\x62\x63\x64″.to_java_bytes)
org.apache.hadoop.hbase.util.Bytes.toInt(“\141\142\143\144″.to_java_bytes)
import java.text.SimpleDateFormat
import java.text.ParsePosition
SimpleDateFormat.new(“yy/MM/dd HH:mm:ss”).parse(“11/11/11 11:11:11″, ParsePosition.new(0)).getTime()
exit
=> “abcde”
=> 1633837924
=> 168496141
=> 1633837924
=> 1633837924
=> 1321038671000

6.9 Install the Development Tools group

su –l
yum groupinstall Development tools