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

HDFS Balancer does not respect dfs.client.use.datanode.hostname

    Details

    • Hadoop Flags:
      Reviewed

      Description

      In Balancer Dispatch.java:

         private void dispatch() {
            LOG.info("Start moving " + this);
      
            Socket sock = new Socket();
            DataOutputStream out = null;
            DataInputStream in = null;
            try {
              sock.connect(
                  NetUtils.createSocketAddr(target.getDatanodeInfo().getXferAddr()),
                  HdfsConstants.READ_TIMEOUT);
      

      getXferAddr() is called without taking into consideration of dfs.client.use.datanode.hostname setting, this would possibly fail balancer run issued from outside a cluster.

      Thanks Casey Brotherton for reporting the issue.

        Attachments

        1. HDFS-9100.003.patch
          2 kB
          Casey Brotherton
        2. HDFS-9100.002.patch
          2 kB
          Casey Brotherton
        3. HDFS-9100.001.patch
          2 kB
          Casey Brotherton
        4. HDFS-9100.000.patch
          2 kB
          Casey Brotherton

          Activity

            People

            • Assignee:
              caseyjbrotherton Casey Brotherton
              Reporter:
              yzhangal Yongjun Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: