Skip to content

Commit 41886c2

Browse files
Ken Takagiwagiwa
Ken Takagiwa
authored andcommittedSep 20, 2014
comment PythonDStream.PairwiseDStream
1 parent 0b99bec commit 41886c2

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed
 

‎streaming/src/main/scala/org/apache/spark/streaming/api/python/PythonDStream.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class PythonDStream[T: ClassTag](
174174
}
175175
}
176176

177-
177+
/*
178178
private class PairwiseDStream(prev:DStream[Array[Byte]]) extends
179179
DStream[(Long, Array[Byte])](prev.ssc){
180180
override def dependencies = List(prev)
@@ -277,6 +277,7 @@ class PythonTransformedDStream(
277277
=======
278278
val asJavaPairDStream : JavaPairDStream[Long, Array[Byte]] = JavaPairDStream(this)
279279
}
280+
*/
280281

281282

282283

‎streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala

+2-4
Original file line numberDiff line numberDiff line change
@@ -619,10 +619,7 @@ abstract class DStream[T: ClassTag] (
619619
new ForEachDStream(this, context.sparkContext.clean(foreachFunc)).register()
620620
}
621621

622-
623-
624-
625-
622+
//TODO move pyprint to PythonDStream
626623
/**
627624
* Print the first ten elements of each PythonRDD generated in this PythonDStream. This is an output
628625
* operator, so this PythonDStream will be registered as an output stream and there materialized.
@@ -643,6 +640,7 @@ abstract class DStream[T: ClassTag] (
643640
tempFileStream.close()
644641

645642
// This value has to be passed from python
643+
// Python currently does not do cluster deployment. But what happened
646644
val pythonExec = new ProcessBuilder().environment().get("PYSPARK_PYTHON")
647645
val sparkHome = new ProcessBuilder().environment().get("SPARK_HOME")
648646
//val pb = new ProcessBuilder(Seq(pythonExec, sparkHome + "/python/pyspark/streaming/pyprint.py", tempFile.getAbsolutePath())) // why this fails to compile???

0 commit comments

Comments
 (0)