Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-13049

wal_roll ruby command doesn't work.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 2.0.0
    • Fix Version/s: 1.0.1, 1.1.0, 0.98.11, 2.0.0
    • Component/s: shell
    • Labels:
      None

      Description

      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

      @admin.rollWALWriter(server_name)
      

      It should be like

      @admin.rollWALWriter(ServerName.valueOf(server_name))
      

        Attachments

          Activity

            People

            • Assignee:
              Bhupendra Bhupendra Kumar Jain
              Reporter:
              Bhupendra Bhupendra Kumar Jain

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment