数据建设实践之大数据平台(二)安装zookeeper
安装zookeeper
上传安装包到/opt/software目录并解压
[bigdata@node101 software]$ tar -zxvf apache-zookeeper-3.5.7-bin.tar.gz -C /opt/services/
重命名文件
[bigdata@node101 services]$ mv apache-zookeeper-3.5.7-bin zookeeper-3.5.7
配置环境变量
export JAVA_HOME=/opt/services/jdk1.8.0_161
export ZK_HOME=/opt/services/zookeeper-3.5.7
export PATH=$PATH:$JAVA_HOME/bin:$ZK_HOME/bin
分发bigdata_env.sh
[bigdata@node101 ~]$ sudo ./bin/xsync /etc/profile.d/bigdata_env.sh
刷新环境变量,5台机器上执行
[bigdata@node101 ~]$ source /etc/profile
/opt/services/zookeeper-3.5.7下创建文件夹
[bigdata@node101 zookeeper-3.5.7]$ mkdir zlogs zdata
原文地址:https://blog.csdn.net/mark_wu2000/article/details/140349558
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!