diff options
author | M S Vishwanath Bhat <vishwanath@gluster.com> | 2012-03-27 17:59:15 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-03-28 12:05:55 -0700 |
commit | 864c9b612a5965a0934dcbdc51f84018d27c2c80 (patch) | |
tree | 98cf392b363cd86d7ccfc0136161f482f465021d | |
parent | 3360fca3f3abf4dd6b1025063610f5c8c880a747 (diff) |
build-deploy-jar.py: Print usage message when hadoop home directory is missing.
Change-Id: I0b55b33a36a4a5e4f1b71547629d20ae6b5eba5a
BUG: 807155
Signed-off-by: M S Vishwanath Bhat <vishwanath@gluster.com>
Reviewed-on: http://review.gluster.com/3017
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
-rwxr-xr-x | glusterfs-hadoop/0.20.2/tools/build-deploy-jar.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/glusterfs-hadoop/0.20.2/tools/build-deploy-jar.py b/glusterfs-hadoop/0.20.2/tools/build-deploy-jar.py index 3c67108e199..c20e53b39b2 100755 --- a/glusterfs-hadoop/0.20.2/tools/build-deploy-jar.py +++ b/glusterfs-hadoop/0.20.2/tools/build-deploy-jar.py @@ -172,9 +172,12 @@ if __name__ == '__main__': elif k in ("-h", "--henv"): copyHadoopEnv = True else: - assert False, "unhandled option" + pass - assert not hadoop_dir == None, "hadoop directory missing" + if hadoop_dir == None: + print 'hadoop directory missing' + usage() + sys.exit(1) os.chdir(os.path.dirname(sys.argv[0]) + '/..') targetdir = './target/' |