瞌睡中的葡萄虎

博客园 首页 新随笔 联系 订阅 管理

2014年9月10日 #

摘要: spark自带的example中就有streaming结合kafka使用的案例:$SPARK_HOME/examples/src/main/scala/org/apache/spark/examples/streaming/KafkaWordCount.scala使用方法参见代码描述:Usage: ... 阅读全文
posted @ 2014-09-10 16:18 瞌睡中的葡萄虎 阅读(1445) 评论(0) 推荐(0) 编辑

摘要: 使用版本:kafka_2.10-0.8.1.1安装:tar -zxvf kafka_2.10-0.8.1.1.tgz -C ~/app/添加环境变量:.bash_profileexport KAFKA_HOME=/home/spark/app/kafka_2.10-0.8.1.1export PAT... 阅读全文
posted @ 2014-09-10 15:59 瞌睡中的葡萄虎 阅读(1252) 评论(0) 推荐(0) 编辑