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

Jesse Yates commented on HBASE-12428:
-------------------------------------

[~lhofhansl] the problem is that is doesn't handle the port correctly. If there 
isn't one specified, it will throw an exception when it tries to cleanup old 
files. However, we are also doing the "... unless port" check in two different 
places, which is not as clean as it could be.

So this just sets up the port in a single place, if its not set via the command 
line.

> region_mover.rb script is broken. If port is not specified there's a object 
> nil exception
> -----------------------------------------------------------------------------------------
>
>                 Key: HBASE-12428
>                 URL: https://issues.apache.org/jira/browse/HBASE-12428
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.98.7
>            Reporter: Sameer Vaishampayan
>            Assignee: Sameer Vaishampayan
>              Labels: newbie, patch
>             Fix For: 0.98.7
>
>         Attachments: HBASE-12428-0.98.7.patch
>
>
> TypeError: can't convert nil into String
>     getFilename at /home/user/hbase/bin/region_mover.rb:466
>   unloadRegions at /home/user/hbase/bin/region_mover.rb:327
>          (root) at /home/user/hbase/bin/region_mover.rb:515



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to