第11天笔记

启动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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值