Automated log and analytics collection for Dremio clusters
- Read the FAQ for common questions on setting up DDC
- Read the ddc.yaml for a full, detailed list of customizable collection parameters (optional)
- Read the official Dremio Support page for more details on the DDC architecture
Download the latest release binary:
- Unzip the binary
- Open a terminal and change to the directory where you unzipped your binary
- Run the command
./ddc help
. If you see the DDC command help, you are good to go.
ddc
DDC connects via SSH or the kubernetes API and collects a series of logs and files for Dremio, then puts those collected files in an archive
For Kubernetes deployments (Relies on a kubernetes configuration file to be at $HOME/.kube/config or at $KUBECONFIG):
ddc --namespace mynamespace
Requires Dremio admin privileges. Dremio PATs can be enabled by the support key auth.personal-access-tokens.enabled
ddc -n mynamespace --collect health-check
Specify executors that you want include in diagnostic collection with the -e
flag and coordinators with the -c
flag. Specify SSH user, and SSH key to use.
For SSH based communication to VMs or Bare Metal hardware:
ddc --coordinator 10.0.0.19 --ssh-user myuser
ddc --coordinator 10.0.0.19 --executors 10.0.0.20,10.0.0.21,10.0.0.22 --ssh-user myuser
Requires Dremio admin privileges. Dremio PATs can be enabled by the support key auth.personal-access-tokens.enabled
ddc --coordinator 10.0.0.19 --executors 10.0.0.20,10.0.0.21,10.0.0.22 --sudo-user dremio --ssh-user myuser --collect health-check
ddc --coordinator 10.0.0.19 --executors 10.0.0.20,10.0.0.21,10.0.0.22 --sudo-user dremio --ssh-user myuser --transfer-dir /mnt/lots_of_storage/
Log-only collection from a Dremio AWSE coordinator is possible via the following command. This will produce a tarball with logs from all nodes.
./ddc awselogs
To collect job profiles, system tables, and wlm via REST API, specify the following parameters in ddc.yaml
is-dremio-cloud: true
dremio-endpoint: "[eu.]dremio.cloud" # Specify whether EU Dremio Cloud or not
dremio-cloud-project-id: "<PROJECT_ID>"
dremio-pat-token: "<DREMIO_PAT>"
tmp-output-dir: /full/path/to/dir # Specify local target directory
and run ./ddc local-collect
from your local machine
If you are running DDC from Windows, always run in a shell from the C:
drive prompt.
This is because of a limitation of kubectl ( see kubernetes/kubernetes#77310 )
The ddc.yaml
file is located next to your DDC binary and can be edited to fit your environment. The default-ddc.yaml documents the full list of available parameters.