- Zookeeper 安装、配置、运行
- http://www.fayea.com
- 1
Open your favorite Web browser and go to ZooKeeper's official website. Download the latest stable release from one of the Apache download mirrors. Save the file to your hard drive. Note that this file has a ".jar" extension, so it is an archive.
- 2
Unpack the file somewhere on your hard drive. Installing Hadoop ZooKeeper means creating a configuration file. Change the directory location to root.
-
3
-
Go to the folder where you extracted ZooKeeper and enter the "conf" directory. Create a new configuration file called "zoo.cfg." This is just a text file.
- 4
Open "zoo.cfg" with any text editor and paste in this code:
tickTime=2000
dataDir=/location/zookeeper
clientPort=2181"tickTime" is the basic time unit used by ZooKeeper. The value is represented in milliseconds. "dataDir" is the location where ZooKeeper stores in-memory database snapshots and the update logs. "clientPort" is the port on which ZooKeeper listens for any connections from its clients.
- 5
Change the "dataDir" to an existing, empty directory. The Hadoop ZooKeeper installation is complete. Run this command in your Linux command line to start ZooKeeper:
bin/zkServer.sh start
Read more: How to Install Hadoop Zookeeper | eHow.com http://www.ehow.com/how_12020527_install-hadoop-zookeeper.html#ixzz2NEDEamMl
ZooKeeper
最新推荐文章于 2024-08-14 14:53:39 发布
本文详细介绍如何下载、安装及配置Zookeeper。首先从官方网站获取最新稳定版本,并将其解压缩到硬盘上的指定位置。接着创建配置文件zoo.cfg,设置基本的时间单位、数据目录和客户端监听端口等关键参数。
1万+

被折叠的 条评论
为什么被折叠?



