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

Ted Yu commented on HBASE-10638:
--------------------------------

Here is sample output from the script with patch:
{code}
2014-02-28 04:38:05,383 INFO  [main] zookeeper.ZooKeeper: Client 
environment:user.name=hbase
2014-02-28 04:38:05,383 INFO  [main] zookeeper.ZooKeeper: Client 
environment:user.home=/home/hbase
2014-02-28 04:38:05,384 INFO  [main] zookeeper.ZooKeeper: Client 
environment:user.dir=/home/hbase
2014-02-28 04:38:05,385 INFO  [main] zookeeper.ZooKeeper: Initiating client 
connection, connectString=c6401.ambari.apache.org:2181 sessionTimeout=30000 
watcher=hconnection-0x3bbc58a7, quorum=c6401.ambari.apache.org:2181, 
baseZNode=/hbase-unsecure
2014-02-28 04:38:05,421 INFO  [main] zookeeper.RecoverableZooKeeper: Process 
identifier=hconnection-0x3bbc58a7 connecting to ZooKeeper 
ensemble=c6401.ambari.apache.org:2181
2014-02-28 04:38:05,433 INFO  [main-SendThread(c6401.ambari.apache.org:2181)] 
zookeeper.ClientCnxn: Opening socket connection to server 
c6401.ambari.apache.org/192.168.64.101:2181. Will not attempt to authenticate 
using SASL (unknown error)
2014-02-28 04:38:05,441 INFO  [main-SendThread(c6401.ambari.apache.org:2181)] 
zookeeper.ClientCnxn: Socket connection established to 
c6401.ambari.apache.org/192.168.64.101:2181, initiating session
2014-02-28 04:38:05,471 INFO  [main-SendThread(c6401.ambari.apache.org:2181)] 
zookeeper.ClientCnxn: Session establishment complete on server 
c6401.ambari.apache.org/192.168.64.101:2181, sessionid = 0x1446c174f56005e, 
negotiated timeout = 30000
Valid region move targets: 
No regions were moved - there was no server available
{code}

> Improve error message when there is no region server available for move
> -----------------------------------------------------------------------
>
>                 Key: HBASE-10638
>                 URL: https://issues.apache.org/jira/browse/HBASE-10638
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>         Attachments: 10638-v1.txt
>
>
> When there is no region server available to move regions to, we would see:
> {code}
> Valid region move targets:
> TypeError: can't convert nil into String
>         __for__ at /usr/lib/hbase/bin/region_mover.rb:336
>            call at org/jruby/RubyProc.java:270
>            call at org/jruby/RubyProc.java:220
>            each at 
> file:/usr/lib/hbase/lib/jruby-complete-1.6.5.jar!/builtin/java/java.util.rb:7
>   unloadRegions at /usr/lib/hbase/bin/region_mover.rb:333
>          (root) at /usr/lib/hbase/bin/region_mover.rb:471
> {code}
> Better error message / exit code should be provided.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to