Install
1.Download Hive Cube
2.Extract Hive Cube
Here we extract to /data/soft/new
directory and extract, as shown below:
tar -zxvf hive-cube-${version}-bin.tar.gz
If you have installed the version before, delete the modified version, and rename the current version, as shown below:
rm -rf hive-cube
mv hive-cube-${version} hive-cube
3.Configure Hive Cube profile
vi /etc/profile
export HC_HOME=/data/soft/new/hive-cube
export PATH=$PATH:$HC_HOME/bin
Then, we use the . /etc/profile
to enable the configuration to take effect immediately.
4.Configure Hive Cube system-config file
cd ${HC_HOME}/conf
vi system-config.properties
#########################################################
## mysql property
#########################################################
hive.cube.driver=com.mysql.jdbc.Driver
hive.cube.url=jdbc:mysql://127.0.0.1:3306/hc?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
hive.cube.username=root
hive.cube.password=smartloli
#########################################################
## hive cube email server address
#########################################################
[email protected]
hive.cube.mail.sa=alert_sa
hive.cube.mail.password=mqslimczkdqabbbg
hive.cube.mail.server.host=smtp.163.com
hive.cube.mail.server.port=25
#########################################################
## hive cube url address
#########################################################
hive.cube.hive.url=jdbc:hive2://master:10000/default&hadoop&hadoop
hive.cube.hive.log=true
#########################################################
## hive cube task thread size
#########################################################
hive.cube.task.thread.pool=1
hive.cube.task.thread.max.pool=2
#########################################################
## hive cube task export path & visit port
#########################################################
hive.cube.task.export.path=/data/soft/workspace/export/
hive.cube.webui.port=50070
#########################################################
## hive cube hadoop(yarn,hdfs uri) application address
#########################################################
hive.cube.hdfs.uri=hdfs://master:8020
hive.cube.yarn.rm.uri=master:8032
hive.cube.yarn.scheduler.uri=master:8030
hive.cube.hadoop.user=hadoop
hive.cube.hdfs.web=http://master:50070
#########################################################
# hive cube set hbase
#########################################################
hive.cube.hbase.master=master:60010
hive.cube.hbase.zk.quorum=master:2181
#########################################################
## hive cube domain name for email
#########################################################
mf.domain.name=http://localhost:8080
[email protected]
First: mkdir /data/soft/workspace/export/
Second: source ${HC_HOME}/sql/hc.sql
5.Start Hive Cube
cd ${HC_HOME}/bin
chmod +x hc.sh
./hc.sh start