Github user jerryshao commented on a diff in the pull request:
https://github.com/apache/spark/pull/4961#discussion_r26370007
--- Diff: python/run-tests ---
@@ -96,6 +98,20 @@ function run_ml_tests() {
function run_streaming_tests() {
echo "Run streaming tests ..."
+
+ KAFKA_ASSEMBLY_DIR="$FWDIR"/external/kafka-assembly
+ JAR_PATH="${KAFKA_ASSEMBLY_DIR}/target/scala-${SPARK_SCALA_VERSION}"
+ for f in "${JAR_PATH}"/spark-streaming-kafka-assembly-*.jar; do
+ if [[ ! -e "$f" ]]; then
+ echo "Failed to find Spark Streaming Kafka assembly jar in
$KAFKA_ASSEMBLY_DIR" 1>&2
+ echo "You need to build Spark with sbt
streaming-kafka-assembly/assembly or mvn package" \
+ "before running this program" 1>&2
+ exit 1
+ fi
+ KAFKA_ASSEMBLY_JAR="$f"
+ done
+
+ export EXTRA_PYSPARK_SUBMIT_ARGS="-v --jars ${KAFKA_ASSEMBLY_JAR}"
--- End diff --
Sorry I didn't remove this, it's just for my local test :).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]