原文:lua-resty-kafka erro xxxx could not be resolved (3: Host not found)

问题:使用 lua resty kafka 向 kafka 发送数据失败,报错如下: 配置信息: lua resty kafka 配置 slave 为远程 kafka 集群中的一台机器的 hostname 查看 kafka 配置文件 usr local kafka . . . . config server.properties 产生问题的原因 瞎猜 : nginx 按照 broker list ...

2017-08-16 11:45 0 1339 推荐指数:

查看详情

lua-resty-kafka配置文档

参考网址:https://github.com/doujiang24/lua-resty-kafka 一、例子 content_by_lua ' -- 引入lua所有api local cjson = require "cjson ...

Mon Sep 02 22:20:00 CST 2019 0 402
lua resty template && openresty 使用

1. 安装 luarocks install lua-resty-template 2. 使用 配置模板页面位置 有多种方式: a. 直接使用root 目录 代码 ...

Wed Apr 05 05:41:00 CST 2017 0 2739
lua启用lua-resty-core

lua-resty-core 是把 lua-nginx-module 已有的部分 API,使用 FFI 的模式重新实现了一遍。 使用FFI实现的代码更为简洁易懂,而且因为可以被JIT追踪和优化,性能更高。 启动lua-resty-core的方式也很简单,只需要在 init_by_lua 阶段 ...

Tue Apr 28 04:48:00 CST 2020 0 1262
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM