Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-2659

The commands in DFSAdmin should require admin privilege

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.16.0
    • None
    • None

    Description

      The commands in DFSAdmin and the corresponding RPC calls should require admin privilege.

      DFSAdmin commands:
      -report
      -safemode
      -refreshNodes
      -finalizeUpgrade
      -upgradeProgress
      -metasave

      ClientProtocol:

      public void renewLease(String clientName) throws IOException;
      public long[] getStats() throws IOException;
      public DatanodeInfo[] getDatanodeReport(FSConstants.DatanodeReportType type) throws IOException;
      public boolean setSafeMode(FSConstants.SafeModeAction action) throws IOException;
      public void refreshNodes() throws IOException;
      public void finalizeUpgrade() throws IOException;
      public UpgradeStatusReport distributedUpgradeProgress(UpgradeAction action) throws IOException;
      public void metaSave(String filename) throws IOException;
      

      Attachments

        1. 2659_20080118.patch
          5 kB
          Tsz-wo Sze
        2. 2659_20080118b.patch
          5 kB
          Tsz-wo Sze
        3. 2659_20080122.patch
          5 kB
          Tsz-wo Sze

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: