Github user zsxwing commented on a diff in the pull request:
https://github.com/apache/spark/pull/11687#discussion_r55955847
--- Diff: python/pyspark/streaming/kafka.py ---
@@ -192,14 +192,9 @@ def funcWithMessageHandler(m):
@staticmethod
def _get_helper(sc):
try:
- # Use KafkaUtilsPythonHelper to access Scala's KafkaUtils (see
SPARK-6027)
- helperClass =
sc._jvm.java.lang.Thread.currentThread().getContextClassLoader() \
-
.loadClass("org.apache.spark.streaming.kafka.KafkaUtilsPythonHelper")
- return helperClass.newInstance()
- except Py4JJavaError as e:
- # TODO: use --jar once it also work on driver
- if 'ClassNotFoundException' in str(e.java_exception):
--- End diff --
Same as the above comment
---
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]