azdata bdc spark settings

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 spark settings set Set spark service-scope settings.
azdata bdc spark settings show Show spark service-scope settings and optionally spark settings for specified resources

azdata bdc spark settings set

Provides the ability to set a service-scoped or resource-scoped setting. Specify the full name of the setting and the value. Does not apply the setting to the running BDC. Run apply to do so.

azdata bdc spark settings set [--resources -r] 
                              [--settings -s]

Examples

Set the default number of driver cores to 1 and driver memory to 1664m for the Spark service.

azdata bdc spark settings set --settings spark-defaults-conf.spark.driver.cores=1,spark-defaults-conf.spark.driver.memory=1664m

Set the default number of executor cores to 1 for the Storage Pool.

azdata bdc spark settings set --settings spark-defaults-conf.spark.executor.cores=1 –resources storage-0

Optional Parameters

--resources -r

Sets the given setting(s) for the provided resource(s). Resources can be specified as a comma separated list.

--settings -s

Sets the configured value for the provided settings. Multiple settings can be set using a comma separated list.

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 spark settings show

Shows the BDC's spark service-scope (optionally resource-scope) settings. By default, this command shows user-configured service-scope settings. Filters are available to show all settings (system-managed and configurable), configurable settings, or pending settings. To see a specific service-scope or resource-scope setting, you can provide the setting name. Use "recursive" to show settings for all resources as part of the service.

azdata bdc spark settings show [--resources -r] 
                               [--settings -s]  
                               
[--filter-option -f]  
                               
[--recursive -rec]  
                               
[--include-details -i]  
                               
[--description -d]

Examples

Show the user configured Spark service-scope settings.

azdata bdc spark settings show

Show the running and configured value for Spark driver cores in the Storage Pool.

azdata bdc spark settings show --settings spark-defaults-conf.spark.driver.cores --resources storage-0

Show any configurable memory-related setting for the Spark service.

azdata bdc spark settings show --settings *memory* --resources storage-0

Optional Parameters

--resources -r

Shows the setting(s) information for the given resource(s). Resources can be specified as a comma separated list.

--settings -s

Shows information for the specified setting name(s).

--filter-option -f

Filter which cluster-scope settings are shown, rather than only 'User Configured' settings. Filters are available to show all settings (system-managed & user-configurable), all configurable settings, or pending settings. userConfigured

--recursive -rec

Shows the setting information for the given scope (service or service-resource) and all lower-scoped components (resources).

--include-details -i

Includes additional details for the settings chosen to be shown.

--description -d

Includes a description of the setting.

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.