OPENTSDB Deployment __opentsdb

Source: Internet
Author: User
Tags zookeeper git clone opentsdb
1 Installation

This installation is from the GitHub download source to compile and install 2 operating Environment Linux System (this time using CentOS6.5) JDK 1.6 and above (this time using JDK1.7) HBase 0.92 and above (this time using HBase1.0.0) Gnu Plot 4.2 and above 3 source code compiled 3.1 Environment A Linux system Java Development Kit 1.6 or later GnuPlot 4.2 or later Autoto OLS (autoconf, Automake and Libtool) make Python Git network connection 3.2 download source code

There are many ways to download the source code, you can use Git clone in Linux, you can also go to GitHub download source code uploaded to Linux here to demonstrate the use of git clone download

git clone https://github.com/OpenTSDB/opentsdb.git cd opentsdb./build.sh

After the compilation is complete you will see the build directory Opentsdb/build 3.3 Create the form in the Opentsdb directory

If you are using Opentsdb for the first time, you will need to create a form with the following commands, but you can also enter the HBase Shell to create your own

CD/OPENTSDB/SRC env Compression=none hbase_home= your hbasemulu./create_table.sh eg:env Compression=none HBASE_HOME=/ home/hadoop/app/hbase/./create_table.sh

After executing the above command, you will create four tables in HBase: Four table 3.4 Modify the configuration file

1 into the SRC directory, copy the opentsdb.conf file in the directory to the build directory

CD src CP opentsdb.conf/home/hadoop/app/opentsdb/build/

2 Enter build directory, edit opentsdb.conf

Note: The following configuration file is identified as REQUIRED must be configured, or it will start failure to create Cachedir to store cached files, and it is best to do a timed task to clean up, to avoid the disk is full of unnecessary problems

Note that this attribute Tsd.storage.hbase.zk_quorum = master:2181,slave2:2181,slave3:2181 because my cluster hbase uses an external zookeeper cluster, This property also needs to be configured with the same zookeeper path as in HBase

#---------Network----------# The TCP Port TSD should use for communications # * * * REQUIRED * * Tsd.network.port = 4242 # The IPV4 network address to bind to, defaults to all addresses # tsd.network.bind = 0.0.0.0 # Disable Nagel ' s Algorit Hm, default is True #tsd. Network.tcp_no_delay = true # Determines whether or not to send keepalive packets to peers, DEFA  Ult # is True tsd.network.keep_alive = true # determines if the same socket should are used for new connections, default # is true #tsd. Network.reuse_address = true # Number of worker threads dedicated to Netty, defaults to # of CPUs * 2 #tsd. Network.worker_threads = 8 # Whether or not to use NIO or tradditional blocking IO, defaults to True #tsd. network.async_i
o = true #-----------http-----------# The location of static files for the HTTP GUI interface. # * * * * * * REQUIRED * * * tsd.http.staticroot =/home/hadoop/app/opentsdb/build/staticroot # Where TSD should write it ' s cache fi Les to # * * * * REQUIRED * * * Tsd.http.cachedir =/home/hadoop/app/opentsdb/build/cachedir #---------CORE----------# Whether or not to automatically create UIDs for NE W metric types, Default # is False Tsd.core.auto_create_metrics = true # Whether or not to enable the built-in UI Rpc Plu gins, Default # is True #tsd. core.enable_ui = true # Whether or not to enable ' built-in API Rpc Plugins, Default # is True #tsd. Core.enable_api = true #---------STORAGE----------# Whether or not to enable data compaction in HBase, DEFA 
Ult is true #tsd. Storage.enable_compaction = true # How often, in milliseconds, to flush the data point queue to storage, # default is 1,000 tsd.storage.flush_interval = 1000 # Max number of ' rows to ' returned per Scanner round trips # Tsd.st orage.hbase.scanner.maxNumRows = 128 # Name of the HBase table where data points are stored, the default is ' Tsdb ' #tsd. Stora ge.hbase.data_table = tsdb # Name of the HBase table where UID information is stored, and the default is "Tsdb-uid" #tsd. Storage. Hbase.uid_table = Tsdb-uID # Path under which the Znode for The-root-region are located, the default is "/hbase" #tsd. Storage.hbase.zk_basedir =/HB
ASE # A Comma separated list of zookeeper hosts to connect to, with or without # port specifiers, the default is "localhost" Tsd.storage.hbase.zk_quorum = master:2181,slave2:2181,slave3:2181 #---------compactions-------------------------- -------# Frequency at which compaction thread wakes up to flush stuff in seconds, default Tsd.storage.compaction.flush _interval = 1000 # Minimum rows attempted to compact at once, default # Tsd.storage.compaction.min_flush_threshold = # Maximum number of rows, compacted concirrently, default 10000 # tsd.storage.compaction.max_concurrent_flushes = 100 # Compaction Flush Speed Multiplier, default 2 # tsd.storage.compaction.flush_speed = 2
3.5 Start TSD

Enter Opentsdb/build Directory

CD Build
./tsdb TSD 3.6 View Web pages

We went into Opentsdb's own ugly, impractical web interface to view the parameter sequence diagram, demonstrating the use of 192.168.80.175:4242, and the port number is the configured port number in opentsdb.conf
Opentsdb a Web page with your own

This is the OPENTSDB Deployment Guide, and if you need to deploy multiple nodes, simply copy the compiled Opentsdb folder to another node and run it.

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.