ZooKeeper

  • 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.

  • 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值