Pulsar:订阅persistent://public/default/test 时检查/获取分区元数据时出错

乔丹·吉拉德

我目前有一个docker-compose.yml文件,可以提供许多服务。这些服务之一是 pulsar,另一个是通过 websocket 连接的网络服务器。当我启动这些服务时,websocket 容器不起作用。它的日志说:Error Checking/Getting Partition Metadata while Subscribing on persistent://public/default/test我没有使用分区,所以我很难弄清楚这一点。

到目前为止,我已经做了很多谷歌搜索,发现这个问题没有答案,但看起来与我的问题相似。

这是我的docker-compose.yml文件:

version: '3.2'

services:
  pulsar:
    image: apachepulsar/pulsar:latest
    command: bin/pulsar standalone
    ports:
      - "6650"
      - "8080"

  ios_pos_ws_input:
    depends_on:
      - pulsar
    environment:
      - PULSAR_HOST=pulsar
    image: dock.gastrofix.com/bridge/ios_pos_ws_input:${VERSION:-latest}
    restart: always
    ports:
      - "8765"
    command: python3 -m wait_for_pulsar "python3 -m inputs.ios_pos.web_sockets.ws_server"

  ios_pos_ws_sink:
    depends_on:
      - pulsar
    environment:
      - PULSAR_HOST=pulsar
    image: dock.gastrofix.com/bridge/ios_pos_ws_sink:${VERSION:-latest}
    restart: always
    ports:
      - "8765"
    command: python3 -m wait_for_pulsar "python3 -m sinks.ios_pos_ws"

volumes:
  pulsar:

当我检查两者的日志时ios_pos_ws_inputios_pos_ws_sink我看到了:

2019-05-15 14:12:52.809 INFO  ClientConnection:300 | [172.28.0.5:53624 -> 172.28.0.2:6650] Connected to broker
2019-05-15 14:12:52.920 ERROR ClientConnection:726 | [172.28.0.5:53624 -> 172.28.0.2:6650] Failed partition-metadata lookup req_id: 1 error: 1
2019-05-15 14:12:52.920 ERROR ClientImpl:394 | Error Checking/Getting Partition Metadata while Subscribing on persistent://public/default/test -- 5
2019-05-15 14:12:52.921 INFO  ClientImpl:492 | Closing Pulsar client
2019-05-15 14:12:54.922 INFO  Client:88 | Subscribing on Topic :test
2019-05-15 14:12:54.923 INFO  ConnectionPool:72 | Created connection for pulsar://pulsar:6650

我真的很想弄清楚这一点。我提前感谢任何帮助!

马泰奥·梅利

public/default当客户端尝试使用命名空间时,它看起来似乎尚未创建。

我已经尝试使用这个简单的 compose 文件来放置更大的延迟,以确保在客户端启动时独立服务完全准备就绪:

version: '3.2'

services:
  pulsar:
    image: apachepulsar/pulsar:latest
    command: bin/pulsar standalone
    ports:
      - "6650"
      - "8080"

  client:
    depends_on:
      - pulsar
    image: apachepulsar/pulsar:latest
    command: python -c "import pulsar, time; time.sleep(30); c = pulsar.Client('pulsar://pulsar:6650'); p = c.create_producer('my-topic')"

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

获取数据时出错

来自分类Dev

尝试在ngOnInit中订阅函数时出错

来自分类Dev

订阅 GraphQL 服务器时出错

来自分类Dev

Microsoft Graph - 订阅日历通知时出错

来自分类Dev

在Pulsar中拥有多个订阅的费用是多少?

来自分类Dev

从MongoDB获取数据时出错

来自分类Dev

从NavigationContext获取数据时出错

来自分类Dev

从网站获取数据时出错

来自分类Dev

从MongoDB获取数据时出错

来自分类Dev

触发事件时获取ID属性(订阅)

来自分类Dev

创建分区时出错

来自分类Dev

生成元数据时出错

来自分类Dev

从SSRS中的电子邮件订阅发送邮件时出错

来自分类Dev

Proton Orion订阅-解析通知XML时出错

来自分类Dev

在 Wordpress 中创建新用户(订阅者)时出错

来自分类Dev

从发布/订阅流到大查询python时出错

来自分类Dev

订阅 MSGraph beta 端点上的组资源时出错

来自分类Dev

`RxJS` 在执行请求时在订阅上抛出错误

来自分类Dev

订阅 Angular 2 中可观察的时间时出错

来自分类Dev

为什么在运行订阅表单时 Paypal 会出错?

来自分类Dev

如何在订阅将数据引入 angular2 的服务方法时获取部分请求数据?

来自分类Dev

比较从表中获取的数据时出错

来自分类Dev

从reactjs中的API获取数据时出错

来自分类Dev

从文件获取和读取数据时出错

来自分类Dev

在.NET中获取MySQL数据时出错

来自分类Dev

从JSON对象获取数据时出错

来自分类Dev

在 PHP 中从 Json 获取数据时出错

来自分类Dev

尝试从 json angular 获取数据时出错

来自分类Dev

使用ajax获取json数据时出错