Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating path names to be clearer

  • Loading branch information...
commit f95d54f14e1b6ab9efecebefad283f2e4345c31e 1 parent 68d5b38
@matthewmccullough authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 hdfs-example/demo.sh
View
8 hdfs-example/demo.sh
@@ -1,5 +1,5 @@
#Remove the last run's output dir
-rm -rf output
+rm -rf localoutput
rm -rf localoutput
#Remove the local equiv to the remote input
rm -rf remoteinput
@@ -24,11 +24,11 @@ hadoop fs -lsr remoteinput
#Run the grep on all the files in localinput
#hadoop fs -mkdir output
-hadoop jar /Applications/Dev/hadoop-family/hadoop-0.20.1/hadoop-*-examples.jar grep remoteinput output '[a-z.]+html'
+hadoop jar /Applications/Dev/hadoop-family/hadoop-0.20.1/hadoop-*-examples.jar grep remoteinput remoteoutput '[a-z.]+html'
#Look at the files remotely
-hadoop fs -cat output/part*
+hadoop fs -cat remoteoutput/part*
#pull the files local
-hadoop fs -get output localoutput
+hadoop fs -get remoteoutput localoutput
cat localoutput/*
Please sign in to comment.
Something went wrong with that request. Please try again.