summaryrefslogtreecommitdiffstats
path: root/glusterfs-hadoop
diff options
context:
space:
mode:
authorM S Vishwanath Bhat <vishwanath@gluster.com>2012-03-27 17:59:15 +0530
committerVijay Bellur <vijay@gluster.com>2012-03-28 12:05:55 -0700
commit864c9b612a5965a0934dcbdc51f84018d27c2c80 (patch)
tree98cf392b363cd86d7ccfc0136161f482f465021d /glusterfs-hadoop
parent3360fca3f3abf4dd6b1025063610f5c8c880a747 (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>
Diffstat (limited to 'glusterfs-hadoop')
-rwxr-xr-xglusterfs-hadoop/0.20.2/tools/build-deploy-jar.py7
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/'