Permalink
Browse files

fix a syntax error in the readme; add dist to gitignore; detect multi…

…tool jar more robustly
  • Loading branch information...
1 parent 7221dad commit 67af2160d6bd65cfb3e16cf42334afd10d1e5001 Eric "Doc" Ritezel committed May 4, 2011
Showing with 5 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 README.txt
  3. +3 −2 bin/mt
View
1 .gitignore
@@ -5,3 +5,4 @@ lib
*.iws
*.ipr
build.properties
+dist
View
2 README.txt
@@ -71,7 +71,7 @@ Using
For a more complex example:
- > ./bin/mt source=data/topic.100.txt cut=0 \
+ > ./bin/mt data/topic.100.txt cut=0 \
"pgen=(\b[12][09][0-9]{2}\b)" group=0 count=0 group=1 \
sink=output sink.replace=true sink.parts=1
View
5 bin/mt
@@ -13,6 +13,7 @@ green="\033[0;32m"
yellow="\033[0;33m"
white="\033[0;37m"
MT_PATH=.
+MT_JAR=`find $MT_PATH -name multitool*.jar`
function log () {
echo -e "$STACK_INDENT$@"
@@ -72,7 +73,7 @@ function run_multitool () {
OUTPUT_SINK="sink=$OUTPUT_SINK"
fi
- hadoop jar $MT_PATH/multitool.jar source=$INPUT_SOURCE $@ $OUTPUT_SINK 2>&1 | while read mt_line; do
+ hadoop jar $MT_JAR source=$INPUT_SOURCE $@ $OUTPUT_SINK 2>&1 | while read mt_line; do
if echo $mt_line | grep INFO > /dev/null; then
if [[ $VERBOSE -ne 0 ]]; then
info $mt_line
@@ -113,7 +114,7 @@ Options:
USAGE
- hadoop jar $MT_PATH/multitool.jar [args]
+ hadoop jar $MT_JAR [args] | tail -n +3
}
if [[ $# -gt 0 ]]; then

0 comments on commit 67af216

Please sign in to comment.