# Druid extensions

> Add functionality to Druid with default or custom extensions. Default extensions include Kafka and HDFS support; community extensions require extra setup.

[Druid extensions](https://druid.apache.org/docs/latest/configuration/extensions/) are used to provide additional functionality at runtime, e.g. for data formats or different types of deep storage.

## Default extensions

Druid Stacklets use the following extensions by default:

-   `druid-kafka-indexing-service`

-   `druid-datasketches`

-   `prometheus-emitter`

-   `druid-basic-security`

-   `druid-opa-authorizer`

-   `druid-hdfs-storage`


Some extensions are loaded conditionally depending on the DruidCluster configuration:

-   `postgresql-metadata-storage` (when using PostgreSQL as metadata store)

-   `mysql-metadata-storage` (when using MySQL as metadata store)

-   `druid-s3-extensions` (when S3 is used as deep storage)

-   `simple-client-sslcontext` (when TLS is enabled)


## Custom extensions

You can configure Druid to load more extensions by adding them to the `additionalExtensions` list as shown below:

```yaml
spec:
  clusterConfig:
    additionalExtenions:
    - druid-avro-extensions
    - druid-google-extensions
    ...
```

[Core extensions](https://druid.apache.org/docs/latest/configuration/extensions/#core-extensions) are already bundled with Druid but adding community extensions requires [some extra steps](https://druid.apache.org/docs/latest/configuration/extensions/#loading-community-extensions).

Some extensions may require additional configuration which can be added using [configuration and environment overrides](https://docs.stackable.tech/home/stable/druid/usage-guide/overrides/index.md).
