i am trying to fetch the data value for a key in hbase shell. i am passing key value in command line argument for which it calculating md5sum in shell script and should scan in hbase.
following is my shell script:
#!/bin/bash
echo "cookieId: $1"
md5_hash="$(echo -n "$1"| md5sum | awk '{print $1}')"
echo "$md5_hash"
echo "get 'VIZVR_profile','md5_hash'" | "hbase shell"
command which i am running :
sh hbase.sh "abcd"
but it is throwing error as :
hbase.sh: line 5: hbase: command not found
hbase.sh: line 5: : command not found
can anybody help me to run this hbase shell command through shell script.