| title | azdata bdc hdfs mount reference |
|---|---|
| titleSuffix | SQL Server Big Data Clusters |
| description | Reference article for azdata bdc hdfs mount commands. |
| author | MikeRayMSFT |
| ms.author | mikeray |
| ms.reviewer | seanw |
| ms.date | 10/05/2021 |
| ms.prod | sql |
| ms.technology | big-data-cluster |
| ms.topic | reference |
Applies to [!INCLUDE 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
| Command | Description |
|---|---|
| azdata bdc hdfs mount create | Create mounts of remote stores in HDFS. |
| azdata bdc hdfs mount delete | Delete mounts of remote stores in HDFS. |
| azdata bdc hdfs mount status | Status of mount(s). |
| azdata bdc hdfs mount refresh | Refresh the contents of a mount in HDFS. |
Create mounts of remote stores in HDFS. The credentials for accessing the remote store, if any, should be specified using the environment variable MOUNT_CREDENTIALS as a comma-separated list of key=value pairs. Any commas in the keys or values must be escaped.
azdata bdc hdfs mount create --remote-uri -r
--mount-path -mTo mount container "data" in ADLS Gen 2 account "adlsv2example" on HDFS path /mounts/adlsv2/data using the shared key
Set the MOUNT_CREDENTIALS environment variable as "fs.azure.abfs.account.name=<your-storage-account-name>.dfs.core.windows.net,fs.azure.account.key.<your-storage-account-name>.dfs.core.windows.net=<storage-account-access-key>".
azdata bdc hdfs mount create --remote-uri abfs://data@adlsv2example.dfs.core.windows.net/
--mount-path /mounts/adlsv2/dataTo mount a remote HDFS BDC (hdfs://namenode1:8080/) on local HDFS path /mounts/hdfs/
azdata bdc hdfs mount create --remote-uri hdfs://namenode1:8080/ --mount-path /mounts/hdfs/URI of the remote store that is to be mounted (source of mount).
HDFS path where mount has to be created (destination of mount).
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Delete mounts of remote stores in HDFS.
azdata bdc hdfs mount delete --mount-path -m
Delete mount created at /mounts/adlsv2/data for a ADLS Gen 2 storage account.
azdata bdc hdfs mount delete --mount-path /mounts/adlsv2/datathe HDFS path corresponding to the mount that has to be deleted.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Status of mount(s).
azdata bdc hdfs mount status [--mount-path -m]
Get mount status by path
azdata bdc hdfs mount status --mount-path /mounts/hdfsGet status of all mounts.
azdata bdc hdfs mount statusMount path.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Refresh the contents of a mount in HDFS.
azdata bdc hdfs mount refresh --mount-path -m
Refresh mount created at /mounts/adlsv2/data.
azdata bdc hdfs mount refresh --mount-path /mounts/adlsv2/dataHDFS path corresponding to the mount that has to be refreshed.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
For more information about other azdata commands, see azdata reference.
For more information about how to install the azdata tool, see Install azdata.