Skip to content

Commit

Permalink
update TS PCA/SVD to use new spark-submit
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxr committed Apr 29, 2014
1 parent 6acff75 commit c6178c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,12 @@ import org.apache.spark.mllib.linalg.Vectors
*/
object TallSkinnyPCA {
def main(args: Array[String]) {
if (args.length != 2) {
System.err.println("Usage: TallSkinnyPCA <master> <file>")
if (args.length != 1) {
System.err.println("Usage: TallSkinnyPCA <input>")
System.exit(1)
}

val conf = new SparkConf()
.setMaster(args(0))
.setAppName("TallSkinnyPCA")
.setSparkHome(System.getenv("SPARK_HOME"))
.setJars(SparkContext.jarOfClass(this.getClass).toSeq)
val conf = new SparkConf().setAppName("TallSkinnyPCA")
val sc = new SparkContext(conf)

// Load and parse the data file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,12 @@ import org.apache.spark.mllib.linalg.Vectors
*/
object TallSkinnySVD {
def main(args: Array[String]) {
if (args.length != 2) {
System.err.println("Usage: TallSkinnySVD <master> <file>")
if (args.length != 1) {
System.err.println("Usage: TallSkinnySVD <input>")
System.exit(1)
}

val conf = new SparkConf()
.setMaster(args(0))
.setAppName("TallSkinnySVD")
.setSparkHome(System.getenv("SPARK_HOME"))
.setJars(SparkContext.jarOfClass(this.getClass).toSeq)
val conf = new SparkConf().setAppName("TallSkinnySVD")
val sc = new SparkContext(conf)

// Load and parse the data file.
Expand Down

0 comments on commit c6178c9

Please sign in to comment.