设为首页 加入收藏

TOP

大数据常见命令汇总ING....
2019-04-15 12:57:24 】 浏览:61
Tags:数据 常见 命令 汇总 ING....

1/hdfs 启动
start-dfs.sh
2/yarn 启动
start-yarn.sh
3/hive 启动
hive
4/hive 创建表
create table users(id int, name string) row format delimited fields terminated by '/t';
5/hive 导入数据
load data local inpath '/home/hadoop/users.txt' into table users;
6/zk 启动
zkServer.sh start
7/zk 查看状态
zkServer.sh status
8/kafka 启动
nohup bin/kafka-server-start.sh config/server.properties &
创建一个topic
bin/kafka-topics.sh --zookeeper 192.168.2.205:2181,192.168.2.206:2181,192.168.2.207:2181 --topic TestTopic --replication-factor 1 --partitions 1 --create
创建一个生产者
bin/kafka-console-producer.sh --broker-list 192.168.2.205:9092,192.168.2.206:9092,192.168.2.207:9092 --topic TestTopic
创建一个消费者
bin/kafka-console-consumer.sh --zookeeper 192.168.2.205:2181,192.168.2.206:2181,192.168.2.207:2181 --topic TestTopic --from-beginning

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇spark on hive原理与环境搭建 &nb.. 下一篇MetaException(message:Hive Sche..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目