码迷,mamicode.com
首页 > 数据库 > 详细

OpenTSDB http写数据报400 (Received an unsupported chunked)

时间:2019-09-17 17:26:57      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:info   apach   关于   use   cti   方式安装   worker   访问   zip   

错误如下

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)

标签:info   apach   关于   use   cti   方式安装   worker   访问   zip   

原文地址:https://www.cnblogs.com/zhangyy3/p/11535453.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!