Apache Druid: a high performance real-time analytics database.
Go to file
zachjsh 8cf1e83543
Add paramter to loadstatus API to compute underdeplication against cluster view (#11056)
* Add paramter to loadstatus API to compute underdeplication against cluster view

This change adds a query parameter `computeUsingClusterView` to loadstatus apis
that if specified have the coordinator compute undereplication for segments based
on the number of services available within cluster that the segment can be replicated
on, instead of the configured replication count configured in load rule. A default
load rule is created in all clusters that specified that all segments should be
replicated 2 times. As replicas are forced to be on separate nodes in the cluster,
this causes the loadstatus api to report that there are under-replicated segments
when there is only 1 data server in the cluster. In this case, calling loadstatus
api without this new query parameter will always result in a response indicating
under-replication of segments

* * fix exception mapper

* * Address review comments

* * update external API docs

* Apply suggestions from code review

Co-authored-by: Charles Smith <38529548+techdocsmith@users.noreply.github.com>

* * update more external docs

* * update javadoc

* Apply suggestions from code review

Co-authored-by: Charles Smith <38529548+techdocsmith@users.noreply.github.com>

Co-authored-by: Charles Smith <38529548+techdocsmith@users.noreply.github.com>
2021-04-05 00:02:43 -04:00
.github Add instructions for updating licenses (#10894) 2021-03-03 00:57:09 -08:00
.idea IntelliJ inspection and checkstyle rule for "Collection.EMPTY_* field accesses replaceable with Collections.empty*()" (#9690) 2020-06-18 09:47:07 -07:00
benchmarks vectorize 'auto' long decoding (#11004) 2021-03-26 18:39:13 -07:00
cloud Fix kinesis ingestion bugs (#10761) 2021-02-05 02:49:58 -08:00
codestyle Add Calcite Avatica protobuf handler (#10543) 2021-03-31 12:46:25 -07:00
core Allow list for JDBC connection properties to address CVE-2021-26919 (#11047) 2021-04-01 17:30:47 -07:00
dev Add instructions for updating licenses (#10894) 2021-03-03 00:57:09 -08:00
distribution Open Zookeeper and Peon ports. (#11027) 2021-03-26 03:57:44 -07:00
docs Add paramter to loadstatus API to compute underdeplication against cluster view (#11056) 2021-04-05 00:02:43 -04:00
examples First refactor of compaction (#10935) 2021-03-24 11:41:44 -07:00
extendedset Bump dev version to 0.22.0-SNAPSHOT (#10759) 2021-01-15 13:16:23 -08:00
extensions-contrib request logs through kafka emitter (#11036) 2021-04-01 11:31:32 +05:30
extensions-core Allow list for JDBC connection properties to address CVE-2021-26919 (#11047) 2021-04-01 17:30:47 -07:00
hll Bump dev version to 0.22.0-SNAPSHOT (#10759) 2021-01-15 13:16:23 -08:00
hooks Add git pre-commit hook to source control (#9554) 2020-06-05 11:19:42 -10:00
indexing-hadoop Fix a resource leak in JobHelper (#10913) 2021-03-19 17:02:31 -07:00
indexing-service Add an option for ingestion task to drop (mark unused) all existing segments that are contained by interval in the ingestionSpec (#11025) 2021-04-01 12:29:36 -07:00
integration-tests Add an option for ingestion task to drop (mark unused) all existing segments that are contained by interval in the ingestionSpec (#11025) 2021-04-01 12:29:36 -07:00
licenses Web console: Improve the handling of extreme data (funky datasources, longs) (#10641) 2020-12-08 09:25:14 -08:00
processing vectorize 'auto' long decoding (#11004) 2021-03-26 18:39:13 -07:00
publications De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
server Add paramter to loadstatus API to compute underdeplication against cluster view (#11056) 2021-04-05 00:02:43 -04:00
services Add Calcite Avatica protobuf handler (#10543) 2021-03-31 12:46:25 -07:00
sql fix lookup nullable (#11060) 2021-04-02 21:56:42 -07:00
web-console Add missing config (#11020) 2021-03-26 04:45:53 -07:00
website Allow list for JDBC connection properties to address CVE-2021-26919 (#11047) 2021-04-01 17:30:47 -07:00
.asf.yaml Add .asf.yaml. (#9083) 2019-12-20 16:45:38 -08:00
.backportrc.json Add 0.18.0 to .backportrc.json to facilitate backport. (#9661) 2020-04-11 13:49:04 -07:00
.codecov.yml Use Codecov (#8388) 2019-08-28 08:49:30 -07:00
.dockerignore Add docker container for druid (#6896) 2019-02-08 12:12:28 +00:00
.gitignore Web console basic end-to-end-test (#9595) 2020-04-09 12:38:09 -07:00
.lgtm.yml Suppress LGTM warnings about stack trace exposure (#9631) 2020-04-09 17:31:03 -07:00
.travis.yml Remove flaky arm64 test job (#10953) 2021-03-08 14:09:33 -08:00
CONTRIBUTING.md Fix numbered list formatting in markdown. (#9664) 2020-04-21 20:18:12 -07:00
LABELS Add plain text README.txt, use relative link from README.md to build.md (#7611) 2019-05-09 21:29:26 -07:00
LICENSE support Aliyun OSS service as deep storage (#9898) 2020-07-01 22:20:53 -07:00
NOTICE license.yaml fixes for code introduced related to AWS RDS token based password provider in PR #9518 (#10885) 2021-03-10 12:59:25 -08:00
README.md Update badge for travis in README.md (#10717) 2021-01-07 18:39:58 -08:00
README.template De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
licenses.yaml license.yaml fixes for code introduced related to AWS RDS token based password provider in PR #9518 (#10885) 2021-03-10 12:59:25 -08:00
owasp-dependency-check-suppressions.xml Suppress CVEs for Solr and org.codehaus.jackson (#11030) 2021-03-24 16:44:05 -07:00
pom.xml bump to latest of same version node and npm versions, bump frontend-maven-plugin (#11057) 2021-03-31 16:42:18 -07:00
setup-hooks.sh Add git pre-commit hook to source control (#9554) 2020-06-05 11:19:42 -10:00
upload.sh Adding licenses and enable apache-rat-plugin. (#6215) 2018-09-18 08:39:26 -07:00

README.md

Slack Build Status Language grade: Java Coverage Status Docker Helm


Website | Documentation | Developer Mailing List | User Mailing List | Slack | Twitter | Download


Apache Druid

Druid is a high performance real-time analytics database. Druid's main value add is to reduce time to insight and action.

Druid is designed for workflows where fast queries and ingest really matter. Druid excels at powering UIs, running operational (ad-hoc) queries, or handling high concurrency. Consider Druid as an open source alternative to data warehouses for a variety of use cases.

Getting started

You can get started with Druid with our local or Docker quickstart.

Druid provides a rich set of APIs (via HTTP and JDBC) for loading, managing, and querying your data. You can also interact with Druid via the built-in console (shown below).

Load data

data loader Kafka

Load streaming and batch data using a point-and-click wizard to guide you through ingestion setup. Monitor one off tasks and ingestion supervisors.

Manage the cluster

management

Manage your cluster with ease. Get a view of your datasources, segments, ingestion tasks, and services from one convenient location. All powered by SQL systems tables, allowing you to see the underlying query for each view.

Issue queries

query view combo

Use the built-in query workbench to prototype DruidSQL and native queries or connect one of the many tools that help you make the most out of Druid.

Documentation

You can find the documentation for the latest Druid release on the project website.

If you would like to contribute documentation, please do so under /docs in this repository and submit a pull request.

Community

Community support is available on the druid-user mailing list, which is hosted at Google Groups.

Development discussions occur on dev@druid.apache.org, which you can subscribe to by emailing dev-subscribe@druid.apache.org.

Chat with Druid committers and users in real-time on the #druid channel in the Apache Slack team. Please use this invitation link to join the ASF Slack, and once joined, go into the #druid channel.

Building from source

Please note that JDK 8 is required to build Druid.

For instructions on building Druid from source, see docs/development/build.md

Contributing

Please follow the community guidelines for contributing.

For instructions on setting up IntelliJ dev/intellij-setup.md

License

Apache License, Version 2.0