2018年11月27日
摘要: 注意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 一只猪儿虫 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 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 一只猪儿虫 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 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 一只猪儿虫 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 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 一只猪儿虫 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 第一种:饿汉式: 第二种:懒汉式:单例的延迟加载模式 第三种: 阅读全文
posted @ 2018-11-27 11:29 一只猪儿虫 阅读(136) 评论(0) 推荐(0) 编辑