aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorTathagata Das <tathagata.das1565@gmail.com>2015-02-26 13:46:07 -0800
committerAndrew Or <andrew@databricks.com>2015-02-26 13:47:07 -0800
commitaa63f633d39efa8c29095295f161eaad5495071d (patch)
treee3ecca97e0d71a64b94ef8ad62b8777d0c4dc3f2 /README.md
parent8942b522d8a3269a2a357e3a274ed4b3e66ebdde (diff)
downloadspark-aa63f633d39efa8c29095295f161eaad5495071d.tar.gz
spark-aa63f633d39efa8c29095295f161eaad5495071d.tar.bz2
spark-aa63f633d39efa8c29095295f161eaad5495071d.zip
[SPARK-6027][SPARK-5546] Fixed --jar and --packages not working for KafkaUtils and improved error message
The problem with SPARK-6027 in short is that JARs like the kafka-assembly.jar does not work in python as the added JAR is not visible in the classloader used by Py4J. Py4J uses Class.forName(), which does not uses the systemclassloader, but the JARs are only visible in the Thread's contextclassloader. So this back uses the context class loader to create the KafkaUtils dstream object. This works for both cases where the Kafka libraries are added with --jars spark-streaming-kafka-assembly.jar or with --packages spark-streaming-kafka Also improves the error message. davies Author: Tathagata Das <tathagata.das1565@gmail.com> Closes #4779 from tdas/kafka-python-fix and squashes the following commits: fb16b04 [Tathagata Das] Removed import c1fdf35 [Tathagata Das] Fixed long line and improved documentation 7b88be8 [Tathagata Das] Fixed --jar not working for KafkaUtils and improved error message
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions