-
Notifications
You must be signed in to change notification settings - Fork 48
How to Use
You must not install Ella on HBase Master machine.
- Download Maven2.2.1
wget http://mirrors.cnnic.cn/apache/maven/maven-2/2.2.1/binaries/apache-maven-2.2.1-bin.zip
- unzip
sudo -s
mkdir /opt/modules
mv apache-maven-2.2.1-bin.zip /opt/modules
unzip apache-maven-2.2.1-bin.zip
- Environment Add these code to /etc/profile
export JAVA_HOME=/usr/java/default
MAVEN_HOME=/opt/modules/apache-maven-2.2.1
M2_HOME=/opt/modules/apache-maven-2.2.1
export MAVEN_HOME
export M2_HOME
PATH=$JAVA_HOME/bin:${MAVEN_HOME}/bin:$PATH
export PATH
- Execute command:
source /etc/profile
- Verify installation execute command:
mvn -version
The print information like this if installed sucessfully:
Apache Maven 2.2.1 (rdebian-8)
Java version: 1.6.0_38
Java home: /usr/lib/jvm/jdk1.6.0_38/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux" version: "3.2.0-33-generic" arch: "amd64" Family: "unix"
- config the hosts
Add the ip-hostname pairs to /etc/hosts of the machine which your install Ella. like this:
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.1.11 hbase-master
192.168.1.12 hbase-rs12
192.168.1.13 hbase-rs13
192.168.1.14 hbase-rs14
192.168.1.15 hbase-rs15
- Download src
wget https://github.com/mayanhui/ella/archive/master.zip
- unzip
mv master /opt/modules/
cd /opt/modules
unzip master
- ls -l
You can see the elle-master directory like this:
[root@hbase-master ella-master]# ls -l
drwxr-xr-x 8 root root 4096 07-29 14:58 jetty-server
-rw-r--r-- 1 root root 35127 07-29 14:58 LICENSE
-rw-r--r-- 1 root root 4680 07-29 14:58 pom.xml
-rw-r--r-- 1 root root 8889 07-29 14:58 pom.xml.bak
-rw-r--r-- 1 root root 1892 07-29 14:58 README.md
drwxr-xr-x 3 root root 4096 07-29 14:58 src
- ella.properties Execute the command:
cd /opt/modules/ella-master/src/main/resources
vi ella.properties
(1) zk
Replace these 3 properties:
hbase.master=192.168.2.61:60000
hbase.zookeeper.quorum=192.168.2.64,192.168.2.63,192.168.2.62
hbase.zookeeper.property.clientPort=2181
(2) url
Replace the hostname and port to your HBase Master in url. You master comply with the url format like below:
ella.hbase.master.baseurl=http://hbase-master:60010/
(3) mysql
Replace the mysql server info like below:
mysql.db.driver=com.mysql.jdbc.Driver
mysql.db.url=jdbc:mysql://localhost:3306/hbase
mysql.db.user=hbase
mysql.db.pwd=hbase
- DataBase and Table
The sql is in the file:
ella-master/src/main/resources/ella-hbase.sql
You need create database, user and tables. Use this command:
source ${BASE_PATH}/ella-master/src/main/resources/ella-hbase.sql
- mvn clean install
Use the above command to compile ella source code and package to war. You can see the maven download dependency pom and jar file from remote maven repos. This step need about a few minutes. Have a cup of coffee!
cd /opt/modules/ella-master/jetty-server
bin/jetty.sh start
Open web app with url:
http://localhost:8080/ella/
Default username and password:
- user: admin
- password: admin123
cd /opt/modules/ella-master/jetty-server
bin/jetty.sh stop