Hadoop+Hbase+Spark集群配置—Zookeeper安装



解压、改名
tar -zxvf zookeeper-3.4.6.tar.gz
mv zookeeper-3.4.6 zookeeper

修改配置文件
cp /usr/hadoop/zookeeper/conf/zoo_sample.cfg /usr/hadoop/zookeeper/conf/zoo.cfg
vi /usr/hadoop/zookeeper/conf/zoo.cfg
dataDir=/usr/hadoop/storage/zookeeper/data
dataLogDir=/usr/hadoop/storage/zookeeper/logs
server.1=SA01:2888:3888
server.2=SA02:2888:3888
server.3=SA03:2888:3888

同步到对应节点
for ip in `seq 140 141`;do scp -r /usr/hadoop/zookeeper slave$ip:/usr/hadoop/;done

创建zookeeper的数据文件和日志存放目录[准备环境已做,此步骤略]

分别编辑myid值(和server对应) 
echo 1 > /usr/hadoop/storage/zookeeper/data/myid
echo 2 > /usr/hadoop/storage/zookeeper/data/myid
echo 3 > /usr/hadoop/storage/zookeeper/data/myid

你可能感兴趣的:(zookeeper,hadoop,spark,hbase,大数据集群安装)