[ 
https://issues.apache.org/jira/browse/HBASE-28269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799734#comment-17799734
 ] 

Nihal Jain commented on HBASE-28269:
------------------------------------

Tested sanity on branch-2.5+ and pushed change to branch-2.5+. For branch-2.x, 
even though the scripts are not broken but good to patch to keep code in sync 
and remove deprecated calls. 
Unfortunately, code does not apply directly on 2.4. As the scripts works fine 
there w/o the patch too, skipping. Let me know, if we still want this there

Thanks for the review [@Apache9|https://github.com/Apache9] !

> Fix broken ruby scripts and clean up logging
> --------------------------------------------
>
>                 Key: HBASE-28269
>                 URL: https://issues.apache.org/jira/browse/HBASE-28269
>             Project: HBase
>          Issue Type: Bug
>          Components: jruby
>    Affects Versions: 3.0.0-alpha-4
>            Reporter: Nihal Jain
>            Assignee: Nihal Jain
>            Priority: Major
>              Labels: ruby
>
> Some of the ruby scripts are broken in 3.x as they are referencing 
> non-existent classes, these were deprecated earlier and removed in 3.x:
>  * {{org.apache.hadoop.hbase.client.HBaseAdmin}}
>  * {{org.apache.hadoop.hbase.HTableDescriptor}}
> Following 4 scripts are failing:
> {code:java}
> NameError: missing class name org.apache.hadoop.hbase.client.HBaseAdmin
>   method_missing at org/jruby/javasupport/JavaPackage.java:253
>           <main> at region_status.rb:50
> {code}
> {code:java}
> {NameError: missing class name org.apache.hadoop.hbase.HTableDescriptor
>   method_missing at org/jruby/javasupport/JavaPackage.java:253
>           <main> at replication/copy_tables_desc.rb:30
> {code}
> {code:java}
> NameError: missing class name org.apache.hadoop.hbase.client.HBaseAdmin
>   method_missing at org/jruby/javasupport/JavaPackage.java:253
>           <main> at draining_servers.rb:28
> {code}
> {code:java}
> NameError: missing class name org.apache.hadoop.hbase.client.HBaseAdmin
>   method_missing at org/jruby/javasupport/JavaPackage.java:253
>           <main> at shutdown_regionserver.rb:27
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to