完整的报错如下:
[mw_shl_code=python,true]2016-08-31 05:52:18,834 - Could not determine component version because of the parameters is empty. stack_name: ADH, component_name: None
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/ADH/3.1/services/KAFKA/package/scripts/kafka_broker.py", line 109, in <module>
KafkaBroker().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/ADH/3.1/services/KAFKA/package/scripts/kafka_broker.py", line 77, in start
self.configure(env, upgrade_type=upgrade_type)
File "/var/lib/ambari-agent/cache/stacks/ADH/3.1/services/KAFKA/package/scripts/kafka_broker.py", line 46, in configure
kafka(upgrade_type=upgrade_type)
File "/var/lib/ambari-agent/cache/stacks/ADH/3.1/services/KAFKA/package/scripts/kafka.py", line 53, in kafka
listeners = kafka_server_config['listeners'].replace("localhost", params.hostname)
KeyError: 'listeners'[/mw_shl_code]
我修改了下kafka.py
#listeners = kafka_server_config['listeners'].replace("localhost", params.hostname) 原来的配置被我注释掉了
listeners = os.popen('hostname').read().rstrip()
然后启动kafka,启动时是启动成功了,但马上就死掉了。
报错日志如下:
[mw_shl_code=applescript,true][2016-08-31 05:51:18,382] FATAL (kafka.Kafka$)
java.lang.IllegalArgumentException: Error creating broker listeners from 'hadoop1.com': Unable to parse hadoop1.com to a broker endpoint
at kafka.server.KafkaConfig.validateUniquePortAndProtocol(KafkaConfig.scala:954)
at kafka.server.KafkaConfig.getListeners(KafkaConfig.scala:973)
at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:926)
at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:743)
at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:740)
at kafka.server.KafkaServerStartable$.fromProps(KafkaServerStartable.scala:28)
at kafka.Kafka$.main(Kafka.scala:58)
at kafka.Kafka.main(Kafka.scala)
[/mw_shl_code]
google到的链接:ambari bug
虽然找到了问题,但是看不懂啊,要怎么修复这个BUG呢?
谁能教一下如何阅读使用链接的讯息,及怎么修复BUG?谢谢!!!
|
|