我在我的 zeppelin 演示应用程序中配置了 3 个日志附加程序。其中两个是 cassandra 日志附加器,另一个是 REST 日志附加器。Cassandra 日志附加程序工作正常,我能够在 AWS EC2 主机上看到 cassandra DB 和 zeppelin 中的数据,但 REST 日志附加程序无法发送数据。
我将主机保留为 localhost 并尝试了默认端口和新端口,但似乎没有任何效果。默认端口和新端口均在 AWS 安全设置中打开。所以主机或端口定义没有问题。
日志如下所示。
2017-02-06 23:53:57,240 [pool-33-thread-1] TRACE o.k.k.s.a.r.appender.RestLogAppender - [24510582477967418632] executing POST http://enmonitor.ap-south-1.elasticbeanstalk.com:80/powerdata HTTP/1.1
2017-02-06 23:53:57,240 [nioEventLoopGroup-9-1] TRACE o.k.k.s.t.t.t.netty.KaaTcpEncoder - Returned future [DefaultChannelPromise@2a198e0d(failure: java.nio.channels.ClosedChannelException)] isSuccess [false] isDone [true] isCancelled [false] cause [java.nio.channels.ClosedChannelException] for frame MqttFrame [messageType=KAASYNC, currentState=NONE]
2017-02-06 23:53:57,246 [nioEventLoopGroup-9-1] TRACE o.k.k.s.t.t.t.netty.KaaTcpEncoder - Write operation failed due to: java.nio.channels.ClosedChannelException: null
2017-02-06 23:53:57,319 [pool-33-thread-1] TRACE o.k.k.s.a.r.appender.RestLogAppender - [24510582477967418632] received HTTP/1.1 500 Internal Server Error [Content-Type: text/html; charset=UTF-8, Date: Mon, 06 Feb 2017 18:23:57 GMT, Server: Apache/2.4.25 (Amazon) mod_wsgi/3.5 Python/3.4.3, transfer-encoding: chunked, Connection: keep-alive] response code
2017-02-06 23:53:57,321 [pool-33-thread-1] WARN o.k.k.s.a.r.appender.RestLogAppender - [RestLogAppender] bad response code 500
2017-02-06 23:53:57,328 [nioEventLoopGroup-9-1] TRACE o.k.k.s.t.t.t.netty.KaaTcpEncoder - Write operation failed due to: java.nio.channels.ClosedChannelException: null