Eclipse configuration and Linux installation of opentsdb

Source: Internet
Author: User
Tags opentsdb automake

Not easy. Notes are as follows:

Compilation phase:
Mainclass: COM. Google. GWT. Dev. Compiler
Arguments:-war staticroot queryui, where staticroot is the directory for storing compiled static files;
Queryui is the name of queryui. GWT. xml and must be placed in the src directory.

The classpath In the debug configuration of eclipse must include the src directory, because compiler requires source code.

The content of queryui. GWT. XML is as follows:
<? XML version = "1.0" encoding = "UTF-8"?>
<Module>
<Inherits name = "com. Google. GWT. User. User"/>
<Inherits name = "com. Google. GWT. User. theme. Standard. Standard"/>
<Inherits name = "com. Google. GWT. http. http"/>
<Inherits name = "com. Google. GWT. JSON. JSON"/>
<Entry-point class = "TSD. Client. queryui"/>
<Source Path = "TSD"/>
</Module>
Here, TSD. Client. queryui is the full name of the class. The class name must contain a client.

Eclipse running in the development phase:
Mainclass:
Net. opentsdb. Tools. tsdmain
Arguments:
-- Port = 4242
-- Staticroot = staticroot/queryui
-- Cachedir = cachedir
-- Zkquorum = 192.168

Linux installation:

1) Update Autoconf and automake

# Whereis Autoconf # view the Autoconf path

# Rpm-qf/usr/bin/Autoconf # view the Autoconf version
# Rpm-e -- nodeps autoconf-2.59-12 # unmount the original version
# Tar-zxf autoconf-2.65.tar.gz

# Cd autoconf-2.65

#./Configure -- prefix =/usr
# Make & make install
# Rpm-qf/usr/bin/Autoconf
# Rpm-Qa | grep Autoconf
#/Usr/bin/Autoconf -- Help
#/Usr/bin/Autoconf-V # Check whether the installation is successful

Autoconf/automake

2) install gnuplot

Tar zxvf ....
./Configure
Make
Sudo make install

3)
Modify 27 rows of opentsdb/configure. AC
# Ac_prog_mkdir_p

Modify makefile. Am file row 327 # echo unknown >$ @

Change the jar package under opentsdb \ third_party/to the corresponding directory first.

4)
Chmod 777 ./
Chmod 777./build-Aux
Chmod 777./src/*. Sh // gnuplot

Sudo./build. Sh

5) sudo make install

6)
Sudo./build/tsdb TSD -- Port = 4242 -- staticroot = build/staticroot
-- Cachedir = build/cachedir -- zkquorum = 192.168

Related Article

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.