Github user jerryshao commented on the pull request:

    https://github.com/apache/spark/pull/5632#issuecomment-117974334
  
    Here is the code in python test which used to search the Kafka assembly jar.
    
    ```
    def search_kafka_assembly_jar():
        SPARK_HOME = os.environ["SPARK_HOME"]
        kafka_assembly_dir = os.path.join(SPARK_HOME, "external/kafka-assembly")
        jars = glob.glob(
            os.path.join(kafka_assembly_dir, 
"target/scala-*/spark-streaming-kafka-assembly-*.jar"))
        if not jars:
            raise Exception(
                ("Failed to find Spark Streaming kafka assembly jar in %s. " % 
kafka_assembly_dir) +
                "You need to build Spark with "
                "'build/sbt assembly/assembly 
streaming-kafka-assembly/assembly' or "
                "'build/mvn package' before running this test")
        elif len(jars) > 1:
            raise Exception(("Found multiple Spark Streaming Kafka assembly 
JARs in %s; please "
                             "remove all but one") % kafka_assembly_dir)
        else:
            return jars[0]
    ```
    Here assumes Kafka assembly jar is in 
`target/scala-*/spark-streaming-kafka-assembly-*.jar`. 
    
    I'm not sure if this could explain your doubt.



---
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]

Reply via email to