Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updating path names to be clearer

  • Loading branch information...
commit f95d54f14e1b6ab9efecebefad283f2e4345c31e 1 parent 68d5b38
Matthew McCullough authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 hdfs-example/demo.sh
8 hdfs-example/demo.sh
... ... @@ -1,5 +1,5 @@
1 1 #Remove the last run's output dir
2   -rm -rf output
  2 +rm -rf localoutput
3 3 rm -rf localoutput
4 4 #Remove the local equiv to the remote input
5 5 rm -rf remoteinput
@@ -24,11 +24,11 @@ hadoop fs -lsr remoteinput
24 24
25 25 #Run the grep on all the files in localinput
26 26 #hadoop fs -mkdir output
27   -hadoop jar /Applications/Dev/hadoop-family/hadoop-0.20.1/hadoop-*-examples.jar grep remoteinput output '[a-z.]+html'
  27 +hadoop jar /Applications/Dev/hadoop-family/hadoop-0.20.1/hadoop-*-examples.jar grep remoteinput remoteoutput '[a-z.]+html'
28 28
29 29 #Look at the files remotely
30   -hadoop fs -cat output/part*
  30 +hadoop fs -cat remoteoutput/part*
31 31
32 32 #pull the files local
33   -hadoop fs -get output localoutput
  33 +hadoop fs -get remoteoutput localoutput
34 34 cat localoutput/*

0 comments on commit f95d54f

Please sign in to comment.
Something went wrong with that request. Please try again.