You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2008/07/22 21:23:33 UTC

[jira] Resolved: (HBASE-760) brittle/broken HCD create handling in HBase.rb

     [ https://issues.apache.org/jira/browse/HBASE-760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack resolved HBASE-760.
-------------------------

    Resolution: Invalid

Problem was that BLOCKCACHE value of 'true' was quoted.  Should have been true/false. Removing them, I get:

{code}
hbase(main):003:0> create 'contentxx', {NAME => 'url', VERSIONS => 1, TTL => 2592000}, {NAME => 'info', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true}, {NAME => 'content', VERSIONS => 1, COMPRESSION => 'RECORD', TTL => 2592000,BLOCKCACHE => true }
0 row(s) in 10.0470 seconds
{code}

The jruby exception is of little help.

I added more examples to the help around create of table.

Also got rid of the warnings starting up shell.

Resolving as won't fix.  Open new issue if want to complain about doing something about the 'difficult' jruby exceptions.

> brittle/broken HCD create handling in HBase.rb
> ----------------------------------------------
>
>                 Key: HBASE-760
>                 URL: https://issues.apache.org/jira/browse/HBASE-760
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 0.2.0
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>            Priority: Minor
>         Attachments: HBase.rb.patch
>
>
> HCD creation in HBase.rb was brittle and nonfunctional. 
> [hadoop@sjdc-atr-dns tmp]$ hbase shell --master=10.30.94.1:60000
> (eval):1 warning: already initialized constant MEMCACHE_FLUSHSIZE
> (eval):1 warning: already initialized constant IN_MEMORY
> (eval):1 warning: already initialized constant VERSIONS
> HBase Shell; enter 'help<RETURN>' for list of supported commands.
> Version: 0.2.0-dev, r678650, Tue Jul 22 06:15:47 UTC 2008
> hbase(main):001:0> create 'content', {NAME => 'url', VERSIONS => 1, TTL => 2592000}, {NAME => 'info', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => 'true'}, {NAME => 'content', VERSIONS => 1, COMPRESSION => 'RECORD', TTL => 2592000,BLOCKCACHE => 'true' }
> NameError: no constructor with arguments matching [class [B, class java.lang.Long, class org.apache.hadoop.hbase.HColumnDescriptor$CompressionType, class java.l
> ang.Boolean, class java.lang.String, class java.lang.Long, class java.lang.Long,
>  class java.lang.Boolean] on object JavaUtilities
>         from file:/opt/hadoop-0.17.1/contrib/hbase/lib/jruby-complete-1.1.2.jar!
> /builtin/javasupport/proxy/concrete.rb:23:in `__jcreate!'
>         from file:/opt/hadoop-0.17.1/contrib/hbase/lib/jruby-complete-1.1.2.jar!
> /builtin/javasupport/proxy/concrete.rb:23:in `initialize'
>         from file:/opt/hadoop-0.17.1/contrib/hbase/lib/jruby-complete-1.1.2.jar!
> /builtin/javasupport/proxy/concrete.rb:6:in `new'
>         from file:/opt/hadoop-0.17.1/contrib/hbase/lib/jruby-complete-1.1.2.jar!
> /builtin/javasupport/proxy/concrete.rb:6:in `new'
>         from /opt/hadoop/contrib/hbase/bin/../bin/HBase.rb:156:in `hcd'
>         from /opt/hadoop/contrib/hbase/bin/../bin/HBase.rb:112:in `create'
>         from /opt/hadoop/contrib/hbase/bin/../bin/HBase.rb:106:in `each'
>         from /opt/hadoop/contrib/hbase/bin/../bin/HBase.rb:106:in `create'
>         from /opt/hadoop/contrib/hbase/bin/../bin/hirb.rb:223:in `create'
>         from wtp.create.rb:3:in `binding'

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.