diff --git a/docs/examples.md b/docs/examples.md index ff1a8b0a..2ab29959 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -305,7 +305,39 @@ - -logFiles=logFiles ``` +## Install hadoop-dependencies With Init Container + +```yaml +spec: + volumeMounts: + - mountPath: /opt/druid/hadoop-dependencies + name: hadoop-dependencies + volumes: + - emptyDir: + sizeLimit: 500Mi + name: hadoop-dependencies + additionalContainer: + - command: + - java + - -cp + - lib/* + - -Ddruid.extensions.hadoopDependenciesDir=/hadoop-dependencies + - org.apache.druid.cli.Main + - tools + - pull-deps + - -h + - org.apache.hadoop:hadoop-client:3.3.0 + - --no-default-hadoop + containerName: hadoop-dependencies + image: apache/druid:25.0.0 + runAsInit: true + volumeMounts: + - mountPath: /hadoop-dependencies + name: hadoop-dependencies +``` + ## Secure Metadata Storage password + ```yaml apiVersion: v1 kind: Secret @@ -332,3 +364,4 @@ spec: druid.metadata.storage.connector.user= druid.metadata.storage.connector.password={ "type": "environment", "variable": "METADATA_STORAGE_PASSWORD" } ``` +