Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

'JavaPackage' object is not callable

'JavaPackage' object is not callable

Explorer

kvs = KafkaUtils.createDirectStream(ssc, [topic], {"metadata.broker.list": brokers})

 

'JavaPackage' object is not callable Traceback (most recent call last): File "/usr/lib/spark/python/lib/pyspark.zip/pyspark/streaming/kafka.py", line 78, in createStream helper = KafkaUtils._get_helper(ssc._sc) File "/usr/lib/spark/python/lib/pyspark.zip/pyspark/streaming/kafka.py", line 217, in _get_helper return sc._jvm.org.apache.spark.streaming.kafka.KafkaUtilsPythonHelper() TypeError: 'JavaPackage' object is not callable

 

Any suggestions?

 

Don't have an account?
Coming from Hortonworks? Activate your account here