Project: Druid (App Definition and Development / Database)
File: extensions.md

id: extensions title: "Extensions" <!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more contributor license agreements. See the NOTICE file ~ distributed with this work for additional information ~ regarding copyright ownership. The ASF licenses this file ~ to you under the Apache License, Version 2.0 (the ~ "License"); you may not use this file except in compliance ~ with the License. You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, ~ software distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the License for the ~ specific language governing permissions and limitations ~ under the License. --> Druid implements an extension system that allows for adding functionality at runtime. Extensions are commonly used to add support for deep storages (like HDFS and S3), metadata stores (like MySQL and PostgreSQL), new aggregators, new input formats, and so on. Production clusters will generally use at least two extensions; one for deep storage and one for a metadata store. Many clusters will also use additional extensions. Core extensions are maintained by Druid committers. |Name|Description|Docs| |-|--|-| |druid-avro-extensions|Support for data in Apache Avro data format.|| |druid-azure-extensions|Microsoft Azure deep storage.|| |druid-basic-security|Support for Basic HTTP authentication and role-based access control.|| |druid-bloom-filter|Support for providing Bloom filters in druid queries.|| |druid-datasketches|Support for approximate counts and set operations with .|| |druid-google-extensions|Google Cloud Storage deep storage.|| |druid-hdfs-storage|HDFS deep storage.|| |druid-histogram|Approximate histograms and quantiles aggregator. Deprecated, please use the from the `druid-datasketches` extension instead.|| |druid-kafka-extraction-namespace|Apache Kafka-based namespaced lookup. Requires namespace lookup extension.|| |druid-kafka-indexing-service|Supervised exactly-once Apache Kafka ingestion for the indexing service.|| |druid-kinesis-indexing-service|Supervised exactly-once Kinesis ingestion for the indexing service.|| |druid-kerberos|Kerberos authentication for druid processes.|| |druid-lookups-cached-global|A module for providing a jvm-global eager caching for lookups. It provides JDBC and URI implementations for fetching lookup data.|| |druid-lookups-cached-single| Per lookup caching module to support the use cases where a lookup need to be isolated from the global pool of lookups || |druid-multi-stage-query| Support for the multi-stage query architecture for Apache Druid and the multi-stage query task engine.|| |druid-orc-extensions|Support for data in Apache ORC data format.|| |druid-parquet-extensions|Support for data in Apache Parquet data format. Requires druid-avro-extensions to be loaded.|| |druid-protobuf-extensions| Support for data in Protobuf data format.|| |druid-ranger-security|Support for access control through Apache Ranger.|| |druid-s3-extensions|Interfacing with data in AWS S3, and using S3 as deep storage.|| |druid-ec2-extensions|Interfacing with AWS EC2 for autoscaling middle managers|UNDOCUMENTED| |druid-aws-rds-extensions|Support for AWS token based access to AWS RDS DB Cluster.|| |druid-stats|Statistics related module including variance and standard deviation.|| |mysql-metadata-storage|MySQL metadata store.|| |postgresql-metadata-storage|PostgreSQL metadata store.|| |simple-client-sslcontext|Simple SSLContext provider module to be used by Druid's internal HttpClient when talking to other Druid processes over HTTPS.|| |druid-pac4j|OpenID Connect authentication for druid processes.|| |druid-kubernetes-extensions|Druid cluster deployment on Kubernetes without Zookeeper.|| :::info Community extensions are not maintained by Druid committers, although we accept patches from community members using these extensions. They may not have been as extensively tested as the core extensions. ::: A number of community members have contributed their own extensions to Druid that are not packaged with the default Druid

