hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Usman Waheed" <usm...@opera.com>
Subject Re: Hbase: Table rename
Date Mon, 28 Feb 2011 17:35:45 GMT
Yup, i re-ran using ${HBASE_HOME}/bin/hbase org.jruby.Main rename_table.rb  
and it worked.
Thanks,
Usman

> What Stack said, plus I think you didn't run the script properly. You
> shouldn't run the script directly from ruby, see the comments at the
> top of the script:
>
> To see usage for this script, run:
>  ${HBASE_HOME}/bin/hbase org.jruby.Main rename_table.rb
>
> Because it's JRuby, you must run it in a JVM.
>
> J-D
>
> On Mon, Feb 28, 2011 at 8:45 AM, Stack <stack@duboce.net> wrote:
>> On Mon, Feb 28, 2011 at 6:40 AM, Usman Waheed <usmanw@opera.com> wrote:
>>> Hi,
>>>
>>> Is the table rename not supported in Hbase 0.90.0 at the moment?
>>
>> Yes.
>>
>> Currently the bin/*.rb scripts need a bit of massaging to work w/
>> 0.90.x.  Just before the release we had to revert our jruby to a very
>> early version because of licensing issues (HBASE-3374).  The 1.0.3
>> jruby version does not support the 'import' idiom.  The licensing
>> issue has since been cleared up by valiant efforts on the part of the
>> jruby community.   The 1.6.0RC2 release is again compatible w/ Apache
>> licensing.   The 0.90.2 version of hbase will include the 1.6.0
>> version of jruby.
>>
>> Meantime, you could build hbase with a version of jruby that supports
>> import -- just change the pom.xml to refer to 1.5.6 ruby which seems
>> to be the latest version available up in a maven repo -- or you could
>> change java class references in the script to be fully qualified as
>> in, change HTableDescriptor to be instead
>> org.apache.hadoop.hbase.HTableDescriptor (For examples, see
>> src/main/ruby/hbase/table.rb).
>>
>> Sorry for the inconvenience.  Be sure to pick up fixes to this script
>> made over the weekend (HBASE-3575).
>>
>> Yours,
>> St.Ack
>>
>>
>>
>>> I tried using the rename_table.rb in the bin directory but it returned  
>>> with
>>> the following errors:
>>>
>>> ./rename_table.rb abc xyz
>>> ./rename_table.rb: line 36: include: command not found
>>> ./rename_table.rb: line 37: import: command not found
>>> ./rename_table.rb: line 38: import: command not found
>>> ./rename_table.rb: line 39: import: command not found
>>> ./rename_table.rb: line 40: import: command not found
>>> ./rename_table.rb: line 41: import: command not found
>>> ./rename_table.rb: line 42: import: command not found
>>> ./rename_table.rb: line 43: import: command not found
>>> ./rename_table.rb: line 44: import: command not found
>>> ./rename_table.rb: line 45: import: command not found
>>> ./rename_table.rb: line 46: import: command not found
>>> ./rename_table.rb: line 47: import: command not found
>>> ./rename_table.rb: line 48: import: command not found
>>> ./rename_table.rb: line 49: import: command not found
>>> ./rename_table.rb: line 50: import: command not found
>>> ./rename_table.rb: line 51: import: command not found
>>> ./rename_table.rb: line 52: import: command not found
>>> ./rename_table.rb: line 53: import: command not found
>>> ./rename_table.rb: line 54: import: command not found
>>> ./rename_table.rb: line 55: import: command not found
>>> ./rename_table.rb: line 58: NAME: command not found
>>> ./rename_table.rb: line 61: def: command not found
>>> ./rename_table.rb: line 62: puts: command not found
>>> ./rename_table.rb: line 63: exit!: command not found
>>> ./rename_table.rb: line 64: end: command not found
>>> ./rename_table.rb: line 67: syntax error near unexpected token `('
>>> ./rename_table.rb: line 67: `def isDirExists(fs, dir)'
>>>
>>> Thanks,
>>> Usman
>>>
>>> --
>>> Using Opera's revolutionary email client: http://www.opera.com/mail/
>>>
>>


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/

Mime
View raw message