1 ssh免密登录
2 建用户和用户组
useradd -m zookeeper
passwd zookeeper
useradd -m hadoop
passwd hadoop
组件安装和启动
zookeeper:
修改配置文件:http://zookeeper.apache.org/doc/r3.4.14/zookeeperAdmin.html#sc_zkMulitServerSetup
启动:所有机器 zkServer.sh start /opt/zookeeper-3.4.14/conf/zoo.cfg
Test your deployment :bin/zkCli.sh -server 127.0.0.1:2181
Hadoop:
useradd -m hadoop
useradd -m hdfs
useradd -m yarn
passwd hadoop
passwd hdfs
passwd yarn
hbase:
useradd -m hbase
passwd hbase
启动: start-hbase.sh
kafka:
在三台机器上分别执行以下命令:
nohup bin/kafka-server-start.sh config/server.properties &
关闭:bin/kafka-server-stop.sh
useradd -m kafka
passwd kafka
https://blog.csdn.net/com_ma/article/details/80139083
https://blog.csdn.net/qq_19524879/article/details/82848556
kafka-server-start.sh -daemon config/server-1.properties &)
spark:
useradd -m spark
passwd spark
网友评论