Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Use global directory for source and results
Browse files Browse the repository at this point in the history
  • Loading branch information
AlWestVT authored Nov 4, 2016
1 parent 100d596 commit 0f7254d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CI-Test/src/main/scala/main/Counter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ object Counter {
val conf = new SparkConf().setAppName("AI Counter")
val sc = new SparkContext(conf)

val textFile = sc.textFile("hdfs://dev3/user/thornsj/ABP_E39_DELIVERY_POINT.csv")
val textFile = sc.textFile("hdfs://dev3/ons/addressIndex/AddressBase/ABP_E39_DELIVERY_POINT.csv")

println("Partitions: " + textFile.partitions.length)
println("Total lines: " + textFile.count())
Expand All @@ -20,6 +20,6 @@ object Counter {
println("Lines with Empson Count: " + linesWithEmpson.count())
linesWithEmpson.collect.foreach(println)

linesWithEmpson.saveAsTextFile("file:///home/thornsj/empson_results")
linesWithEmpson.saveAsTextFile("hdfs://dev3/ons/addressIndex/Results/empson_results")
}
}
}

0 comments on commit 0f7254d

Please sign in to comment.