Muokkaa

Jaa


azdata bdc debug

Applies to: Azure Data CLI (azdata)

The following article provides reference for the sql commands in the azdata tool. For more information about other azdata commands, see azdata reference

Commands

Command Description
azdata bdc debug copy-logs Copy logs.
azdata bdc debug dump Trigger memory dump.

azdata bdc debug copy-logs

Copy the debug logs from the Big Data Cluster - Kubernetes configuration is required on your system.

azdata bdc debug copy-logs --namespace -ns 
                           [--container -c]  
                           
[--target-folder -d]  
                           
[--pod -p]  
                           
[--timeout -t]  
                           
[--skip-compress -sc]  
                           
[--exclude-dumps -ed]  
                           
[--exclude-system-logs  -esl]

Required Parameters

--namespace -ns

Big data cluster name, used for kubernetes namespace.

Optional Parameters

--container -c

Copy the logs for the containers with similar name, Optional, by default copies logs for all containers. Cannot be specified multiple times. If specified multiple times, last one will be used

--target-folder -d

Target folder path to copy logs to. Optional, by default creates the result in the local folder. Cannot be specified multiple times. If specified multiple times, last one will be used

--pod -p

Copy the logs for the pods with similar name. Optional, by default copies logs for all pods. Cannot be specified multiple times. If specified multiple times, last one will be used

--timeout -t

The number of seconds to wait for the command to complete. The default value is 0 which is unlimited

--skip-compress -sc

Whether or not to skip compressing the result folder. The default value is False which compresses the result folder.

--exclude-dumps -ed

Whether or not to exclude dumps from result folder. The default value is False which includes dumps.

--exclude-system-logs -esl

Whether or not to exclude system logs from collection. The default value is False which includes system logs.

Global Arguments

--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--output -o

Output format. Allowed values: json, jsonc, table, tsv. Default: json.

--query -q

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

azdata bdc debug dump

Trigger memory dump and copy it out from container - Kubernetes configuration is required on your system.

azdata bdc debug dump --namespace -ns 
                      [--container -c]  
                      
[--target-folder -d]

Required Parameters

--namespace -ns

Big data cluster name, used for kubernetes namespace.

Optional Parameters

--container -c

The target container to be triggered for dumping the running processes controller

--target-folder -d

Target folder to copy the dump out. ./output/dump

Global Arguments

--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--output -o

Output format. Allowed values: json, jsonc, table, tsv. Default: json.

--query -q

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Next steps

For more information about other azdata commands, see azdata reference.

For more information about how to install the azdata tool, see Install azdata.