azdata bdc hdfs mount
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
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 -m
To 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/data
To 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 an ADLS Gen 2 storage account.
azdata bdc hdfs mount delete --mount-path /mounts/adlsv2/data
the 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/hdfs
Get status of all mounts.
azdata bdc hdfs mount status
Mount 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/data
HDFS 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.