If you'd like to take on maintenance for a community extension, please post on to let us know! All of these community extensions can be downloaded using while specifying a `-c` coordinate option to pull `org.apache.druid.extensions.contrib:{EXTENSIONNAME}:{DRUIDVERSION}`. |Name|Description|Docs| |-|--|-| |aliyun-oss-extensions|Aliyun OSS deep storage || |ambari-metrics-emitter|Ambari Metrics Emitter || |druid-cassandra-storage|Apache Cassandra deep storage.|| |druid-cloudfiles-extensions|Rackspace Cloudfiles deep storage and firehose.|| |druid-compressed-bigdecimal|Compressed Big Decimal Type | | |druid-ddsketch|Support for DDSketch approximate quantiles based on | | |druid-deltalake-extensions|Support for ingesting Delta Lake tables.|| |druid-distinctcount|DistinctCount aggregator|| |druid-iceberg-extensions|Support for ingesting Iceberg tables.|| |druid-redis-cache|A cache implementation for Druid based on Redis.|| |druid-time-min-max|Min/Max aggregator for timestamp.|| |sqlserver-metadata-storage|Microsoft SQLServer deep storage.|| |graphite-emitter|Graphite metrics emitter|| |statsd-emitter|StatsD metrics emitter|| |kafka-emitter|Kafka metrics emitter|| |druid-thrift-extensions|Support thrift ingestion || |druid-opentsdb-emitter|OpenTSDB metrics emitter || |materialized-view-selection, materialized-view-maintenance|Materialized View|| |druid-moving-average-query|Support for and other Aggregate in Druid queries.|| |druid-influxdb-emitter|InfluxDB metrics emitter|| |druid-momentsketch|Support for approximate quantile queries using the library|| |druid-tdigestsketch|Support for approximate sketch aggregators based on || |gce-extensions|GCE Extensions|| |prometheus-emitter|Exposes for Prometheus server collection (https://prometheus.io/)|| |druid-kubernetes-overlord-extensions|Support for launching tasks in k8s without Middle Managers|| |druid-spectator-histogram|Support for efficient approximate percentile queries|| |druid-rabbit-indexing-service|Support for creating and managing indexing tasks|| Please post on if you'd like an extension to be promoted to core. If we see a community extension actively supported by the community, we can promote it to core based on community feedback. For information how to create your own extension, please see . Apache Druid bundles all out of the box. See the for your options. You can load bundled extensions by adding their names to your common.runtime.properties `druid.extensions.loadList` property. For example, to load the postgresql-metadata-storage and druid-hdfs-storage extensions, use the configuration: ```properties druid.extensions.loadList=["postgresql-metadata-storage", "druid-hdfs-storage"] ``` These extensions are located in the `extensions` directory of the distribution. :::info Druid bundles two sets of configurations: one for the and one for a . Make sure you are updating the correct `common.runtime.properties` for your setup. ::: :::info Because of licensing, the mysql-metadata-storage extension does not include the required MySQL JDBC driver. For instructions on how to install this library, see the . ::: You can also load community and third-party extensions not already bundled with Druid. To do this, first download the extension and then install it into your `extensions` directory. You can download extensions from their distributors directly, or if they are available from Maven, the included can download them for you. To use pull-deps, specify the full Maven coordinate of the extension in the form `groupId:artifactId:version`. For example, for the (hypothetical) extension com.example:druid-example-extension:1.0.0, run: ```shell java \ -cp "lib/*" \ -Ddruid.extensions.directory="extensions" \ -Ddruid.extensions.hadoopDependenciesDir="hadoop-dependencies" \ org.apache.druid.cli.Main tools pull-deps \ --no-default-hadoop \ -c "com.example:druid-example-extension:1.0.0" ``` You only have to install the extension once. Then, add `"druid-example-extension"` to `druid.extensions.loadList` in common.runtime.properties to instruct Druid to load the extension. :::info Please make sure all the Extensions related configuration properties listed are set correctly. ::: :::info The Maven `groupId` for almost every is `org.apache.druid.extensions.contrib`. The `artifactId` is the name of the extension, and the version is the latest Druid stable version. ::: If you add your extension jar to the classpath at runtime, Druid will also load it into the system. This mechanism is relatively easy to reason about, but it also means that you have to ensure that all dependency jars on the classpath are compatible. That is, Druid makes no provisions while using this method to maintain class loader isolation so you must make sure that the jars on your classpath are mutually compatible.