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