Skip to content

Commit 7b58c60

Browse files
committed
minor
1 parent 6e35d7e commit 7b58c60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/src/main/scala/org/apache/spark/examples/mllib/TallSkinnyPCA.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ object TallSkinnyPCA {
4444
val sc = new SparkContext(conf)
4545

4646
// Load and parse the data file.
47-
val rows = sc.textFile(args(1)).map { line =>
47+
val rows = sc.textFile(args(0)).map { line =>
4848
val values = line.split(' ').map(_.toDouble)
4949
Vectors.dense(values)
5050
}

examples/src/main/scala/org/apache/spark/examples/mllib/TallSkinnySVD.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ object TallSkinnySVD {
4444
val sc = new SparkContext(conf)
4545

4646
// Load and parse the data file.
47-
val rows = sc.textFile(args(1)).map { line =>
47+
val rows = sc.textFile(args(0)).map { line =>
4848
val values = line.split(' ').map(_.toDouble)
4949
Vectors.dense(values)
5050
}

0 commit comments

Comments
 (0)