300x250 AD TOP

Powered by Blogger.

Wednesday, 11 June 2014

Tagged under: , , ,

Setup your OpenTSDB in the Cloudera VM.





The following tutorial will guide you to setup your OpenTSDB in the Cloudera VM.


First of all we have the set the time of our machine.

this command will set the time of VM, very important for opentsdb
sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime

If at any point you get the permission error try to login as root using
sudo -s

Install Gnuplot
sudo yum install git automake gnuplot

Make the Git repo
git clone https://github.com/OpenTSDB/opentsdb.git

Then go into the opentsdb folder
cd opentsdb

Execute this command to execute the shell script already in the repo
./build.sh

Set the environment variable
env COMPRESSION=none HBASE_HOME=/usr/lib/hbase ./src/create_table.sh

Then execute this command
mkdir /tmp/tsd

Look in the opentsdb folder and it should contain a folder named "build" just appeared
We're good to go!!

Now run the opentsdb
./build/tsdb tsd --port=4242 --staticroot=build/staticroot/ --cachedir=/tmp/tsd/ --auto-metric

*some important standards are ignored you should study in detail the parameters of the ./build/tsdb tsd command

To check whether OpenTSDB is running or not
http://127.0.0.1:4242

You should see an interface to play with opentsdb and plot some graphs


Opentsdb will start saving some points, we have to use tcollector (plugin) to store some useful information like ram and disk space. We'll cover that in another tutorial.


Cheers

0 comments:

Post a Comment