摘要: 1)在/home/hadoop/bin 目录下创建脚本 km.sh [hadoop@el-01 shell]$ vim km.sh 在脚本中填写如下内容 #! /bin/bash case $1 in "start"){ echo " 启动 KafkaManager " cd /bd/kafka-m 阅读全文
posted @ 2019-12-05 16:47 鹦鹉英冠 阅读(1201) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-12-05 16:45 鹦鹉英冠 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1)在 elk-03 的/bd/flume-1.7/conf 目录下创建 kafka-flume-hdfs.conf 文件 [hadoop@elk-03 conf]$ vim kafka-flume-hdfs.conf 2 ) 在文件配置如下内容 ## 组件定义 a1.sources=r1 r2 a 阅读全文
posted @ 2019-12-05 16:43 鹦鹉英冠 阅读(1938) 评论(0) 推荐(0) 编辑
摘要: 1)查看当前服务器中的所有 topic [hadoop@hadoop102 kafka]$ bin/kafka-topics.sh --zookeeper hadoop102:2181 --list 2)创建 topic [hadoop@hadoop102 kafka]$ bin/kafka-top 阅读全文
posted @ 2019-12-05 16:42 鹦鹉英冠 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1)解压安装包 [hadoop@hadoop102 software]$ tar -zxvf kafka_2.11-0.11.0.0.tgz -C /opt/module/ 2)修改解压后的文件名称 [hadoop@hadoop102 module]$ mv kafka_2.11-0.11.0.0/ 阅读全文
posted @ 2019-12-05 16:41 鹦鹉英冠 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1. Flume 安装地址 1) Flume 官网地址 http://flume.apache.org/ 2)文档查看地址 http://flume.apache.org/FlumeUserGuide.html 3)下载地址 http://archive.apache.org/dist/flume/ 阅读全文
posted @ 2019-12-05 16:40 鹦鹉英冠 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1. scp(secure copy)安全拷贝 (1)scp 定义: scp 可以实现服务器与服务器之间的数据拷贝。(from server1 to server2) (2)基本语法 scp-r $pdir/$fname $user@elk-01$host:$pdir/$fname 命令 递归 要拷 阅读全文
posted @ 2019-12-05 16:36 鹦鹉英冠 阅读(686) 评论(0) 推荐(0) 编辑
摘要: 1)在/home/hadoop/shell 目录下创建脚本 gmall-cluster.sh [hadoop@elk01 shell]$ vim gmall-cluster.sh 在脚本中填写如下内容 #! /bin/bash case $1 in "start"){ echo " 启动 集群 " 阅读全文
posted @ 2019-12-05 16:34 鹦鹉英冠 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1)在/home/hadoop/shell 目录下创建脚本 f2.sh [hadoop@elk01 shell]$ vim f2.sh 在脚本中填写如下内容 #! /bin/bash case $1 in "start"){ for i in elk-03 do echo " 启动 $i 消费 fl 阅读全文
posted @ 2019-12-05 16:31 鹦鹉英冠 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-28 15:36 鹦鹉英冠 阅读(118) 评论(0) 推荐(0) 编辑