Uploaded image for project: 'Apache Twill'
  1. Apache Twill
  2. TWILL-262

YarnUtils#cloneHaNnCredentials uses DFSUtil#getHaNnRpcAddresses, which is removed from DFSUtils from hadoop-2.8

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0, 0.9.0, 0.11.0, 0.12.0, 0.13.0
    • Fix Version/s: 0.14.0
    • Component/s: yarn
    • Labels:
      None

      Description

      YarnUtils#cloneHaNnCredentials uses DFSUtil#getHaNnRpcAddresses, which is removed from DFSUtils from hadoop-2.8

      current code

        public static void cloneHaNnCredentials(Configuration config) throws IOException {
          ……
      
          // Loop through all name services. Each name service could have multiple name node associated with it.
          for (Map.Entry<String, Map<String, InetSocketAddress>> entry : DFSUtil.getHaNnRpcAddresses(config).entrySet()) {
            String nsId = entry.getKey();
            Map<String, InetSocketAddress> addressesInNN = entry.getValue();
            if (!HAUtil.isHAEnabled(config, nsId) || addressesInNN == null || addressesInNN.isEmpty()) {
              continue;
            }
      
       ……
        }
      

        Attachments

        1. errors.txt
          1 kB
          Hongyuan Li

          Issue Links

            Activity

              People

              • Assignee:
                Hongyuan Li Hongyuan Li
                Reporter:
                Hongyuan Li Hongyuan Li
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: