11 2018 档案
storm_分组策略
摘要:注意1:原始的案例 spout 和bolt都是1个并发 所以文件中30条日志 从spout发出以后 bolt接受到30条 注意2:spout 给成2 和bolt是1 所以文件中30条日志 从2个spout发出以后 bolt接受到60条 注意3:spout 给成1和bolt是2 所以文件中30条日志  阅读全文
posted @ 2018-11-27 11:35 一只猪儿虫 阅读(154) 评论(0) 推荐(0)
storm_常用命令
摘要:1)nimbus:启动nimbus守护进程 storm nimbus 2)supervisor:启动supervisor守护进程 storm supervisor 3)ui:启动UI守护进程。 storm ui 4)list:列出正在运行的拓扑及其状态 storm list 5)logviewer: 阅读全文
posted @ 2018-11-27 11:34 一只猪儿虫 阅读(187) 评论(0) 推荐(0)
Storm集群搭建
摘要:1 准备: 3台虚拟机 + Jdk8 +zookeeper集群 2 Storm集群部署 1)下载/opt/software目录下 官方网址:http://storm.apache.org/ 2) 解压jar包到 ~/module目录下 tar -zxf apache-storm-1.1.0.tar. 阅读全文
posted @ 2018-11-27 11:33 一只猪儿虫 阅读(328) 评论(0) 推荐(0)
Elasticsearch 安装
摘要:1,Elasticsearch 安装: 官网下载 https://www.elastic.co/downloads/past-releases/elasticsearch-5-2-2 安装包 解压 Elasticsearch安装包 tar -zxvf elasticsearch-5.6.2.tar. 阅读全文
posted @ 2018-11-27 11:32 一只猪儿虫 阅读(221) 评论(0) 推荐(0)
单例模式(饿汉式+懒汉式)
摘要:第一种:饿汉式: 第二种:懒汉式:单例的延迟加载模式 第三种: 阅读全文
posted @ 2018-11-27 11:29 一只猪儿虫 阅读(149) 评论(0) 推荐(0)
本机spark 消费kafka失败(无法连接)
摘要:本机spark 消费kafka失败(无法连接) 终端也不报错 就特么不消费: 但是用console的consumer 却可以 经过各种改版本 ,测试配置,最后发现 只要注释掉 kafka 配置server.properties 中的host.name=kevinhost1(我自己的主机名) 就行了 阅读全文
posted @ 2018-11-12 18:03 一只猪儿虫 阅读(776) 评论(0) 推荐(0)