Otter-Getting Started 2 (Manager installation configuration)

Source: Internet
Author: User
Tags zookeeper
otter-Getting Started 2 (Manager installation configuration)

Preface

The previous section has a brief introduction to the basic information of otter, and we are ready to set up a otter environment of our own, because a otter needs manage+node+ database and a lot of dependencies, this section first to build the Otter Management Server Manager.

Attached:

Meow's Blog: w-blog.cn

Otter Project Address: Https://github.com/alibaba/otter

Otter document Address: Https://github.com/alibaba/otter/wiki 1. Environment installation Package Description

I use this side of the server configuration is: 2 core 4G Cloud server Centos6.5 (64-bit)

The required packages have access to the following connection for downloading:

Baidu Network Disk

We store the downloaded files in the/app/install directory:

It is recommended to use Oneinstack for environment configuration (the default is to update Gcc,cmake and so on to reduce dependency problems)

Oneinstack Official website address

wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz
tar xzf oneinstack-full.tar.gz
cd oneinstack
. /install.sh

Configure the install mysql5.6 with the following options: otter** (initialization manager requires MySQL support) * * Other can select all n more your needs, you can configure the LNMP or LNMT environment.

2. Installation configuration JDK

JDK configuration can also be configured by selecting Web Service tomcat in the upper Oneinstack

First we should install the configuration jdk, which should be dependent on the Java environment for both zookeeper and Otter-manager

TAR-ZXVF jdk-7u79-linux-x64.tar.gz
MV jdk1.7//usr/local/

Set java_home environment variable, edit vim/etc/profile add the following content

Export java_home=/usr/local/jdk1.7
export jre_home=/usr/local/jdk1.7/jre
export classpath=.: $JAVA _home/ Lib/dt.jar: $JAVA _home/lib/tools.jar: $JRE _home/lib:
export path= $JAVA _home/bin: $PATH

After the change, execute the command to take effect

Source/etc/profile

The execution java-version will see the following version of the information to prove that the installation was successful

Java version "1.7.0_79"
Java (tm) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot (tm) 64-bit Server VM (b Uild 24.79-b02, Mixed mode)
3. Installation Configuration Zookeeper

Install configuration zookeeper stand-alone mode:

Cd/app/install
tar zxvf zookeeper-3.4.5-cdh4.3.0.tar.gz
MV zookeeper-3.4.5-cdh4.3.0/tmp/zookeeper
CD/ tmp/zookeeper/
mv conf/zoo_sample.cfg conf/zoo.cfg
mkdir data
echo 1 > Data/myid #将本节点id设定到data/ In the myID file

To modify the bin/zkenv.sh script:

Will zoo_log_dir= "." Modified to zoo_log_dir= "/tmp/zookeeper/data"

Modify zoo_log4j_prop= "Info,console" to zoo_log4j_prop= "Info,rollingfile"

To modify the bin/zkserver.sh script:

Modify zoobin= ' {bash_source-{bash_source-0} ' to Zoobin=readlink-f ' ${bash_source-$0} '

To modify the bin/zkcli.sh script:

Modify zoobin= ' {bash_source-{bash_source-0} ' to Zoobin=readlink-f ' ${bash_source-$0} '

To establish a soft connection to path:

Ln-s/tmp/zookeeper/bin/zkserver.sh/usr/local/bin/zk-server
ln-s/tmp/zookeeper/bin/zkcli.sh/usr/local/bin/ Zk-cli

You can start zookeeper using the following command

Zk-server start
#以下输出为运行成功
JMX enabled by default
Using config:/tmp/zookeeper/bin/. /conf/zoo.cfg
Starting Zookeeper ... Started
4. Installation Configuration Manager

Prepare for the job, and we'll install the manager together.

Mkdir/tmp/manager
cd/app/install/
tar zxvf manager.deployer-$version. tar.gz  -c/tmp/manager

To install the database for the manager:

wget https://raw.github.com/alibaba/otter/master/manager/deployer/src/main/resources/sql/ Otter-manager-schema.sql 
mysql-u root-p
#输入mysql密码
source/tmp/manager/otter-manager-schema.sql

Modify VIM conf/otter.properties configuration file

# # Otter Manager Domain name #修改为正确访问ip (Intranet access configuration intranet address network access configuration extranet address), generate URLs using
otter.domainname = 127.0.0.1    
# otter Manager http port
otter.port = 8080

# Otter Manager database config, modified to correct database information
Otter.database.driver.url = Jdbc:mysql://127.0.01:3306/ottermanager
otter.database.driver.username = root
Otter.database.driver.password = Hello

# Default zookeeper address, modified to the correct location, manually select a geographical proximity to the Zookeeper cluster list, Zookeeper default port 2181
Otter.zookeeper.cluster.default = 127.0.0.1:2181

Start Manager

./bin/startup.sh

Ps:manager compile time takes approximately 1 minutes

Check log:

Cat Logs/manager.log

The following output is successful for startup:

2016-07-28 18:18:31.955 [] INFO  com.alibaba.otter.manager.deployer.OtterManagerLauncher-# # Start the manager Server.
2016-07-28 18:18:51.684 [] INFO  com.alibaba.otter.manager.deployer.JettyEmbedServer-# #Jetty Embed Server is startup!
2016-07-28 18:18:51.684 [] INFO  Com.alibaba.otter.manager.deployer.OtterManagerLauncher-# # The manager server is Running now ...

We're accessing port 8080 of the address we've set up, and we're going to have to turn off the 8080 firewall.

See the following shows our manager is already configured

5. Summary

This section together with the author of the environment, and set up a Zookeeper+manager environment, successfully run the Otter-manager management interface, the next section will be together with everyone node nodes, and configure another MySQL best final preparations, So today this section is here, thank you for your support!

Note: I have limited ability to say that the wrong place I hope you can point out, but also hope that a lot of exchanges!

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.