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.

CDH 5.4.2 Hbase Table Creation Error - Undefined Local Variable or Method

CDH 5.4.2 Hbase Table Creation Error - Undefined Local Variable or Method

New Contributor

I am new to technology and trying to get hands on experience on these tools.

I am trying to create a table in CDH 5.4.2 of Hbase with following command

Create table 'emp','personal'

 

Its throwing following message 

NameError:Undefined Local variable or method hbase 'for #object:xoo23002>

 

Can someone please suggest how to resolve this issue and let me if you need any further details on this.

1 REPLY 1

Re: CDH 5.4.2 Hbase Table Creation Error - Undefined Local Variable or Method

Rising Star

Try entering: create 'emp','personal'  - here's my session, annotated:

 

// Starting out with no tables:

hbase(main):001:0> list
TABLE
0 row(s) in 0.1810 seconds

=> []

 

 

// Create the table:

hbase(main):003:0> create 'emp','personal'
0 row(s) in 0.7160 seconds

=> Hbase::Table - emp

 

// Verify that the table was created:

hbase(main):004:0> list
TABLE
emp
1 row(s) in 0.0100 seconds

=> ["emp"]