spark streaming 没有统计结果

问答 shengda ⋅ 于 2017-03-28 12:56:45 ⋅ 最后回复由 shengda 2017-03-28 15:56:06 ⋅ 4164 阅读

# bin/spark-submit --class org.apache.spark.examples.streaming.HdfsWordCount examples/jars/spark-examples_2.11-2.1.0.jar hdfs://hadoop.lsd1.com:9000/wordcount/input
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
17/03/26 12:19:30 INFO StreamingExamples: Setting log level to [WARN] for streaming example. To override add a custom log4j.properties to the classpath.
17/03/26 12:19:31 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
17/03/26 12:19:40 WARN FileInputDStream: Time taken to find new files exceeds the batch size. Consider increasing the batch size or reducing the number of files in the monitored directory.
-------------------------------------------
Time: 1490545178000 ms
-------------------------------------------

-------------------------------------------
Time: 1490545180000 ms
-------------------------------------------

-------------------------------------------
Time: 1490545182000 ms
-------------------------------------------

如上,spark2.1.0的example目录下的HDFSWordcount 示例,运行起来只是隔一秒打印一回监听信息,但是没有统计结果(指定的目录是有文件的),程序终止后也没有结果信息;另外也用idea调试过代码重新打过包,都是一样的情形,不知道往哪方面考虑解决?

回复数量: 1
  • shengda 奔跑的多多
    2017-03-28 15:56:06

    已经解决

暂无评论~~
  • 请注意单词拼写,以及中英文排版,参考此页
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`, 更多语法请见这里 Markdown 语法
  • 支持表情,可用Emoji的自动补全, 在输入的时候只需要 ":" 就可以自动提示了 :metal: :point_right: 表情列表 :star: :sparkles:
  • 上传图片, 支持拖拽和剪切板黏贴上传, 格式限制 - jpg, png, gif,教程
  • 发布框支持本地存储功能,会在内容变更时保存,「提交」按钮点击时清空
Ctrl+Enter