virajjasani commented on a change in pull request #2705:
URL: https://github.com/apache/hbase/pull/2705#discussion_r530146588
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMasterCommandLine.java
##########
@@ -139,7 +148,15 @@ public int run(String args[]) throws Exception {
if ("start".equals(command)) {
return startMaster();
} else if ("stop".equals(command)) {
- return stopMaster();
+ if (shutDownCluster) {
+ return stopMaster();
+ }
+ System.err.println(
+ "To shutdown the master run " +
+ "hbase-daemon.sh stop HMaster or send a kill signal to " +
+ "the HMaster pid, " +
+ "and to stop HBase Cluster run stop-hbase.sh or add --forceStop");
Review comment:
nit: `and to stop HBase Cluster either run stop-hbase.sh or add
--forceStop with current command`
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMasterCommandLine.java
##########
@@ -139,7 +148,15 @@ public int run(String args[]) throws Exception {
if ("start".equals(command)) {
return startMaster();
} else if ("stop".equals(command)) {
- return stopMaster();
+ if (shutDownCluster) {
+ return stopMaster();
+ }
+ System.err.println(
+ "To shutdown the master run " +
+ "hbase-daemon.sh stop HMaster or send a kill signal to " +
Review comment:
Isn't it `hbase-daemon.sh stop master`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]