You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by Manish <ma...@rocketmail.com> on 2014/03/13 16:09:54 UTC
Hbase create table error
Hi All,
Below is the error details that i am getting when creating tables in
Hbase. All the services are running fine.
hbase(main):001:0> create 't1', 'cf1'
*ERROR: java.lang.NoClassDefFoundError:
org/apache/hadoop/security/authentication/util/KerberosName*
Here is some help for this command:
Create table; pass table name, a dictionary of specifications per
column family, and optionally a dictionary of table configuration.
Dictionaries are described below in the GENERAL NOTES section.
Examples:
hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'}
hbase> # The above in shorthand would be the following:
hbase> create 't1', 'f1', 'f2', 'f3'
hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000,
BLOCKCACHE => true}
hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']}
Please suggest.
Thank you,
Manish
Re: Hbase create table error
Posted by Manish <ma...@rocketmail.com>.
This was a Hadoop and Hbase jar path issue. I have added following
variable in hbase-env.sh file which has solved this problem:
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_40
# export JAVA_HOME=/usr/lib/jvm/jdk1.7.0-sun-amd64
export HADOOP_HOME=/usr/lib/hadoop/hadoop-common.jar
# Extra Java CLASSPATH elements. Optional.
export HBASE_CLASSPATH=/usr/lib/hbase/hbase.jar
On Friday 14 March 2014 12:08 AM, Ted Yu wrote:
> Here is the correct command:
> hbase shell -d
>
>
> On Thu, Mar 13, 2014 at 11:33 AM, Manish <manishbhoge@rocketmail.com
> <ma...@rocketmail.com>> wrote:
>
> Version 0.94.6-cdh4.5.0
>
> manish@localhost:/etc/hbase/conf$ hbase shell --debug
> Setting DEBUG log level...
>
> 14/03/13 23:57:48 WARN conf.Configuration: hadoop.native.lib is
> deprecated. Instead, use io.native.lib.available
> HBase Shell; enter 'help<RETURN>' for list of supported commands.
> Type "exit<RETURN>" to leave the HBase Shell
> Version 0.94.6-cdh4.5.0, rUnknown, Wed Nov 20 15:48:11 PST 2013
>
> IRB::UnrecognizedSwitch: Unrecognized switch: --debug
> Raise at
> file:/usr/lib/hbase/lib/jruby-complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/e2mmap.rb:167
> fail at
> file:/usr/lib/hbase/lib/jruby-complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/e2mmap.rb:95
> parse_opts at
> file:/usr/lib/hbase/lib/jruby-complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/irb/init.rb:194
> setup at
> file:/usr/lib/hbase/lib/jruby-complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/irb/init.rb:19
> start at /usr/lib/hbase/bin/../bin/hirb.rb:168
> (root) at /usr/lib/hbase/bin/../bin/hirb.rb:188
>
>
> On Thursday 13 March 2014 09:20 PM, Ted Yu wrote:
>
> Manish:
> You can use the following command to see full stack trace:
>
> hbase shell --debug
>
> Cheers
>
>
> On Thu, Mar 13, 2014 at 8:20 AM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org <ma...@spaggiari.org>> wrote:
>
> Hi Manish,
>
> Which version of HBase? Is your cluster secured with Kerberos?
>
> JM
>
>
> 2014-03-13 11:09 GMT-04:00 Manish
> <manishbhoge@rocketmail.com
> <ma...@rocketmail.com>>:
>
> Hi All,
>
> Below is the error details that i am getting when
> creating tables in
> Hbase. All the services are running fine.
>
> hbase(main):001:0> create 't1', 'cf1'
>
> *ERROR: java.lang.NoClassDefFoundError:
> org/apache/hadoop/security/
> authentication/util/KerberosName*
>
> Here is some help for this command:
> Create table; pass table name, a dictionary of
> specifications per
> column family, and optionally a dictionary of table
> configuration.
> Dictionaries are described below in the GENERAL NOTES
> section.
> Examples:
>
> hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
> hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'},
> {NAME => 'f3'}
> hbase> # The above in shorthand would be the following:
> hbase> create 't1', 'f1', 'f2', 'f3'
> hbase> create 't1', {NAME => 'f1', VERSIONS => 1,
> TTL => 2592000,
> BLOCKCACHE => true}
> hbase> create 't1', 'f1', {SPLITS => ['10', '20',
> '30', '40']}
>
>
> Please suggest.
>
> Thank you,
> Manish
>
>
>
Re: Hbase create table error
Posted by Ted Yu <yu...@gmail.com>.
Here is the correct command:
hbase shell -d
On Thu, Mar 13, 2014 at 11:33 AM, Manish <ma...@rocketmail.com> wrote:
> Version 0.94.6-cdh4.5.0
>
> manish@localhost:/etc/hbase/conf$ hbase shell --debug
> Setting DEBUG log level...
>
> 14/03/13 23:57:48 WARN conf.Configuration: hadoop.native.lib is
> deprecated. Instead, use io.native.lib.available
> HBase Shell; enter 'help<RETURN>' for list of supported commands.
> Type "exit<RETURN>" to leave the HBase Shell
> Version 0.94.6-cdh4.5.0, rUnknown, Wed Nov 20 15:48:11 PST 2013
>
> IRB::UnrecognizedSwitch: Unrecognized switch: --debug
> Raise at file:/usr/lib/hbase/lib/jruby-
> complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/e2mmap.rb:167
> fail at file:/usr/lib/hbase/lib/jruby-
> complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/e2mmap.rb:95
> parse_opts at file:/usr/lib/hbase/lib/jruby-
> complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/irb/init.rb:194
> setup at file:/usr/lib/hbase/lib/jruby-
> complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/irb/init.rb:19
> start at /usr/lib/hbase/bin/../bin/hirb.rb:168
> (root) at /usr/lib/hbase/bin/../bin/hirb.rb:188
>
>
> On Thursday 13 March 2014 09:20 PM, Ted Yu wrote:
>
>> Manish:
>> You can use the following command to see full stack trace:
>>
>> hbase shell --debug
>>
>> Cheers
>>
>>
>> On Thu, Mar 13, 2014 at 8:20 AM, Jean-Marc Spaggiari <
>> jean-marc@spaggiari.org> wrote:
>>
>> Hi Manish,
>>>
>>> Which version of HBase? Is your cluster secured with Kerberos?
>>>
>>> JM
>>>
>>>
>>> 2014-03-13 11:09 GMT-04:00 Manish <ma...@rocketmail.com>:
>>>
>>> Hi All,
>>>>
>>>> Below is the error details that i am getting when creating tables in
>>>> Hbase. All the services are running fine.
>>>>
>>>> hbase(main):001:0> create 't1', 'cf1'
>>>>
>>>> *ERROR: java.lang.NoClassDefFoundError: org/apache/hadoop/security/
>>>> authentication/util/KerberosName*
>>>>
>>>> Here is some help for this command:
>>>> Create table; pass table name, a dictionary of specifications per
>>>> column family, and optionally a dictionary of table configuration.
>>>> Dictionaries are described below in the GENERAL NOTES section.
>>>> Examples:
>>>>
>>>> hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
>>>> hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'}
>>>> hbase> # The above in shorthand would be the following:
>>>> hbase> create 't1', 'f1', 'f2', 'f3'
>>>> hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000,
>>>> BLOCKCACHE => true}
>>>> hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']}
>>>>
>>>>
>>>> Please suggest.
>>>>
>>>> Thank you,
>>>> Manish
>>>>
>>>>
>
Re: Hbase create table error
Posted by Manish <ma...@rocketmail.com>.
Version 0.94.6-cdh4.5.0
manish@localhost:/etc/hbase/conf$ hbase shell --debug
Setting DEBUG log level...
14/03/13 23:57:48 WARN conf.Configuration: hadoop.native.lib is
deprecated. Instead, use io.native.lib.available
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.94.6-cdh4.5.0, rUnknown, Wed Nov 20 15:48:11 PST 2013
IRB::UnrecognizedSwitch: Unrecognized switch: --debug
Raise at
file:/usr/lib/hbase/lib/jruby-complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/e2mmap.rb:167
fail at
file:/usr/lib/hbase/lib/jruby-complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/e2mmap.rb:95
parse_opts at
file:/usr/lib/hbase/lib/jruby-complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/irb/init.rb:194
setup at
file:/usr/lib/hbase/lib/jruby-complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/irb/init.rb:19
start at /usr/lib/hbase/bin/../bin/hirb.rb:168
(root) at /usr/lib/hbase/bin/../bin/hirb.rb:188
On Thursday 13 March 2014 09:20 PM, Ted Yu wrote:
> Manish:
> You can use the following command to see full stack trace:
>
> hbase shell --debug
>
> Cheers
>
>
> On Thu, Mar 13, 2014 at 8:20 AM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org> wrote:
>
>> Hi Manish,
>>
>> Which version of HBase? Is your cluster secured with Kerberos?
>>
>> JM
>>
>>
>> 2014-03-13 11:09 GMT-04:00 Manish <ma...@rocketmail.com>:
>>
>>> Hi All,
>>>
>>> Below is the error details that i am getting when creating tables in
>>> Hbase. All the services are running fine.
>>>
>>> hbase(main):001:0> create 't1', 'cf1'
>>>
>>> *ERROR: java.lang.NoClassDefFoundError: org/apache/hadoop/security/
>>> authentication/util/KerberosName*
>>>
>>> Here is some help for this command:
>>> Create table; pass table name, a dictionary of specifications per
>>> column family, and optionally a dictionary of table configuration.
>>> Dictionaries are described below in the GENERAL NOTES section.
>>> Examples:
>>>
>>> hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
>>> hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'}
>>> hbase> # The above in shorthand would be the following:
>>> hbase> create 't1', 'f1', 'f2', 'f3'
>>> hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000,
>>> BLOCKCACHE => true}
>>> hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']}
>>>
>>>
>>> Please suggest.
>>>
>>> Thank you,
>>> Manish
>>>
Re: Hbase create table error
Posted by Ted Yu <yu...@gmail.com>.
Manish:
You can use the following command to see full stack trace:
hbase shell --debug
Cheers
On Thu, Mar 13, 2014 at 8:20 AM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:
> Hi Manish,
>
> Which version of HBase? Is your cluster secured with Kerberos?
>
> JM
>
>
> 2014-03-13 11:09 GMT-04:00 Manish <ma...@rocketmail.com>:
>
> > Hi All,
> >
> > Below is the error details that i am getting when creating tables in
> > Hbase. All the services are running fine.
> >
> > hbase(main):001:0> create 't1', 'cf1'
> >
> > *ERROR: java.lang.NoClassDefFoundError: org/apache/hadoop/security/
> > authentication/util/KerberosName*
> >
> > Here is some help for this command:
> > Create table; pass table name, a dictionary of specifications per
> > column family, and optionally a dictionary of table configuration.
> > Dictionaries are described below in the GENERAL NOTES section.
> > Examples:
> >
> > hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
> > hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'}
> > hbase> # The above in shorthand would be the following:
> > hbase> create 't1', 'f1', 'f2', 'f3'
> > hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000,
> > BLOCKCACHE => true}
> > hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']}
> >
> >
> > Please suggest.
> >
> > Thank you,
> > Manish
> >
>
Re: Hbase create table error
Posted by Manish <ma...@rocketmail.com>.
Hi,
I am using the Version 0.94.6-cdh4.5.0. Here is the debug output.
14/03/13 23:57:48 WARN conf.Configuration: hadoop.native.lib is
deprecated. Instead, use io.native.lib.available
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.94.6-cdh4.5.0, rUnknown, Wed Nov 20 15:48:11 PST 2013
IRB::UnrecognizedSwitch: Unrecognized switch: --debug
Raise at
file:/usr/lib/hbase/lib/jruby-complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/e2mmap.rb:167
fail at
file:/usr/lib/hbase/lib/jruby-complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/e2mmap.rb:95
parse_opts at
file:/usr/lib/hbase/lib/jruby-complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/irb/init.rb:194
setup at
file:/usr/lib/hbase/lib/jruby-complete-1.6.5.jar!/META-INF/jruby.home/lib/ruby/1.8/irb/init.rb:19
start at /usr/lib/hbase/bin/../bin/hirb.rb:168
(root) at /usr/lib/hbase/bin/../bin/hirb.rb:188
On Thursday 13 March 2014 08:50 PM, Jean-Marc Spaggiari wrote:
> Hi Manish,
>
> Which version of HBase? Is your cluster secured with Kerberos?
>
> JM
>
>
> 2014-03-13 11:09 GMT-04:00 Manish <ma...@rocketmail.com>:
>
>> Hi All,
>>
>> Below is the error details that i am getting when creating tables in
>> Hbase. All the services are running fine.
>>
>> hbase(main):001:0> create 't1', 'cf1'
>>
>> *ERROR: java.lang.NoClassDefFoundError: org/apache/hadoop/security/
>> authentication/util/KerberosName*
>>
>> Here is some help for this command:
>> Create table; pass table name, a dictionary of specifications per
>> column family, and optionally a dictionary of table configuration.
>> Dictionaries are described below in the GENERAL NOTES section.
>> Examples:
>>
>> hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
>> hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'}
>> hbase> # The above in shorthand would be the following:
>> hbase> create 't1', 'f1', 'f2', 'f3'
>> hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000,
>> BLOCKCACHE => true}
>> hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']}
>>
>>
>> Please suggest.
>>
>> Thank you,
>> Manish
>>
Re: Hbase create table error
Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Hi Manish,
Which version of HBase? Is your cluster secured with Kerberos?
JM
2014-03-13 11:09 GMT-04:00 Manish <ma...@rocketmail.com>:
> Hi All,
>
> Below is the error details that i am getting when creating tables in
> Hbase. All the services are running fine.
>
> hbase(main):001:0> create 't1', 'cf1'
>
> *ERROR: java.lang.NoClassDefFoundError: org/apache/hadoop/security/
> authentication/util/KerberosName*
>
> Here is some help for this command:
> Create table; pass table name, a dictionary of specifications per
> column family, and optionally a dictionary of table configuration.
> Dictionaries are described below in the GENERAL NOTES section.
> Examples:
>
> hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
> hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'}
> hbase> # The above in shorthand would be the following:
> hbase> create 't1', 'f1', 'f2', 'f3'
> hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000,
> BLOCKCACHE => true}
> hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']}
>
>
> Please suggest.
>
> Thank you,
> Manish
>