sternz99 / emqx_bridge_kafka

EMQ X Bridge to Kafka Broker based on EMQ X Broker v4.0.0.
Apache License 2.0
12 stars 9 forks source link

Unable to run pre hooks for 'compile', command 'compile' in namespace 'neotoma' not found. make: *** [compile] Error 1 #1

Open Linuxlovers opened 4 years ago

Linuxlovers commented 4 years ago

rebar3 compile ===> Verifying dependencies... ===> Failed to update package rebar3_neotoma_plugin from repo hexpm ===> Plugin rebar3_neotoma_plugin not available. It will not be used. ===> Unable to run pre hooks for 'compile', command 'compile' in namespace 'neotoma' not found. make: *** [compile] Error 1

Linuxlovers commented 4 years ago

@sternz99 请问具体的版本 以及使用方法?

[root@master1 emqx]# cat log/erlang.log.1

===== ===== LOGGING STARTED Wed Mar 25 09:38:51 CST 2020

2020-03-25T09:38:54.259844+08:00 [error] You've tried to set kafka.server, but there is no setting with that name. 2020-03-25T09:38:54.259935+08:00 [error] Did you mean one of these? 2020-03-25T09:38:54.288192+08:00 [error] log.level 2020-03-25T09:38:54.288268+08:00 [error] auth.ldap.servers 2020-03-25T09:38:54.288312+08:00 [error] acl_file 2020-03-25T09:38:54.288434+08:00 [error] You've tried to set kafka.port, but there is no setting with that name. 2020-03-25T09:38:54.288473+08:00 [error] Did you mean one of these? 2020-03-25T09:38:54.312718+08:00 [error] coap.port 2020-03-25T09:38:54.312779+08:00 [error] lwm2m.port 2020-03-25T09:38:54.312807+08:00 [error] event.kafka.port 2020-03-25T09:38:54.312960+08:00 [error] You've tried to set kafka.partition, but there is no setting with that name. 2020-03-25T09:38:54.312996+08:00 [error] Did you mean one of these? 2020-03-25T09:38:54.346800+08:00 [error] acl_deny_action 2020-03-25T09:38:54.346860+08:00 [error] auth.jwt.from 2020-03-25T09:38:54.346890+08:00 [error] coap.port 2020-03-25T09:38:54.347053+08:00 [error] You've tried to set kafka.offset, but there is no setting with that name. 2020-03-25T09:38:54.347092+08:00 [error] Did you mean one of these? 2020-03-25T09:38:54.387662+08:00 [error] acl_file 2020-03-25T09:38:54.387759+08:00 [error] log.file 2020-03-25T09:38:54.387789+08:00 [error] acl_nomatch 2020-03-25T09:38:54.406951+08:00 [error] Error generating configuration in phase transform_datatypes 2020-03-25T09:38:54.407029+08:00 [error] Conf file attempted to set unknown variable: kafka.offset 2020-03-25T09:38:54.407062+08:00 [error] Conf file attempted to set unknown variable: kafka.partition 2020-03-25T09:38:54.407087+08:00 [error] Conf file attempted to set unknown variable: kafka.port 2020-03-25T09:38:54.407127+08:00 [error] Conf file attempted to set unknown variable: kafka.server

sternz99 commented 4 years ago

已验证Kafka 2.4.0。请结合您自己环境Kafka服务器地址检查以下配置是否正确:

[ {emqx_bridge_kafka, [{values, [ {bootstrap_broker, {"192.168.91.182", 9092}}, {partition_strategy, strict_round_robin}, {kafka_producer_topic, <<"mqtt_to_kafka">>} ]} ]} ].

Linuxlovers commented 4 years ago

能麻烦您加一下微信或者是QQ吗?我这边想咨询具体的操作 微信vipyooare ,qq 823129275

Linuxlovers commented 4 years ago

我这边的操作是 复制粘贴编译好的插件的lib到编译好的emqx的lib下 配置文件复制粘贴到emqx的etc/plugins/emqx_bridge_kafka.config

[
  {emqx_bridge_kafka, 
    [{values, [
      {bootstrap_broker, {"127.0.0.1", 9092}},
      {partition_strategy, strict_round_robin},
      {kafka_producer_topic, <<"mqtt_to_kafka">>}
    ]}
  ]}
].

运行编译好的emqx start
然后没问发现任何的启动kafka插件的日志信息