OpenTSDB 问题集锦

  • A+
所属分类:OpenTSDB

OpenTSDB 问题多多啊。自从选择了用,问题就没中断过。

2014-11-18 02:36:12,022 ERROR [New I/O worker #1] ConnectionManager: Unexpected exception from downstream for [id: 0x6bbc1ae2, /61.131.3.65:44078 => /66.175.222.232:10000]
java.lang.AssertionError: This Deferred was already called! New result=java.lang.IllegalStateException: id=[0, 1, -63] => name=8854, already mapped to 9547, this=Deferred@1351651247(state=DONE, result=java.lang.IllegalStateException: id=[0, 1, -63] => name=8854, already mapped to 9547, callback=<none>, errback=<none>)
at com.stumbleupon.async.Deferred.callback(Deferred.java:982) ~[suasync-1.4.0.jar:fe17b98]
at net.opentsdb.uid.UniqueId$UniqueIdAllocator$1ErrBack.call(UniqueId.java:384) ~[tsdb-2.1.0.jar:]
at net.opentsdb.uid.UniqueId$UniqueIdAllocator$1ErrBack.call(UniqueId.java:382) ~[tsdb-2.1.0.jar:]
at com.stumbleupon.async.Deferred.doCall(Deferred.java:1278) ~[suasync-1.4.0.jar:fe17b98]
at com.stumbleupon.async.Deferred.addCallbacks(Deferred.java:688) ~[suasync-1.4.0.jar:fe17b98]
at com.stumbleupon.async.Deferred.addErrback(Deferred.java:756) ~[suasync-1.4.0.jar:fe17b98]
at net.opentsdb.uid.UniqueId$UniqueIdAllocator.call(UniqueId.java:406) ~[tsdb-2.1.0.jar:]
at com.stumbleupon.async.Deferred.doCall(Deferred.java:1278) ~[suasync-1.4.0.jar:fe17b98]
at com.stumbleupon.async.Deferred.addCallbacks(Deferred.java:688) ~[suasync-1.4.0.jar:fe17b98]
at com.stumbleupon.async.Deferred.addBoth(Deferred.java:772) ~[suasync-1.4.0.jar:fe17b98]
at net.opentsdb.uid.UniqueId$UniqueIdAllocator.call(UniqueId.java:406) ~[tsdb-2.1.0.jar:]
at net.opentsdb.uid.UniqueId$UniqueIdAllocator.tryAllocate(UniqueId.java:353) ~[tsdb-2.1.0.jar:]
at net.opentsdb.uid.UniqueId.getOrCreateId(UniqueId.java:594) ~[tsdb-2.1.0.jar:]
at net.opentsdb.core.Tags.resolveAllInternal(Tags.java:461) ~[tsdb-2.1.0.jar:]
at net.opentsdb.core.Tags.resolveOrCreateAll(Tags.java:448) ~[tsdb-2.1.0.jar:]
at net.opentsdb.core.IncomingDataPoints.rowKeyTemplate(IncomingDataPoints.java:135) ~[tsdb-2.1.0.jar:]
at net.opentsdb.core.TSDB.addPointInternal(TSDB.java:664) ~[tsdb-2.1.0.jar:]
at net.opentsdb.core.TSDB.addPoint(TSDB.java:644) ~[tsdb-2.1.0.jar:]
at net.opentsdb.tsd.PutDataPointRpc.importDataPoint(PutDataPointRpc.java:253) ~[tsdb-2.1.0.jar:]
at net.opentsdb.tsd.PutDataPointRpc.execute(PutDataPointRpc.java:62) ~[tsdb-2.1.0.jar:]
at net.opentsdb.tsd.RpcHandler.handleTelnetRpc(RpcHandler.java:206) ~[tsdb-2.1.0.jar:]
at net.opentsdb.tsd.RpcHandler.messageReceived(RpcHandler.java:176) ~[tsdb-2.1.0.jar:]
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:310) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.SimpleChannelHandler.messageReceived(SimpleChannelHandler.java:142) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler.handleUpstream(IdleStateAwareChannelHandler.java:36) [netty-3.9.4.Final.jar:na]
at net.opentsdb.tsd.ConnectionManager.handleUpstream(ConnectionManager.java:90) [tsdb-2.1.0.jar:]
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.handler.timeout.IdleStateHandler.messageReceived(IdleStateHandler.java:294) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.9.4.Final.jar:na]
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.9.4.Final.jar:na]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_38]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_38]
at java.lang.Thread.run(Thread.java:662) [na:1.6.0_38]

这种问题下,数据会乱套了,张冠李戴的严重。

具体参见:https://github.com/OpenTSDB/opentsdb/issues/416

中文乱码问题:

OpenTSDB源代码写死了字符集,为:ISO-8859-1

改源码,将ISO-8859-1改为UTF-8。 在源码目录下:

图表显示中文乱码问题:

这个就要修改src/graph/Plot.java 这个文件,更改gnuplot属性即可,这个是设置绘图字符集:

要用什么字符,自定义。

weinxin
微信公众号
扫一扫关注运维生存时间公众号,获取最新技术文章~
默北

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:2   其中:访客  2   博主  0

    • waydee 9

      put zbx.system.cpu.util__system_ 1433393046 0.1511 host=10.19.219.26 sysname="Discovered" itemname="CPU系统时间百分比"
      put: illegal argument: Invalid tag value (""CPU系统时间百分比""): illegal character: "

      opentsdb怎么put中文字符哈?