HDFS-8187. Remove usage of '-setStoragePolicy' and '-getStoragePolicy' using dfsadmin cmd (as it is not been supported) (Contributed by J.Andreina)
This commit is contained in:
parent
4b00ae5c11
commit
e642eff0e0
|
@ -675,6 +675,9 @@ Release 2.8.0 - UNRELEASED
|
|||
HDFS-8108. Fsck should provide the info on mandatory option to be used along with "-blocks ,
|
||||
-locations and -racks" (J.Andreina via umamahesh)
|
||||
|
||||
HDFS-8187. Remove usage of "-setStoragePolicy" and "-getStoragePolicy" using
|
||||
dfsadmin cmd (as it is not been supported) (J.Andreina via vinayakumarb)
|
||||
|
||||
Release 2.7.1 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!---
|
||||
<!---
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
@ -84,13 +84,13 @@ Note that the Lasy\_Persist policy is useful only for single replica blocks. For
|
|||
|
||||
### Storage Policy Resolution
|
||||
|
||||
When a file or directory is created, its storage policy is *unspecified*. The storage policy can be specified using the "[`dfsadmin -setStoragePolicy`](#Set_Storage_Policy)" command. The effective storage policy of a file or directory is resolved by the following rules.
|
||||
When a file or directory is created, its storage policy is *unspecified*. The storage policy can be specified using the "[`storagepolicies -setStoragePolicy`](#Set_Storage_Policy)" command. The effective storage policy of a file or directory is resolved by the following rules.
|
||||
|
||||
1. If the file or directory is specificed with a storage policy, return it.
|
||||
|
||||
2. For an unspecified file or directory, if it is the root directory, return the *default storage policy*. Otherwise, return its parent's effective storage policy.
|
||||
|
||||
The effective storage policy can be retrieved by the "[`dfsadmin -getStoragePolicy`](#Get_Storage_Policy)" command.
|
||||
The effective storage policy can be retrieved by the "[`storagepolicies -getStoragePolicy`](#Get_Storage_Policy)" command.
|
||||
|
||||
### Configuration
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!---
|
||||
<!---
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
@ -309,8 +309,6 @@ Usage:
|
|||
[-clrQuota <dirname>...<dirname>]
|
||||
[-setSpaceQuota <quota> [-storageType <storagetype>] <dirname>...<dirname>]
|
||||
[-clrSpaceQuota [-storageType <storagetype>] <dirname>...<dirname>]
|
||||
[-setStoragePolicy <path> <policyName>]
|
||||
[-getStoragePolicy <path>]
|
||||
[-finalizeUpgrade]
|
||||
[-rollingUpgrade [<query> |<prepare> |<finalize>]]
|
||||
[-metasave filename]
|
||||
|
@ -344,8 +342,6 @@ Usage:
|
|||
| `-clrQuota` \<dirname\>...\<dirname\> | See [HDFS Quotas Guide](../hadoop-hdfs/HdfsQuotaAdminGuide.html#Administrative_Commands) for the detail. |
|
||||
| `-setSpaceQuota` \<quota\> `[-storageType <storagetype>]` \<dirname\>...\<dirname\> | See [HDFS Quotas Guide](../hadoop-hdfs/HdfsQuotaAdminGuide.html#Administrative_Commands) for the detail. |
|
||||
| `-clrSpaceQuota` `[-storageType <storagetype>]` \<dirname\>...\<dirname\> | See [HDFS Quotas Guide](../hadoop-hdfs/HdfsQuotaAdminGuide.html#Administrative_Commands) for the detail. |
|
||||
| `-setStoragePolicy` \<path\> \<policyName\> | Set a storage policy to a file or a directory. |
|
||||
| `-getStoragePolicy` \<path\> | Get the storage policy of a file or a directory. |
|
||||
| `-finalizeUpgrade` | Finalize upgrade of HDFS. Datanodes delete their previous version working directories, followed by Namenode doing the same. This completes the upgrade process. |
|
||||
| `-rollingUpgrade` [\<query\>\|\<prepare\>\|\<finalize\>] | See [Rolling Upgrade document](../hadoop-hdfs/HdfsRollingUpgrade.html#dfsadmin_-rollingUpgrade) for the detail. |
|
||||
| `-metasave` filename | Save Namenode's primary data structures to *filename* in the directory specified by hadoop.log.dir property. *filename* is overwritten if it exists. *filename* will contain one line for each of the following<br/>1. Datanodes heart beating with Namenode<br/>2. Blocks waiting to be replicated<br/>3. Blocks currently being replicated<br/>4. Blocks waiting to be deleted |
|
||||
|
|
Loading…
Reference in New Issue