OpenTSDB / opentsdb

A scalable, distributed Time Series Database.
http://opentsdb.net
GNU Lesser General Public License v2.1
4.99k stars 1.25k forks source link

Cannot start OpenTSDB as Service. Manually (with /build/tsdb tsd) I can start it #1587

Open VeljkoC opened 5 years ago

VeljkoC commented 5 years ago

I have very very strange issue so any help will be highly appreciated. On one server I can start OpenTSDB manually and as service. On second server I did SCP to copy the opentsdb.config file, opentsdb_restart.sh and opentsdb service script from init.d and from that other server I can start sucessfully opentsdb using the command:

build/tsdb tsd --port=4243 --config=/etc/opentsdb.config

But if I try to start it as service, in the same way like on the first server I am getting this in /var/log/opentsdb

out log:

tsdb.local is included JVMARGS = -DLOG_FILE_PREFIX=/var/log/opentsdb/opentsdb -enableassertions -enablesystemassertions -XX:OnOutOfMemoryError=/opt/opentsdb/tools/opentsdb_restart.sh -Xms4096m -Xmx16196m

err log:

/opt/opentsdb/build/tsdb: line 117: exec: java: not found

How is this possible? I definitely have java because I can run OpenTSDB manually as I said. Only difference is that for some reason I cannot start service on this second server while the same script I can run on first service. Please help for this strange situation, if anyone also had the similar situation! Thanks

wzheart commented 5 years ago

solved?I have the same problem~~