Slackbot
09/05/2023, 11:44 PMDavid K
09/06/2023, 3:42 PMEric Marnadi
09/06/2023, 4:33 PMFile /local_disk0/.ephemeral_nfs/envs/pythonEnv-d62a23e6-2ac4-473a-9b47-5944c07a4142/lib/python3.10/site-packages/pulsar/__init__.py:743, in Client.create_producer(self, topic, producer_name, schema, initial_sequence_id, send_timeout_millis, compression_type, max_pending_messages, max_pending_messages_across_partitions, block_if_queue_full, batching_enabled, batching_max_messages, batching_max_allowed_size_in_bytes, batching_max_publish_delay_ms, chunking_enabled, message_routing_mode, lazy_start_partitioned_producers, properties, batching_type, encryption_key, crypto_key_reader, access_mode)
740 raise ValueError("Batching and chunking of messages can't be enabled together.")
742 p = Producer()
--> 743 p._producer = self._client.create_producer(topic, conf)
744 p._schema = schema
745 p._client = self._client
BrokerMetadataError: Pulsar error: BrokerMetadataError
Here is the relevant Notebook cell:Eric Marnadi
09/06/2023, 4:34 PMAlso, if you have secured the cluster, be sure to grant the Databricks notebook user permissions to create topics.Just wondering, do you know how I would do this?
David K
09/06/2023, 4:38 PMpublic/default/my-topic, and from what I can see, you are using just my-topic which will lead to a metadata error because Pulsar cannot find a topic with that nameEric Marnadi
09/06/2023, 4:39 PMcreate_producer would create the topic if it didn't existDavid K
09/06/2023, 4:41 PMDavid K
09/06/2023, 4:42 PMDavid K
09/06/2023, 4:43 PMpublic/default namespace? ./bin/pulsar-admin topics list public/default Does my-topic show up in the list?Eric Marnadi
09/06/2023, 5:19 PMEric Marnadi
09/06/2023, 5:19 PM