hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Hammerton <james.hammer...@mendeley.com>
Subject copy_table.rb doesn't work in 0.20.6
Date Thu, 09 Jun 2011 17:39:20 GMT
Hi,

Before trying to merge regions on a table in our live database we decided to
copy the table and merge the regions on the copy first to test the merging
code works before risking our live data.

However when we try to run the copy_table.rb script it fails due to the
following error (this is actually from a test HBase instance but the error
from the live instance is the same, modulo different paths):

file:/home/james/hbase-0.20.6/lib/jruby-complete-1.2.0.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:33:in
`get_proxy_or_package_under_package': cannot load Java class
org.apache.hadoop.hbase.regionserver.HLogEdit (NameError)
    from
file:/home/james/hbase-0.20.6/lib/jruby-complete-1.2.0.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/builtin/javasupport/java.rb:51:in
`method_missing'
    from /home/james/hbase/bin/copy_table.rb:40

Looking through the copy_table.rb file I could so no reference to HLogEdit
other than the import, so I tried removing it. Now running the script
produces the error below:

file:/home/james/hbase-0.20.6/lib/jruby-complete-1.2.0.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/builtin/java/ast.rb:80:in
`const_missing': uninitialized constant
Java::OrgApacheHadoopHbase::HConstants::COL_REGIONINFO_ARRAY (NameError)
    from /home/james/hbase/bin/copy_table.rb:124
    from
file:/home/james/hbase-0.20.6/lib/jruby-complete-1.2.0.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/builtin/java/collections.rb:47:in
`call'
    from
file:/home/james/hbase-0.20.6/lib/jruby-complete-1.2.0.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/builtin/java/collections.rb:47:in
`each'
    from /home/james/hbase/bin/copy_table.rb:118

I looked at the latest version of the copy_table.rb script and it also
references both HLogEdit and HConstants::COL_REGIONINFO_ARRAY...

Any ideas how to fix this?

Regards,

James

-- 
James Hammerton | Senior Data Mining Engineer
www.mendeley.com/profiles/james-hammerton

Mendeley Limited | London, UK | www.mendeley.com
Registered in England and Wales | Company Number 6419015

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message