Apache Druid: a high performance real-time analytics database.
Go to file
Abhishek Radhakrishnan b9ba286423
Fix task bootstrapping & simplify segment load/drop flows (#16475)
* Fix task bootstrap locations.

* Remove dependency of SegmentCacheManager from SegmentLoadDropHandler.

- The load drop handler code talks to the local cache manager via
SegmentManager.

* Clean up unused imports and stuff.

* Test fixes.

* Intellij inspections and test bind.

* Clean up dependencies some more

* Extract test load spec and factory to its own class.

* Cleanup test util

* Pull SegmentForTesting out to TestSegmentUtils.

* Fix up.

* Minor changes to infoDir

* Replace server announcer mock and verify that.

* Add tests.

* Update javadocs.

* Address review comments.

* Separate methods for download and bootstrap load

* Clean up return types and exception handling.

* No callback for loadSegment().

* Minor cleanup

* Pull out the test helpers into its own static class so it can have better state control.

* LocalCacheManager stuff

* Fix build.

* Fix build.

* Address some CI warnings.

* Minor updates to javadocs and test code.

* Address some CodeQL test warnings and checkstyle fix.

* Pass a Consumer<DataSegment> instead of boolean & rename variables.

* Small updates

* Remove one test constructor.

* Remove the other constructor that wasn't initializing fully and update usages.

* Cleanup withInfoDir() builder and unnecessary test hooks.

* Remove mocks and elaborate on comments.

* Commentary

* Fix a few Intellij inspection warnings.

* Suppress corePoolSize intellij-inspect warning.

The intellij-inspect tool doesn't seem to correctly inspect
lambda usages. See ScheduledExecutors.

* Update docs and add more tests.

* Use hamcrest for asserting order on expectation.

* Shutdown bootstrap exec.

* Fix checkstyle
2024-06-04 10:44:46 -07:00
.github Fix cds-coordinator-metadata-query-disabled (#16488) 2024-05-22 20:42:11 +02:00
.idea Ignore misc.xml (#14362) 2023-06-02 12:00:52 +05:30
benchmarks Add octet streaming of sketchs in MSQ (#16269) 2024-05-28 18:12:38 +05:30
cloud Prepare master branch for 31.0.0 release (#16333) 2024-04-26 09:22:43 +05:30
codestyle Support sorting on complex columns in MSQ (#16322) 2024-05-13 15:07:05 +05:30
dev Enable quidem tests to use different suppliers (#16382) 2024-05-09 09:21:02 +02:00
distribution Use canonical hostname instead of ip by default (#16386) 2024-05-11 17:53:22 +08:00
docs Added new use cases and description of the use case - 5/14/24 (#16451) 2024-06-04 09:47:49 -07:00
examples remove legacy Jupyter tutorial files (#15834) 2024-02-12 13:45:47 -08:00
extensions-contrib IcebergInputSource : Add option to toggle case sensitivity while reading columns from iceberg catalog (#16496) 2024-05-31 10:18:52 -07:00
extensions-core Fix task bootstrapping & simplify segment load/drop flows (#16475) 2024-06-04 10:44:46 -07:00
hooks Git hooks should fail on errors; pass args to git hooks (#12322) 2022-03-10 09:07:50 +09:00
indexing-hadoop Prepare master branch for 31.0.0 release (#16333) 2024-04-26 09:22:43 +05:30
indexing-service Fix task bootstrapping & simplify segment load/drop flows (#16475) 2024-06-04 10:44:46 -07:00
integration-tests Add new test for handoff API (#16492) 2024-05-28 12:57:51 -07:00
integration-tests-ex Add ability to turn off Druid Catalog specific validation done on catalog defined tables in Druid (#16465) 2024-05-23 13:19:51 -04:00
licenses Web console: upgrade axios and follow-redirects (#16087) 2024-03-11 18:57:00 -07:00
processing Fix task bootstrapping & simplify segment load/drop flows (#16475) 2024-06-04 10:44:46 -07:00
publications De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
server Fix task bootstrapping & simplify segment load/drop flows (#16475) 2024-06-04 10:44:46 -07:00
services Remove usage of skife from DruidCoordinatorConfig (#15705) 2024-04-29 11:37:13 -07:00
sql Fix task bootstrapping & simplify segment load/drop flows (#16475) 2024-06-04 10:44:46 -07:00
web-console Web console: fix delta sorting in the explore view table (#16542) 2024-06-04 10:15:35 -07:00
website Added new use cases and description of the use case - 5/14/24 (#16451) 2024-06-04 09:47:49 -07:00
.asf.yaml .asf.yaml: Add required "repository" field. (#14499) 2023-06-28 15:05:07 -07: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 add ignore path (#16429) 2024-05-11 17:54:52 +08:00
.lgtm.yml be consistent about referring to the web console by its name (#13118) 2022-09-19 15:02:17 -07:00
CONTRIBUTING.md Document our conventions for writing messages (#13916) 2023-04-03 21:30:20 -07:00
LABELS Fixing security vulnerability check errors (#13956) 2023-03-23 11:10:06 +05:30
LICENSE Adding the PropertyNamingStrategies from jackson for fixing hadoop ingestion (#14671) 2023-08-01 20:02:43 +05:30
NOTICE Update notice file. (#15702) 2024-01-23 15:56:22 +05:30
README.md Fix workflow labeler parameter to match the correct status img (#16142) 2024-03-20 11:05:17 +05:30
README.template De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
check_test_suite.py Update Hadoop3 as default build version (#14005) 2023-04-26 12:52:51 +05:30
check_test_suite_test.py remove Travis CI (#13789) 2023-02-10 01:46:56 -08:00
doap_Druid.rdf Fix the created property in DOAP RDF file (#14971) 2023-09-13 06:12:35 -07:00
it.sh Build reliablity fixes (#15048) 2023-09-28 12:27:52 -07:00
licenses.yaml Web console: fix delta sorting in the explore view table (#16542) 2024-06-04 10:15:35 -07:00
owasp-dependency-check-suppressions.xml Fix CVE errors (#16147) 2024-04-05 17:53:09 +05:30
pom.xml Bump org.openrewrite.maven:rewrite-maven-plugin from 5.27.0 to 5.31.0 (#16477) 2024-05-21 09:47:05 +02:00
rewrite.yml Update Calcite*Test to use junit5 (#16106) 2024-03-19 04:05:12 -07:00
upload.sh Adding licenses and enable apache-rat-plugin. (#6215) 2018-09-18 08:39:26 -07:00

README.md

Coverage Status Docker Helm

Workflow Status
⚙️ CodeQL Config codeql-config
🔍 CodeQL codeql
🕒 Cron Job ITS cron-job-its
🏷️ Labeler labeler
♻️ Reusable Revised ITS reusable-revised-its
♻️ Reusable Standard ITS reusable-standard-its
♻️ Reusable Unit Tests reusable-unit-tests
🔄 Revised ITS revised-its
🔧 Standard ITS standard-its
🛠️ Static Checks static-checks
🧪 Unit and Integration Tests Unified unit-and-integration-tests-unified
🔬 Unit Tests unit-tests

Website Twitter Download Get Started Documentation Community Build Contribute License


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. The design documentation explains the key concepts.

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 web 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

See the latest documentation for the documentation for the current official release. If you need information on a previous release, you can browse previous releases documentation.

Make documentation and tutorials updates in /docs using Markdown or extended Markdown (MDX). Then, open a pull request.

To build the site locally, you need Node 16.14 or higher and to install Docusaurus 2 with npm|yarn install in the website directory. Then you can run npm|yarn start to launch a local build of the docs.

If you're looking to update non-doc pages like Use Cases, those files are in the druid-website-src repo.

Community

Visit the official project community page to read about getting involved in contributing to Apache Druid, and how we help one another use and operate Druid.

  • Druid users can find help in the druid-user mailing list on Google Groups, and have more technical conversations in #troubleshooting on Slack.
  • Druid development discussions take place in the druid-dev mailing list (dev@druid.apache.org). Subscribe by emailing dev-subscribe@druid.apache.org. For live conversations, join the #dev channel on Slack.

Check out the official community page for details of how to join the community Slack channels.

Find articles written by community members and a calendar of upcoming events on the project site - contribute your own events and articles by submitting a PR in the apache/druid-website-src repository.

Building from source

Please note that JDK 8 or JDK 11 is required to build Druid.

See the latest build guide for instructions on building Apache Druid from source.

Contributing

Please follow the community guidelines for contributing.

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

License

Apache License, Version 2.0