code: public static void logDataDistribution(DatanodeInfo[] report) {
      if (LOG.isInfoEnabled()) {
        double avgRemaining = computeAvgRemaining(Arrays.asList(report));
        StringBuilder msg = new StringBuilder("Data distribution report: avgRemaining "
            + avgRemaining);
        for (DatanodeInfo node : report) {
          msg.append("\n").append(node.getName());
          msg.append(" remaining ").append(getRemaining(node));
          msg.append(" raw ").append(node.getRemaining()).append(" / ").append(node.getCapacity());
        }
        LOG.info(msg);
      }
    }
docs: Prints data distribution based on report from NameNode