Installing Druid
This section provides a step-by-step guide to installing Apache Druid on a native VM.
About this task
Apache Druid comes with security features disabled, which simplifies the initial deployment experience. However, security features must be configured in the production deployment. These features include TLS, authentication, and authorization. For more information, see https://druid.apache.org/docs/25.0.0/operations/security-overview.html.
Procedure
-
Create the required directories and place the provided release artifact files in the specified locations.
- Create /home/druid/allmetrics and place all_metrics.sh and allmetrics_airflow.json inside.
- Create /home/druid/cdpdashboard/cdpleadconv and place cdp_leadconv.sh and cdp_leadconv.json inside.
- Create /home/druid/cdpdashboard/cdpuniqueusers and place cdp_uniqueusers.sh and cdp_uniqueusers.json inside.
- Create /home/druid/cdpdashboard/events and place events_druid_with_python.sh and events_v1.json inside.
- Create /home/druid/daily and place uploadmysqlmappingfiles.sh inside.
- Install the mc client, download it, and update execute permissions.
- Navigate to /etc/profile and update the mc path in the system profile file.
- Verify the version of the mc client.
- Set up MySQL: install the MySQL server, start it, and create a user with privileges on the druid database.
- Download the latest Apache Druid binary package and extract the tar package.
- Download the MySQL Connector/J library (version 5.1.49) and copy the JAR file to the local directory.
-
Open the common.runtime.properties file and update the druid.extensions.loadList to include
mysql-metadata-storageanddruid-s3-extensions. - Comment the Derby configurations and update the MySQL and S3 storage properties in common.runtime.properties.
-
Add druid.storage.disableAcl=
trueat the end of the file. -
Enable Druid HTTPS configuration by generating the KeyStore, exporting a public certificate, and creating the trustStore.
Note:Update the
VM_IPaddress with your VM IP address. - Edit common.runtime.properties for all Druid services to update TLS options.
- Restart Druid and MySQL database.
-
Access the Druid console using the URL:
https://<VM_IP>:9088.Note:Replace<VM_IP>with your VM IP address.