hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vinayakum...@apache.org
Subject hadoop git commit: HDFS-8187. Remove usage of '-setStoragePolicy' and '-getStoragePolicy' using dfsadmin cmd (as it is not been supported) (Contributed by J.Andreina)
Date Fri, 08 May 2015 08:57:20 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 a56f57b42 -> 10999ffd7


HDFS-8187. Remove usage of '-setStoragePolicy' and '-getStoragePolicy' using dfsadmin cmd
(as it is not been supported) (Contributed by J.Andreina)

(cherry picked from commit e642eff0e0065d1c504e41bc87993948b4bc073c)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/10999ffd
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/10999ffd
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/10999ffd

Branch: refs/heads/branch-2
Commit: 10999ffd7ab0305200004c2846248926e1d89457
Parents: a56f57b
Author: Vinayakumar B <vinayakumarb@apache.org>
Authored: Fri May 8 14:16:30 2015 +0530
Committer: Vinayakumar B <vinayakumarb@apache.org>
Committed: Fri May 8 14:26:58 2015 +0530

----------------------------------------------------------------------
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt                    | 3 +++
 .../hadoop-hdfs/src/site/markdown/ArchivalStorage.md           | 6 +++---
 .../hadoop-hdfs/src/site/markdown/HDFSCommands.md              | 6 +-----
 3 files changed, 7 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/10999ffd/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index 41157b7..bcb08c8 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -348,6 +348,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

http://git-wip-us.apache.org/repos/asf/hadoop/blob/10999ffd/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ArchivalStorage.md
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ArchivalStorage.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ArchivalStorage.md
index d924f80..bde4e7b 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ArchivalStorage.md
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ArchivalStorage.md
@@ -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
 

http://git-wip-us.apache.org/repos/asf/hadoop/blob/10999ffd/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md
index c1101a2..1153de7 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md
@@ -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 |


Mime
View raw message