Error while creating a table with compression enabled

2010-12-06 Thread Amandeep Khurana
The command I'm running on the shell:

create 'table', {NAME='fam', COMPRESSION='GZ'}

or

create 'table', {NAME='fam', COMPRESSION='LZO'}


Here's the error:

ERROR: cannot convert instance of class org.jruby.RubyString to class
org.apache.hadoop.hbase.io.hfile.Compression$Algorithm


Any idea what could be causing this? Where do I look?


-ak


Re: Error while creating a table with compression enabled

2010-12-06 Thread Lars George
Hi AK,

This issue? https://issues.apache.org/jira/browse/HBASE-3310

Lars


On Mon, Dec 6, 2010 at 9:17 AM, Amandeep Khurana ama...@gmail.com wrote:
 The command I'm running on the shell:

 create 'table', {NAME='fam', COMPRESSION='GZ'}

 or

 create 'table', {NAME='fam', COMPRESSION='LZO'}


 Here's the error:

 ERROR: cannot convert instance of class org.jruby.RubyString to class
 org.apache.hadoop.hbase.io.hfile.Compression$Algorithm


 Any idea what could be causing this? Where do I look?


 -ak



Re: Error while creating a table with compression enabled

2010-12-06 Thread Amandeep Khurana
Seems like it. Let me try the patch.

-AK

On Dec 6, 2010, at 12:36 PM, Lars George lars.geo...@gmail.com wrote:

 Hi AK,

 This issue? https://issues.apache.org/jira/browse/HBASE-3310

 Lars


 On Mon, Dec 6, 2010 at 9:17 AM, Amandeep Khurana ama...@gmail.com wrote:
 The command I'm running on the shell:

 create 'table', {NAME='fam', COMPRESSION='GZ'}

 or

 create 'table', {NAME='fam', COMPRESSION='LZO'}


 Here's the error:

 ERROR: cannot convert instance of class org.jruby.RubyString to class
 org.apache.hadoop.hbase.io.hfile.Compression$Algorithm


 Any idea what could be causing this? Where do I look?


 -ak