Skip to content

Commit

Permalink
fix python style
Browse files Browse the repository at this point in the history
  • Loading branch information
Davies Liu committed Dec 16, 2014
1 parent 75d485e commit 048dbe6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/pyspark/streaming/kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def createStream(ssc, zkQuorum, groupId, topics,
jtopics = MapConverter().convert(topics, ssc.sparkContext._gateway._gateway_client)
jlevel = ssc._sc._getJavaStorageLevel(storageLevel)
try:
jstream = ssc._jvm.KafkaUtils.createStream(ssc._jssc, zkQuorum, groupId, jtopics, jlevel)
jstream = ssc._jvm.KafkaUtils.createStream(ssc._jssc, zkQuorum, groupId, jtopics,
jlevel)
except Py4JError, e:
if 'call a package' in e.message:
print "No kafka package, please build it and add it into classpath:"
Expand Down

0 comments on commit 048dbe6

Please sign in to comment.