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

[09/25] storm git commit: STORM-243:check if STORM_DIR/lib/ folder exists in bin/storm

STORM-243:check if STORM_DIR/lib/ folder exists in bin/storm


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

Branch: refs/heads/master
Commit: 63562966db6ef3a07d3e65a417303efc7827d3c3
Parents: 6187015
Author: caofangkun <ca...@gmail.com>
Authored: Thu Jan 8 17:09:03 2015 +0800
Committer: caofangkun <ca...@gmail.com>
Committed: Thu Jan 8 17:09:03 2015 +0800

----------------------------------------------------------------------
 bin/storm | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/63562966/bin/storm
----------------------------------------------------------------------
diff --git a/bin/storm b/bin/storm
index f041b5f..0d8f970 100755
--- a/bin/storm
+++ b/bin/storm
@@ -88,6 +88,13 @@ def get_config_opts():
     global CONFIG_OPTS
     return "-Dstorm.options=" + ','.join(map(quote_plus,CONFIG_OPTS))
 
+if not os.path.exists(STORM_DIR + "/lib/"):
+    print("******************************************")
+    print("The storm client can only be run from within a release. You appear to be trying to run the client from a checkout of Storm's source code.")
+    print("\nYou can download a Storm release at http://storm-project.net/downloads.html")
+    print("******************************************")
+    sys.exit(1)
+
 def get_jars_full(adir):
     files = os.listdir(adir)
     ret = []