Install zookeeper under Windows

Source: Internet
Author: User

Official homepage: https://zookeeper.apache.org/

Select the appropriate image address to download zookeeperhttp://mirrors.hust.edu.cn/apache/zookeeper/here Select the latest zookeeper-3.5.1-alpha version to download and then unzip. After the decompression is completed, the Conf directoryzoo_sample.cfg file renamed to Zoo.cfgSimple modification of configuration files, custom settings data files directory and log file directoriesShould be zookeeper is built on the Java platform, so we must install the appropriate JDK as needed we can choose the JDK version we need, here to download the latest Windows 64-bit version, the address is as follows http://www.oracle.com/ technetwork/java/javase/downloads/jdk8-downloads-2133151.html JDK installation is very simple, directly double-click the installation, but there is a need to pay attention to a place, is also a small pit In the JDK installation of the need to specify the installation directory, in general, we will install the program by default in these folders below for the General Java application does not have much problem, but for zookeeper, if you install the JDK in the above directory,  When actually running, it will be found that zookeeper will report a error:java_home is incorrectly set. Error This is because zookeeper can not find the JAVA runtime program under Java_home The main reason for this is that the JDK installation directory contains special characters, which is because the program files and other directories contain spaces, Cause zookeeper cannot find the Java.exe program, so when installing the JDK as far as possible to install it in the English-language directory, do not include spaces and other special characters, the following is my installation directory after the JDK installed, we can launch our zookeeper under Windows , run the Zkserver.cmd in the bin directory directly on the command line.

Install zookeeper under Windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.