Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions hazelcast/connectors/connectors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -164,7 +164,7 @@ The Jet API supports more connectors than SQL.
<td>exactly-once</td>
</tr>
<tr>
<td>[`PulsarSources.pulsarSink`](./community-connectors/pulsar-connector.mdx)</td>
<td>[`PulsarSources.pulsarSink`](./messaging-system-connectors/pulsar-connector.mdx)</td>
<td>`hazelcast-jet-pulsar`</td>
<td>streaming</td>
<td>exactly-once</td>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Apache Pulsar Connector"
sidebar_position: 1
sidebar_position: 5
slug: /integrate/pulsar-connector
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
```

Expand All @@ -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>
Expand All @@ -63,6 +64,26 @@ OPTIONS (

</CodeCallouts>

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'
);
```
<CodeCallouts>

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.

</CodeCallouts>

:::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).
Expand All @@ -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)

Expand Down
Loading