is possible capture hbase command "scan table" textfile.
the command goes :
hbase(main):001:0>scan sampletable i tried using command prompt command
hbase(main):001:0>scan sampletable > textfile.txt but gives error "wrong number of arguments"
i tried following commands :
hbase(main):001:0>echo "scan 'sampletable'" | hbase shell | grep "^ " > registration.txt but there exception "unrecognised characters ^ " in command
you cannot execute linux commands echo, hbase etc in hbase shell. need execute these commands in windows power shell.
exit hbase shell , execute below command
echo "scan 'sampletable'" | hbase shell | grep "^ " > registration.txt
Comments
Post a Comment