kafka无法更新Java代码中的元数据

时间:2018-04-19 04:55:39

标签: java apache-kafka kafka-producer-api

我正在运行Java Producer代码。但是,我收到以下错误:

from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import ObjectProperty
from kivy.lang.builder import Builder

class Apibar(BoxLayout):
    api_input_bar = ObjectProperty()
    toggle_visibility_button = ObjectProperty()  

    def toggle_visibility(self):
        # self.ids.box.api_input_bar is different of self.api_input_bar
        self.ids.box.api_input_bar.text="your api key"

Builder.load_string('''
<Apibar>:
    BoxLayout:
        id: box
        orientation:"vertical"
        padding: "5dp"
        api_input_bar: api_input
        toggle_visibility_button : toggle_visibility
        BoxLayout:
            orientation: "horizontal"
            size_hint_y: 0.5
            #some more rules for other widgets
            ToggleButton:
                id: toggle_visibility
                size_hint_x: 0.27
                text: "Hide"
                on_press: root.toggle_visibility()
                #some more rules for other widgets
            TextInput:
                id: api_input
    ''')

class MyApp(App):
    def build(self):
        return Apibar()

if __name__ == '__main__':
    MyApp().run()

这里是我的制作人类的片段:

org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.

我在MapR集群上使用kafka 0.9版本。现在,只有一个经纪人在运行。除了上面发布的那个,我没有任何错误。我通过更改一些参数来使用server.properties文件,但似乎没有任何工作。

0 个答案:

没有答案