git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1360035 13f79535-47bb-0310-9956-ffa450edef68
@@ -68,6 +68,9 @@ Release 1.2.0 - unreleased
HDFS-2827. Cannot save namespace after renaming a directory above
a file with an open lease. (Uma Maheswara Rao G via eli)
+
+ HDFS-3628. The dfsadmin -setBalancerBandwidth command on branch-1
+ does not check for superuser privileges. (harsh)
Release 1.1.0 - unreleased
@@ -723,6 +723,7 @@ public class FSNamesystem implements FSConstants, FSNamesystemMBean,
* @throws IOException
*/
public void setBalancerBandwidth(long bandwidth) throws IOException {
+ checkSuperuserPrivilege();
synchronized(datanodeMap) {
for (DatanodeDescriptor nodeInfo : datanodeMap.values()) {
nodeInfo.setBalancerBandwidth(bandwidth);