Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Construction of OpenTSDB v2.4.0 Intellij IDEA development environment

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Source code ready 1. Download the source code lynn@lynn-ubuntu:/codes/github$ git clone https://github.com/OpenTSDB/opentsdb.gitCloning into 'opentsdb'...remote: Enumerating objects: 306, done.remote: Counting objects: 100% (306 delta 306), done.remote: Compressing objects: 100% (122 reused 122), done.remote: Total 33302 (delta 92), reused 273 (delta 86), pack-reused 32996Receiving objects: 100% (33302 reused 33302), 36.25 MiB | 65.00 KiB/s Done.Resolving deltas: 100% (18824 / 18824), done.2. Create branch v2.4.0

View a list of remote Tags:

Lynn@lynn-ubuntu:/codes/github/opentsdb$ git tag...v2.3.2v2.4.0v2.4.0RC2

Check out the branch:

Lynn@lynn-ubuntu:/codes/github/opentsdb$ git checkout-b v2.4.0Switched to a new branch 'v2.4.0 compiled and packaged by UBU UBUBUBUP OPENTS Dbb $git branch master* v2.4.0

Build the pom.xml configuration file:

Lynn@lynn-ubuntu:/codes/github/opentsdb$ sh build.sh pom.xml+ test-f configure+. / bootstrapautoreconf: Entering directory `. Autoreconf: configure.ac: not using Gettextautoreconf: running: aclocal-- force- I build-auxautoreconf: configure.ac: tracingautoreconf: configure.ac: not using Libtoolautoreconf: running: / usr/bin/autoconf-- forceautoreconf: configure.ac: not using Autoheaderautoreconf: running: automake-- add-missing-- copy-- force-missingconfigure.ac:19: installing 'build-aux/install-sh' Configure.ac:19: installing 'build-aux/missing'Makefile.am:921: warning: whitespace following trailing backslashthird_party/validation-api/include.mk:24: warning: variable' VALIDATION_API_SOURCES' is defined but no program orthird_party/validation-api/include.mk:24: library has' VALIDATION_API' as canonical name (possible typo) Makefile.am:983: 'third_party/include.mk' included from herethird_party/include.mk:38:' third_party/validation- Api/include.mk' included from hereautoreconf: Leaving directory `.'+ test-d build+ mkdir build+ cd build+ test-f Makefile+.. / configure pom.xmlconfigure: WARNING: you should use-- build -host,-targetchecking for a BSD-compatible install... / usr/bin/install-cchecking whether build environment is sane... Yeschecking for a thread-safe mkdir-p. / bin/mkdir-pchecking for gawk... Nochecking for mawk... Mawkchecking whether make sets $(MAKE)... Yeschecking whether make supports nested variables... Yeschecking for md5sum... / usr/bin/md5sumchecking for java... / usr/lib/jdk1.8.0_172/bin/javachecking for javac... / usr/lib/jdk1.8.0_172/bin/javacchecking for jar... / usr/lib/jdk1.8.0_172/bin/jarchecking for true... / bin/truechecking for javadoc... / usr/lib/jdk1.8.0_172/bin/javadocchecking for wget... / usr/bin/wgetchecking for curl... / opt/anaconda2/bin/curlchecking that generated files are newer than configure... Doneconfigure: creating. / config.statusconfig.status: creating Makefileconfig.status: creating opentsdb.specconfig.status: creating build-aux/fetchdep.sh+ MAKE=make+ uname-s + [Linux = FreeBSD] + exec make pom.xml (cd.. ;. / build-aux/create-src-dir-overlay.sh) {\ echo';\ sed pom.xml-tmv pom.xml-t.. / pom.xml

Compile and package:

Mvn clean package-Phbase Import Intellij IDEA

1. Because there is only jdk1.8 locally, modify the jdk version of the pom.xml file

Pom.xml

Org.apache.maven.plugins maven-compiler-plugin 2.5.1 1.8-Xlint * * / client/*.java * * / TestGraphHandler.java Code redundancy error: Error: (36,10) java: duplicate class: tsd.client.EventsHandler

So set the src-main/tsd directory to the Excluded state.

3. Run the main program:

Src-main/net/opentsdb/tools/OpenTSDBMain

Or

Src-main/net/opentsdb/tools/TSDMain sets the fat-jar directory to ResourcesRoot and joins Classpath to create related forms in HBase. Lynn:lynnlynn:lynn-metalynn:lynn-treelynn:lynn-uid adds the following running parameters:

OpenTSDBMaintsd-zkquorum manager.bigdata.com:2181-zkbasedir / hbase-unsecure-uidtable lynn:lynn-uid-table lynn:lynn--metatable lynn:lynn-meta-treetable lynn:lynn-tree

TSDMain

-- config=/opt/opentsdb-2.4.0/etc/opentsdb/opentsdb.conf

Opentsdb.conf

#-NETWORK-# The TCP port TSD should use for communications# * REQUIRED * * tsd.network.port = 424 The IPv4 network address to bind to, defaults to all addresses# tsd.network.bind = 0.0.0.1 Disable Nagel's algorithm, default is True#tsd.network.tcp_no_delay = true# Determines whether or not to send keepalive packets to peers Default# is True#tsd.network.keep_alive = true# Determines if the same socket should be 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 = Whether or not to use NIO or tradditional blocking IO Defaults to True#tsd.network.async_io = true#-HTTP-# The location of static files for the HTTP GUI interface.# * REQUIRED * tsd.http.staticroot = / opt/opentsdb-2.4.0/static/# Where TSD should write it's cache files to# * * REQUIRED * tsd.http.cachedir = / tmp/opentsdb#-CORE -# Whether or not to automatically create UIDs for new metric types Default# is Falsetsd.core.auto_create_metrics = true#-STORAGE-# Whether or not to enable data compaction in HBase, default is True#tsd.storage.enable_compaction = true#Whether or not to append data to columns when writing data points instead of creating new columns for each value. Avoids the need for compactions after each hour but can use more resources on HBase.#tsd.storage.enable_appends = false# How often, in milliseconds, to flush the data point queue to storage,# default is 100 million tsd.storage.flush_interval = 100 million Name of the HBase table where data points are stored, default is "tsdb" tsd.storage.hbase.data_table = lynn:lynn# Name of the HBase table where UID information is stored Default is "tsdb-uid" tsd.storage.hbase.uid_table = lynn:lynn-uidtsd.storage.hbase.meta_table = lynn:lynn-metatsd.storage.hbase.tree_table = lynn:lynn-tree# Path under which the znode for the-ROOT- region is located, default is "/ hbase" tsd.storage.hbase.zk_basedir = / hbase-unsecure# A comma separated list of Zookeeper hosts to connect to, with or without# port specifiers, default is "localhost" tsd.storage.hbase.zk_quorum = manager.bigdata.com:2181

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report