diff --git a/hazelcast/connectors/connectors.mdx b/hazelcast/connectors/connectors.mdx index 747ed1ee..b85e1572 100644 --- a/hazelcast/connectors/connectors.mdx +++ b/hazelcast/connectors/connectors.mdx @@ -75,8 +75,8 @@ The Jet API supports more connectors than SQL. | [`KinesisSources.kinesis`](./messaging-system-connectors/kinesis-connector.mdx) | `hazelcast-jet-kinesis` | streaming | exactly-once | | [`MongoSources.batch`](./database-connectors/mongodb-connector.mdx) | `hazelcast-jet-mongodb` | batch | exactly-once | | [`MongoSources.stream`](./database-connectors/mongodb-connector.mdx) | `hazelcast-jet-mongodb` | streaming | exactly-once | -| [`PulsarSources.pulsarConsumer`](./community-connectors/pulsar-connector.mdx) | `hazelcast-jet-pulsar` | streaming (many consumer per topic to distribute reading) | exactly-once | -| [`PulsarSources.pulsarReader`](./community-connectors/pulsar-connector.mdx) | `hazelcast-jet-pulsar` | streaming (single reader per topic) | exactly-once | +| [`PulsarSources.pulsarConsumer`](./messaging-system-connectors/pulsar-connector.mdx) | `hazelcast-jet-pulsar` | streaming (many consumer per topic to distribute reading) | exactly-once | +| [`PulsarSources.pulsarReader`](./messaging-system-connectors/pulsar-connector.mdx) | `hazelcast-jet-pulsar` | streaming (single reader per topic) | exactly-once | | [`S3Sources.s3`](./file-connectors/legacy-file-connector.mdx) | `hazelcast-jet-s3` | batch | N/A | | [`Sources.cache`](./hazelcast-data-structure-connectors/jcache-connector.mdx), [`Sources.remoteCache`](./hazelcast-data-structure-connectors/jcache-connector.mdx) | `hazelcast` | batch | N/A | | [`Sources.cacheJournal`](./hazelcast-data-structure-connectors/jcache-connector.mdx), [`Sources.remoteCacheJournal`](./hazelcast-data-structure-connectors/jcache-connector.mdx) | `hazelcast` | streaming | exactly-once | @@ -164,7 +164,7 @@ The Jet API supports more connectors than SQL. exactly-once -[`PulsarSources.pulsarSink`](./community-connectors/pulsar-connector.mdx) +[`PulsarSources.pulsarSink`](./messaging-system-connectors/pulsar-connector.mdx) `hazelcast-jet-pulsar` streaming exactly-once diff --git a/hazelcast/connectors/community-connectors/pulsar-connector.mdx b/hazelcast/connectors/messaging-system-connectors/pulsar-connector.mdx similarity index 99% rename from hazelcast/connectors/community-connectors/pulsar-connector.mdx rename to hazelcast/connectors/messaging-system-connectors/pulsar-connector.mdx index 4092935d..589ebf94 100644 --- a/hazelcast/connectors/community-connectors/pulsar-connector.mdx +++ b/hazelcast/connectors/messaging-system-connectors/pulsar-connector.mdx @@ -1,6 +1,6 @@ --- title: "Apache Pulsar Connector" -sidebar_position: 1 +sidebar_position: 5 slug: /integrate/pulsar-connector --- diff --git a/hazelcast/develop-and-build/sql/sql-over-pulsar/mapping-to-pulsar.mdx b/hazelcast/develop-and-build/sql/sql-over-pulsar/mapping-to-pulsar.mdx index d90c41af..2127345f 100644 --- a/hazelcast/develop-and-build/sql/sql-over-pulsar/mapping-to-pulsar.mdx +++ b/hazelcast/develop-and-build/sql/sql-over-pulsar/mapping-to-pulsar.mdx @@ -27,14 +27,15 @@ If [security](../../../operate-and-manage/securing-a-cluster/enable-security.mdx ## Creating a Pulsar Data Connection -Before using Pulsar SQL connector, you must first create a data connection to your Pulsar cluster. It can be done via following code: +Before using Pulsar SQL connector, it's recommended you first create a data connection to your Pulsar cluster. It can be done via following code: ```sql CREATE DATA CONNECTION myPulsar TYPE Pulsar OPTIONS ( 'brokerUrl' = 'pulsar://localhost:6650', - 'httpServiceUrl' = 'http://localhost:8080' + 'httpServiceUrl' = 'http://localhost:8080', + 'enableTransactions' = 'true' ) ``` @@ -43,7 +44,7 @@ OPTIONS ( To create a mapping to a Pulsar topic in SQL, you must use the `CREATE MAPPING` statement to tell the Pulsar connector the following: - The name of the topic -- The data connection name +- The data connection name or type of the connector (Pulsar) ```sql conums CREATE MAPPING my_topic <1> @@ -63,6 +64,26 @@ OPTIONS ( +Alternatively: +```sql conums +CREATE MAPPING my_topic <1> +TYPE Pulsar <2> +OPTIONS ( + 'keyFormat' = 'VARCHAR', + 'valueFormat' = 'VARCHAR', + 'brokerUrl' = 'pulsar://localhost:6650', <3> + 'httpServiceUrl' = 'http://localhost:8080', + 'enableTransactions' = 'true' +); +``` + + + 1. The name of the Pulsar topic. + 2. The `TYPE` specification of this mapping - "Pulsar" in case of Pulsar connector. + 3. Connectivity options, same as in Data Connection. + + + :::note Any key/value pairs in the `OPTIONS()` function that are not recognized by Hazelcast and are prefixed with `pulsar.` are passed directly to the Pulsar consumer/producer (with the `pulsar.` prefix cut off). @@ -76,7 +97,7 @@ When creating a Pulsar mapping, you must tell the Pulsar connector how to serial The Pulsar connector supports serializers for the following formats: - [Primitive](#primitive-messages) -- [Avro (`valueFormat` = `avro`)](#avro-messages) +- [Avro (valueFormat = `avro`)](#avro-messages) - [JSON](#json-messages) (values only) - [Java](#java-messages)