emitter http error

HI,
I use the druid.emitter with http,but i get some errors:

2015-07-16T17:56:38,026 INFO [HttpPostEmitter-1-0] com.metamx.http.client.pool.ChannelResourceFactory - Generating: http://192.168.7.169:19999

2015-07-16T17:56:38,069 INFO [HttpPostEmitter-1-0] com.metamx.http.client.pool.ChannelResourceFactory - Generating: http://192.168.7.169:19999

2015-07-16T17:56:38,073 WARN [HttpClient-Netty-Boss-0] org.jboss.netty.channel.SimpleChannelUpstreamHandler - EXCEPTION, please implement org.jboss.netty.handler.codec.http.HttpContentDecompressor.exceptionCaught() for proper handling.

java.net.ConnectException: Connection refused: /192.168.7.169:19999

at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:1.7.0_04]

at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:701) ~[?:1.7.0_04]

at org.jboss.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:152) ~[netty-3.9.5.Final.jar:?]

at org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105) [netty-3.9.5.Final.jar:?]

at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79) [netty-3.9.5.Final.jar:?]

at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) [netty-3.9.5.Final.jar:?]

at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42) [netty-3.9.5.Final.jar:?]

at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.9.5.Final.jar:?]

at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.9.5.Final.jar:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [?:1.7.0_04]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [?:1.7.0_04]

at java.lang.Thread.run(Thread.java:722) [?:1.7.0_04]

2015-07-16T17:56:38,085 WARN [HttpClient-Netty-Boss-0] org.jboss.netty.channel.SimpleChannelUpstreamHandler - EXCEPTION, please implement org.jboss.netty.handler.codec.http.HttpContentDecompressor.exceptionCaught() for proper handling.

java.net.ConnectException: Connection refused: /192.168.7.169:19999

at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:1.7.0_04]

at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:701) ~[?:1.7.0_04]

at org.jboss.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:152) ~[netty-3.9.5.Final.jar:?]

at org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105) [netty-3.9.5.Final.jar:?]

at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79) [netty-3.9.5.Final.jar:?]

at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) [netty-3.9.5.Final.jar:?]

at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42) [netty-3.9.5.Final.jar:?]

at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.9.5.Final.jar:?]

at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.9.5.Final.jar:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [?:1.7.0_04]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [?:1.7.0_04]

at java.lang.Thread.run(Thread.java:722) [?:1.7.0_04]

2015-07-16T17:56:38,089 WARN [HttpPostEmitter-1-0] com.metamx.emitter.core.HttpPostEmitter - Got exception when posting events to urlString[http://192.168.7.169:19999/metrics/]. Resubmitting.

java.util.concurrent.ExecutionException: org.jboss.netty.channel.ChannelException: Faulty channel in resource pool

at com.google.common.util.concurrent.Futures$ImmediateFailedFuture.get(Futures.java:186) ~[guava-16.0.1.jar:?]

at com.metamx.emitter.core.HttpPostEmitter$EmittingRunnable.run(HttpPostEmitter.java:302) [emitter-0.3.1.jar:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_04]

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [?:1.7.0_04]

at java.util.concurrent.FutureTask.run(FutureTask.java:166) [?:1.7.0_04]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [?:1.7.0_04]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [?:1.7.0_04]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [?:1.7.0_04]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [?:1.7.0_04]

at java.lang.Thread.run(Thread.java:722) [?:1.7.0_04]

Caused by: org.jboss.netty.channel.ChannelException: Faulty channel in resource pool

at com.metamx.http.client.NettyHttpClient.go(NettyHttpClient.java:143) ~[http-client-1.0.2.jar:?]

How can I solve the errors?thanks.

my conf:

druid.request.logging.type=emitter

druid.request.logging.feed=druid_requests

druid.monitoring.monitors=[“com.metamx.metrics.JvmMonitor”]

druid.emitter=http

druid.emitter.http.recipientBaseUrl=http://192.168.7.169:19999/metrics/

It appears that host-port 192.168.7.169,19999 is not reachable from the machine where druid process is running.

can you ssh to the machine running druid process and try

curl -vv http://192.168.7.169:19999/

and see if you get “Connection Refused” error?

– Himanshu