OpenTSDB http写数据报400 (Received an unsupported chunked)
Posted cococooder
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了OpenTSDB http写数据报400 (Received an unsupported chunked)相关的知识,希望对你有一定的参考价值。
错误如下
2019-09-17 16:42:21,547 ERROR [OpenTSDB I/O Worker #5] RpcHandler: [id: 0x6fd975b6, /127.0.0.1:52204 => /127.0.0.1:4242] Received an unsupported chunked request: DefaultHttpRequest(chunked: true) POST /api/put HTTP/1.1 Content-Length: 10811 Content-Type: application/json; charset=UTF-8 Host: localhost:4242 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.5.10 (Java/1.8.0_211) Accept-Encoding: gzip,deflate 2019-09-17 16:42:21,547 WARN [OpenTSDB I/O Worker #5] HttpQuery: [id: 0x6fd975b6, /127.0.0.1:52204 => /127.0.0.1:4242] Bad Request on /api/put: Chunked request not supported. 2019-09-17 16:42:21,547 INFO [OpenTSDB I/O Worker #5] HttpQuery: [id: 0x6fd975b6, /127.0.0.1:52204 => /127.0.0.1:4242] HTTP /api/put done in 0ms
解决办法
在opentsdb.conf 这个配置文件中加上
tsd.http.request.max_chunk=4096000
tsd.http.request.enable_chunked=true
关于文件位置,不同的方式安装,位置不同。我的在
/etc/opentsdb/opentsdb.conf
重新起动服务
访问/api/config能看到对应的改变
以上是关于OpenTSDB http写数据报400 (Received an unsupported chunked)的主要内容,如果未能解决你的问题,请参考以下文章