Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 11-16-2016 01:13 PM
How do we get the complete list of columns that exist in a column Family?
Let us assume i have 5 columns for personal data column familyand 4 columns are present for professional data column family
create 'emp', 'personal data', ’professional data’
Created 11-16-2016 03:32 PM
HBase does not explicitly track the qualifiers that exist in each family. You either need to maintain this information yourself (e.g. in another table) or scan the data.
Created 11-16-2016 03:32 PM
HBase does not explicitly track the qualifiers that exist in each family. You either need to maintain this information yourself (e.g. in another table) or scan the data.
Created 11-17-2016 08:00 AM
Hi @Josh Elser.
I got the answer by unix command as mentiond below.
Command:-
echo "scan 'emp" | $HBASE_HOME/bin/hbase shell | awk -F'=' '{print $2}' | awk -F ':' '{print $2}'|awk -F ',' '{print $1}'
Created 12-21-2016 06:17 AM
Thanks, Worked for me!
Created 10-05-2017 06:48 AM
how did you run the script? it didn't return me any result. can your share your's?
Created 12-14-2020 02:37 AM
echo "scan 'emp'" | $HBASE_HOME/bin/hbase shell | awk -F'=' '{print $2}' | awk -F ':' '{print $2}'|awk -F ',' '{print $1}'