Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install opentsdb distributed time series database

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install the opentsdb distributed time series database. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Brief introduction:

Opentsdb is a distributed and scalable distributed time series database. Storage based on HBase, on the one hand, it can support massive data, on the other hand, it is also very easy to expand. It is mainly used to monitor some services, such as performance and so on.

Official documents:

Http://opentsdb.net/docs/build/html/installation.html#runtime-requirements

Http://opentsdb.net/docs/build/html/user_guide/configuration.html

Preliminary preparation:

A Linux system

Java Runtime Environment 1.6 or later

HBase 0.92 or later

GnuPlot 4.2 or later

HBase, ZooKeeper: online has been installed, the article is not about

Installation process:

1) dependent library installation:

Sudo yum install-y gd gd-devel libpng libpng-devel

2) gnuplot-5.0.1 installation:

Download, decompress, and go in three steps (. / configure & make & make install) # without specifying the prefix prefix, it will be installed under / share / bin / libexec under the directory specified by prefix.

3) install opentsdb

Download tar or git clone,. / build.sh # server needs to be able to connect to the external network

Compile log:

Linking into / home/hadoop/opentsdb/build/gwt/queryui-later encountered a problem, which is solved according to the compilation log

Link succeeded

Compilation succeeded-30.289s

/ bin/mkdir-p staticroot

Cp.. / src/tsd/static/favicon.ico.. / src/tsd/static/opentsdb_header.jpg staticroot

Find-L staticroot-type l-exec rm {}\

P = `pwd` / gwt/queryui & & cd staticroot\

& & for i in $pAccord cards; do ln-s-f "$I" | | break; done

Find-L staticroot/gwt-type f | xargs touch

Make64 [1]: Leaving directory `/ home/hadoop/opentsdb/build'

Build a table:

Env COMPRESSION=NONE HBASE_HOME=/home/hadoop/hbase-1.0.0-cdh6.5.1/. / src/create_table.sh # decide whether to use compression or not according to the need

Modify the configuration:

OpenTSDB 2.2 works off a configuration file that is shared between the daemon and command line tools. If you compiled from source, copy the. / src/opentsdb.conf file to a proper directory as documented in Configuration and edit the following, required settings:tsd.http.cachedir-Path to write temporary files totsd.http.staticroot-Path to the static GUI files found in. / build/staticroottsd.storage.hbase.zk_quorum-If HBase and Zookeeper are not running on the same machine, specify the host and port here.With the config file written, you can start a tsd with the command:You can use the-- config command line argument to specify the full path to a configuration file. Otherwise if not specified, OpenTSDB and some of the command-line tools will attempt to search for a valid configuration file in the following locations:./opentsdb.conf/etc/opentsdb.conf/etc/opentsdb/opentsdb.conf/opt/opentsdb/opentsdb.conf modified configuration: cp src/opentsdb.conf. # according to the official document, copy the configuration file to the opentsdb installation directory tsd.network.port = 8999 # Port modify # The location of static files for the HTTP GUI interface. # * * REQUIRED * * tsd.http.staticroot = / home/data/opentsdb/static # self-defined, if there is a problem, see problem 2 = / home/hadoop/opentsdb/build/staticroot # correct # Where TSD should write it's cache files to # * * REQUIRED * * tsd.http.cachedir = / home/data/opentsdb/cache tsd.storage.hbase.zk_quorum = host1:2181,host:2181,host3:2181

+ problems encountered and solutions + +

Question 1: log directory

16 Active log file name 46 Suzhou 33197 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender [FILE]-Active log file name: / var/log/opentsdb/opentsdb.log

16File property is set to 46Suzhou 33197 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender [FILE]-File property is set to [/ var/log/opentsdb/opentsdb.log]

16Failed to create parent directories for 46Suzhou 33198 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender [FILE]-Failed to create parent directories for [/ var/log/opentsdb/opentsdb.log]

16 ERROR in ch.qos.logback.core.rolling.RollingFileAppender 46 Suzhou 33199 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender [FILE]-openFile (/ var/log/opentsdb/opentsdb.log,true) call failed. Java.io.FileNotFoundException: / var/log/opentsdb/opentsdb.log (No such file or directory)

Modification: src/logback.xml changed the log directory to a problem defined by itself. The 2:web interface could not be opened and the log report could not find the file.

2016-07-05 16 INFO 03362 INFO [OpenTSDB I id O Worker # 1] HttpQuery: [id: 0xd617c536, / xxx:xxx:xx:xx:52403 = > / xx:xx:xx:xx:8999] HTTP / s/opentsdb_header.jpg done in 0ms

2016-07-05 16 Worker 48 WARN 03810 [OpenTSDB I id O Worker # 1] HttpQuery: [id: 0xd617c536, / xx:xx:xx:xx:52403 = > / xx:xx:xx:xx:8999] File not found: / home/data/opentsdb/static/favicon.ico (No such file or directory)

View the compile-time log:

Linking into / home/hadoop/opentsdb/build/gwt/queryui

Link succeeded

Compilation succeeded-30.289s

/ bin/mkdir-p staticroot

Cp.. / src/tsd/static/favicon.ico.. / src/tsd/static/opentsdb_header.jpg staticroot

Modify the configuration:

Tsd.http.staticroot = / home/hadoop/opentsdb/build/staticroot

This is the end of the article on "how to install opentsdb distributed time series database". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report