python - TypeError: 'JavaPackage' object is not callable -
i getting below error whilie trying run word count example using sparkstreaming,python.
not sure how proceed. below command running , error.
/opt/spark/bin/spark-submit --jars spark-streaming_2.10-2.0.0.jar test_kafka.py broker.txt "localhost:2181:mytopic" error: traceback (most recent call last): file "/home/ubuntu/kafka/libs/test_kafka.py", line 21, in <module> kvs = kafkautils.createdirectstream(ssc, [topic], {"metadata.broker.list": brokers}) file "/opt/spark/python/lib/pyspark.zip/pyspark/streaming/kafka.py", line 122, in createdirectstream file "/opt/spark/python/lib/pyspark.zip/pyspark/streaming/kafka.py", line 195, in _get_helper typeerror: 'javapackage' object not callable
Comments
Post a Comment