pulsar-resources-operator icon indicating copy to clipboard operation
pulsar-resources-operator copied to clipboard

PulsarSource does not publish in the correct tenant/namespace

Open brunocascio opened this issue 1 year ago • 2 comments

Hello folks,

I'm using PulsarSource with RabbitMQ integration everything works ok, but I've noticed seems it's not publishing in the correct tenant/namespace. Instead it is publishing on public/default/<topicName>.

Here's my code:

apiVersion: resource.streamnative.io/v1alpha1
kind: PulsarSource
metadata:
  name: rabbitmq-source
spec:
  className: org.apache.pulsar.io.rabbitmq.RabbitMQSource
  connectionRef:
    name: pulsar-connection
  archive:
    url: https://archive.apache.org/dist/pulsar/pulsar-3.3.0/connectors/pulsar-io-rabbitmq-3.3.0.nar
  configs:
    host: rabbitmq.example.com
    port: "5672"
    virtualHost: myvhost
    queueName: myqueue
    username: myuser
    connectionName: pulsar-connection
    password: mypass
    passive: 'true'
  lifecyclePolicy: CleanUpAfterDeletion
  name: rabbitmq-source
  tenant: mytenant
  namespace: myns
  topicName: mytopic
  parallelism: 1
  processingGuarantees: ATLEAST_ONCE

brunocascio avatar Aug 02 '24 16:08 brunocascio

@freeznet Rui, could you help take a look this?

ericsyh avatar Aug 09 '24 02:08 ericsyh

Could you pls try replacing with topicName: persistent://mytenant/myns/mytopic instead of topicName: mytopic in your PulsarSource yaml.

yash2 avatar Nov 13 '24 23:11 yash2