Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

NameError: uninitialized constant error in Hbase

NameError: uninitialized constant error in Hbase

I am creating a table and inserting data into it , but when i do list table_name , it shows me NameError: uninitialized constant error in table_name

1 REPLY 1
Highlighted

Re: NameError: uninitialized constant error in Hbase

@Anurag Mishra,

Please put the table name in quotes ('')

# hbase shell
hbase(main):014:0> list    # This will list all tables
hbase(main):014:0> list 'table_name' # List only a single table name
hbase(main):014:0> scan 'table_name' # Get contents of the file.

Thanks,

Aditya

Don't have an account?
Coming from Hortonworks? Activate your account here