Re: groupByKey is not working

2015-01-30 Thread Stephen Boesch
data = sc.textFile(/home/amit/testData.csv).cache() val result = data.mapPartitions(pLines).groupByKey //val list = result.filter(x= {(x._1).contains(24050881)}) } } Here groupByKey is not working . But same thing is working from spark-shell. Please help me

Re: groupByKey is not working

2015-01-30 Thread Amit Behera
sc = new SparkContext(conf) val data = sc.textFile(/home/amit/testData.csv).cache() val result = data.mapPartitions(pLines).groupByKey //val list = result.filter(x= {(x._1).contains(24050881)}) } } Here groupByKey is not working . But same thing is working from *spark

Re: groupByKey is not working

2015-01-30 Thread Amit Behera
= data.mapPartitions(pLines).groupByKey //val list = result.filter(x= {(x._1).contains(24050881)}) } } Here groupByKey is not working . But same thing is working from spark-shell. Please help me Thanks Amit

Re: groupByKey is not working

2015-01-30 Thread Amit Behera
SparkConf().setAppName(Spark Job).setMaster(local) val sc = new SparkContext(conf) val data = sc.textFile(/home/amit/testData.csv).cache() val result = data.mapPartitions(pLines).groupByKey //val list = result.filter(x= {(x._1).contains(24050881)}) } } Here groupByKey

Re: groupByKey is not working

2015-01-30 Thread Charles Feduke
().setAppName(Spark Job).setMaster(local) val sc = new SparkContext(conf) val data = sc.textFile(/home/amit/testData.csv).cache() val result = data.mapPartitions(pLines).groupByKey //val list = result.filter(x= {(x._1).contains(24050881)}) } } Here groupByKey

Re: groupByKey is not working

2015-01-30 Thread Charles Feduke
)}) } } Here groupByKey is not working . But same thing is working from *spark-shell.* Please help me Thanks Amit

groupByKey is not working

2015-01-30 Thread Amit Behera
result = data.mapPartitions(pLines).groupByKey //val list = result.filter(x= {(x._1).contains(24050881)}) } } Here groupByKey is not working . But same thing is working from *spark-shell.* Please help me Thanks Amit

Re: groupByKey is not working

2015-01-30 Thread Arush Kharbanda
().setAppName(Spark Job).setMaster(local) val sc = new SparkContext(conf) val data = sc.textFile(/home/amit/testData.csv).cache() val result = data.mapPartitions(pLines).groupByKey //val list = result.filter(x= {(x._1).contains(24050881)}) } } Here groupByKey is not working