虚拟机启动服务

  1. 任意主机运行 start-dfs.sh(namenode,datanode,secondarynamenode)

  2. 第二台主机运行 start-yarn.sh(resourcemanager,nodemanager)

3.任意主机运行 mr-jobhistory-daemon.sh start
mr-jobhistory-daemon.sh start historyserver

https://www.cnblogs.com/huyong/archive/2011/06/03/2071228.html

zkServer.sh start

start-hbase.sh

kafka

启动
kafka-server-start.sh /opt/modules/app/kafka/config/server.properties

kafka-topics.sh --create --zookeeper hadoop03:2181 --replication-factor 2 --partitions 3 --topic orderMq

生产者
kafka-console-producer.sh --broker-list hadoop03:9092 --topic orderMq
消费者
kafka-console-consumer.sh --zookeeper hadoop03:2181 -from-beginning --topic orderMq

你可能感兴趣的:(虚拟机启动服务)