You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Matteo Bertozzi (JIRA)" <ji...@apache.org> on 2015/02/16 14:28:12 UTC
[jira] [Commented] (HBASE-13049) wal_roll ruby command doesn't
work.
[ https://issues.apache.org/jira/browse/HBASE-13049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14322753#comment-14322753 ]
Matteo Bertozzi commented on HBASE-13049:
-----------------------------------------
+1
> wal_roll ruby command doesn't work.
> ------------------------------------
>
> Key: HBASE-13049
> URL: https://issues.apache.org/jira/browse/HBASE-13049
> Project: HBase
> Issue Type: Bug
> Components: shell
> Reporter: Bhupendra Kumar Jain
> Attachments: 0001-HBASE-13049-wal_roll-ruby-command-doesn-t-work.patch
>
>
> On execution of wal_roll command in shell, error message gets displayed as shown below
> hbase(main):005:0> wal_roll 'host-10-19-92-94,16201,1424081618286'
> *ERROR: cannot convert instance of class org.jruby.RubyString to class org.apache.hadoop.hbase.ServerName*
> its because Admin Java api expecting a ServerName object but script passes the ServerName as string.
> currently script is as below
> {code}
> @admin.rollWALWriter(server_name)
> {code}
> It should be like
> {code}
> @admin.rollWALWriter(ServerName.valueOf(server_name))
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)