启动flume
bin/flume-ng agent --conf conf --conf-file dir-hdfs.conf --name a1 -Dflume.root.logger=INFO,console
启动 kafka
bin/kafka-server-start.sh -daemon config/server.properties
查看卡夫卡列表
bin/kafka-topics.sh --zookeeper hdp01:2181 --list
创建主题
bin/kafka-topics.sh --create --zookeeper hdp01:2181,hdp02:2181,hdp03:2181 --partition
s 3 --replication-factor 3 --topic 1704e
Created topic “1704e”.
创建生产者
bin/kafka-console-producer.sh --broker-list hdp01:9092,hdp02:9092,hdp03:9092 --topic 1704e
创建消费者
bin/kafka-console-consumer.sh --zookeeper hdp01:2181,hdp02:2181,hdp03:2181 --topic 1704e
2、timedatectl list-timezones: 列出所有时区
3、timedatectl set-local-rtc 1 将硬件时钟调整为与本地时钟一致, 0 为设置为 UTC 时间
4、timedatectl set-timezone Asia/Shanghai 设置系统时区为上海
校准时间
1、yum -y install ntp
2、ntpdate ntp1.aliyun.com
slmgr.vbs -xpr