You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by te...@apache.org on 2015/01/22 22:50:56 UTC

incubator-slider git commit: SLIDER-734 add check for command line argument

Repository: incubator-slider
Updated Branches:
  refs/heads/develop 1282802fd -> b74b1f593


SLIDER-734 add check for command line argument


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/b74b1f59
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/b74b1f59
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/b74b1f59

Branch: refs/heads/develop
Commit: b74b1f593c74fe122c05da37f06dc6ce64c9db79
Parents: 1282802
Author: tedyu <yu...@gmail.com>
Authored: Thu Jan 22 13:50:36 2015 -0800
Committer: tedyu <yu...@gmail.com>
Committed: Thu Jan 22 13:50:36 2015 -0800

----------------------------------------------------------------------
 app-packages/hbase/hbase-wrapper.py | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/b74b1f59/app-packages/hbase/hbase-wrapper.py
----------------------------------------------------------------------
diff --git a/app-packages/hbase/hbase-wrapper.py b/app-packages/hbase/hbase-wrapper.py
index d3bb6ee..1fae0c2 100644
--- a/app-packages/hbase/hbase-wrapper.py
+++ b/app-packages/hbase/hbase-wrapper.py
@@ -104,6 +104,10 @@ def writePropertiesToConfigXMLFile(infile, outfile, propertyMap):
     writeToFile(xmldoc.toxml(), outfile)
 
 home = expanduser("~")
+if len(sys.argv) < 2:
+  print "the name of cluster instance is required"
+  sys.exit(1)
+
 cluster_instance=sys.argv[1]
 
 hbase_conf_dir="/etc/hbase/conf"