日期:2014-05-16  浏览次数:20703 次

OpenTsdb的eclipse配置与 linux安装

不容易啊,笔记如下备忘


编译期:
MainClass:com.google.gwt.dev.Compiler
Arguments:-war staticroot  QueryUi,其中staticroot是编译后的静态文件的存放目录;
QueryUi是QueryUi.gwt.xml的名字,必须放在src目录下。

Eclipse的debug configuration中的classpath中必须包括src目录,因为compiler需要有源代码。


QueryUi.gwt.xml的内容如下:
<?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>
其中,tsd.client.QueryUi是类全名。类全名中必须有client。




开发期Eclipse运行:
MainClass:
net.opentsdb.tools.TSDMain
Arguments:
--port=4242
--staticroot=staticroot/QueryUi
--cachedir=cachedir
--zkquorum=192.168



Linux安装:

1)update autoconf和 automake


#whereis autoconf #查看autoconf的路径 


#rpm -qf /usr/bin/autoconf #查看autoconf的版本
#rpm -e --nodeps autoconf-2.59-12 #卸载原来版本
#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 #查看是否安装成功




autoconf/automake




2)install gnuplot


tar zxvf....
./configure
make
sudo make install


3)
修改opentsdb/configure.ac的27行
        #AC_PROG_MKDIR_P


修改Makefile.am文件327行   # echo unknown >$@


修改opentsdb\third_party/下的jar包先放到对应的目录


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

1楼hongbo781202前天 20:41
如果要安装libX库,方法如下:nrpm -ivh gd-1.8.4-9.i386.rpm(在http://rpmfind.net/所抓到的GD)nhttp://rpm.pbone.net/index.php3/stat/4/idpl/1542889/dir/whitebox/com/gd-1.8.4-12.x86_64.rpm.htmlnnrpm -qa |grep 检查,缺少哪个安哪个ngd-devel-2.0.33-9.3.fc6.i386.rpmnlibjpeg-devel-6b-37.i386.rpmnlibX11-devel-1.0.3-4.fc6.i386.rpmnn重装gnuplot,并set terminal。nn如果碰到UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position的错误,则需要到n/usr/lib64/python2.4目录下,新建文件sitecustomize.py的文件,里面写入这两句: nimport sys nsys.setdefaultencoding('utf-8')