Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8500

Improve refreshNodes in DFSAdmin to support hdfs federation

    XMLWordPrintableJSON

    Details

      Description

      In hdfs federated cluster, we find the dfsadmin command "hdfs dfsadmin -refreshNodes" can only refresh the nameservice (or namenode) which configured in fs.defaultFS. The other nameservices configured in hdfs-site.xml can't be refreshed unless changing the fs.defaultFS value and run this command again. I think we need additional parameters as following to give a convenient way:
      [-a] fresh all namenodes configured in hdfs-site.xml.
      [-ns <nameserviceId>] specify a nameservice to refresh.
      [host:ipc_port] specify a nn to refresh.

      please give your opinions. Thanks!

        Attachments

          Activity

            People

            • Assignee:
              sijing0410 Zhang Wei
              Reporter:
              sijing0410 Zhang Wei
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: