package main.scala
import org.apache.spark._
import SparkContext._
object SparkSimRank {
def main(args: Array[String]) {
val iters = 10
val conf = new SparkConf()
.setMaster("local")
.setAppName("PagRank")
.set("spark.executor.memory", "1g")
.setSparkHome("/home/wang/spark-0.9.0") //(System.getenv("SPARK_HOME"))
.setJars(Seq(System.getenv("SPARK_TEST_JAR")))
val cs = new SparkContext(conf)
val simrankline = cs.textFile("/home/wang/Desktop/experiment/input/5")
val graphline = cs.textFile("/home/wang/Desktop/input/5")
val indegreeline = cs.textFile("/home/wang/Desktop//input1/5")
val graph = graphline.map{ s =>
val key = s.spli
import org.apache.spark._
import SparkContext._
object SparkSimRank {
def main(args: Array[String]) {
val iters = 10
val conf = new SparkConf()
.setMaster("local")
.setAppName("PagRank")
.set("spark.executor.memory", "1g")
.setSparkHome("/home/wang/spark-0.9.0") //(System.getenv("SPARK_HOME"))
.setJars(Seq(System.getenv("SPARK_TEST_JAR")))
val cs = new SparkContext(conf)
val simrankline = cs.textFile("/home/wang/Desktop/experiment/input/5")
val graphline = cs.textFile("/home/wang/Desktop/input/5")
val indegreeline = cs.textFile("/home/wang/Desktop//input1/5")
val graph = graphline.map{ s =>
val key = s.spli