<a id="map-r-d-b-sink-connector-examples"></a>

# Example configurations

## Property-based example

This configuration is used typically along with [standalone workers](/platform/current/connect/concepts.html#standalone-workers).

```bash
 name=MapRDBSinkConnector1
 connector.class=io.confluent.connect.mapr.db.MapRDBSinkConnector
 tasks.max=1
 mapr.table.map.<topic>=<table-path>
```

## REST-based example

This configuration is used typically along with [distributed workers](/platform/current/connect/concepts.html#distributed-workers).
Write the following json to connector.json, configure all of the required values, and use the command below to
post the configuration to one the distributed connect worker(s). Check here for more information about the
Kafka Connect [REST API](/platform/current/connect/references/restapi.html)

**Connect Distributed REST example:**

```json
 {
   "config" : {
     "name" : "MapRDBSinkConnector1",
     "connector.class" : "io.confluent.connect.mapr.db.MapRDBSinkConnector",
     "tasks.max" : "1",
     "mapr.table.map.<topic>" : "<table-path>"
   }
 }
```

Use curl to post the configuration to one of the Kafka Connect Workers. Change http://localhost:8083/ the endpoint of
one of your Kafka Connect worker(s).

**Create a new connector:**

```bash
curl -s -X POST -H 'Content-Type: application/json' --data @connector.json http://localhost:8083/connectors
```

**Update an existing connector:**

```bash
curl -s -X PUT -H 'Content-Type: application/json' --data @connector.json http://localhost:8083/connectors/MapRDBSinkConnector1/config
```
