大数据的zookeeper分布式安装
**** 前面的文章已经提到Hadoop的伪分布式安装。现在就在原有的基础上安装zookeeper。
-
首先启动Hadoop平台
[root@master ~]# start-all.sh
Starting namenodes on [master]
Last login: Thu Mar 19 10:06:13 EDT 2020 from 192.168.200.1 on pts/2
Starting datanodes
Last login: Thu Mar 19 10:13:28 EDT 2020 on pts/2
Starting secondary namenodes [node1]
Last login: Thu Mar 19 10:13:31 EDT 2020 on pts/2
Starting resourcemanager
Last login: Thu Mar 19 10:13:46 EDT 2020 on pts/2
Starting nodemanagers
Last login: Thu Mar 19 10:13:56 EDT 2020 on pts/2
将下载好的zookeeper安装包上传到master节点
[root@master ~]# ls
anaconda-ks.cfg zookeeper-3.4.14.tar.gz
将安装包解压在当前的文件夹
[root@master ~]# tar -zxvf zookeeper-3.4.14.tar.gz
进入zookeeper-3.4.14/目录下,查看zookeeper的文件部署
[root@master ~]# cd zookeeper-3.4.14
[root@master zookeeper-3.4.14]# ll
total 1716
drwxr-xr-x 2 2002 2002 4096 Mar 6 2019 bin
-rw-rw-r-- 1 2002 2002 97426 Mar 6 2019 build.xml
drwxr-xr-x 2 2002 2002 88 Apr 25 08:41 conf