Permalink
Browse files

Add start script

  • Loading branch information...
1 parent 45a8349 commit 8df69a8b891b86b6354e567c1065566df93bbae9 Travis Crawford committed Aug 7, 2012
Showing with 17 additions and 10 deletions.
  1. +1 −10 README.md
  2. +16 −0 start.sh
View
@@ -86,16 +86,7 @@ python src/main/python/leaf.py hdfsdu.out/hdfsdu.out > hdfsdu.data
Now we're ready to start HDFS-DU!
```
-cd /path/to/hdfs-du/service
-mvn clean assembly:assembly -DdescriptorId=bin
-cd target
-unzip hdfsdu-service-0.1.0-bin.zip
-java -Xms2048m -Xmx2048m -cp 'hdfsdu-service-0.1.0/lib/*' \
- com.twitter.hdfsdu.HdfsDu \
- -http_port=20000 \
- -use_glog \
- -use_glog_formatter \
- -input_path=hdfsdu.data
+./start.sh /path/to/hdfsdu.data
```
Point your web browser to [http://localhost:20000](http://localhost:20000) and see what your
View
@@ -0,0 +1,16 @@
+#!/bin/bash -x
+
+HDFSDU_VERSION=0.1.0
+
+cd service
+mvn clean assembly:assembly -DdescriptorId=bin
+cd target
+unzip hdfsdu-service-${HDFSDU_VERSION}-bin.zip
+cd hdfsdu-service-${HDFSDU_VERSION}
+pwd
+java -Xms2048m -Xmx2048m -cp 'lib/*' \
+ com.twitter.hdfsdu.HdfsDu \
+ -http_port=20000 \
+ -use_glog \
+ -use_glog_formatter \
+ -input_path=$1

0 comments on commit 8df69a8

Please sign in to comment.