Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6211

Test Python Kafka API using Python unit tests

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 1.4.0
    • DStreams, Tests
    • None

    Description

      This is tricky in python because the KafkaStreamSuiteBase (which has the functionality of creating embedded kafka clusters) is in the test package, which is not in the python path. To fix that, we have to ways.

      1. Add test jar to classpath in python test. Thats kind of trickier.

      2. Bring that into the src package (maybe renamed as KafkaTestUtils), and then wrap that in python to use it from python.

      If (2) does not add any extra test dependencies to the main Kafka pom, then 2 should be simpler to do.

      Attachments

        Issue Links

          Activity

            People

              jerryshao Saisai Shao
              tdas Tathagata Das
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: