一、Hbase单机模式安装 (先安装java jdk)
wget http://mirror.bit.edu.cn/apache/hbase/1.1.4/hbase-1.1.4-bin.tar.gz
tar zxf hbase-1.1.4-bin.tar.gz
mv hbase-1.1.4-bin/ /usr/local/hbase
vim /usr/local/hbase/conf/hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>/data/hbase</value>
</property>
</configuration>
export HBASE_HOME=/usr/local/hbase
export JAVA_HOME JAVA_BIN PATH CLASSPATH HBASE_HOME
/usr/local/hbase/bin/start-hbase.sh
二、opentsdb 安装
- 安装依懒
yum install -y gnuplot
- 使用rpm安装
wget https://github.com/OpenTSDB/opentsdb/releases/download/v2.2.0/opentsdb-2.2.0.noarch.rpm
yum localinstall opentsdb-2.2.0.noarch.rpm -y
vim /etc/opentsdb/opentsdb.conf
tsd.http.staticroot = /usr/share/opentsdb/static/
tsd.http.cachedir = /tmp/opentsdb
tsd.core.plugin_path = /usr/share/opentsdb/plugins
tsd.storage.hbase.data_table = tsdb
vim /usr/share/opentsdb/tools/create_table.sh
COMPRESSION=NONE #关闭COMPRESSION
#执行脚本
/usr/share/opentsdb/tools/create_table.sh
tsdb tsd --port 4242