You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@twill.apache.org by "Hongyuan Li (JIRA)" <ji...@apache.org> on 2018/09/29 06:22:00 UTC

[jira] [Created] (TWILL-262) YarnUtils#cloneHaNnCredentials uses DFSUtil#getHaNnRpcAddresses, which is removed from DFSUtils from hadoop-2.8

Hongyuan Li created TWILL-262:
---------------------------------

             Summary: YarnUtils#cloneHaNnCredentials uses DFSUtil#getHaNnRpcAddresses, which is removed from DFSUtils from hadoop-2.8 
                 Key: TWILL-262
                 URL: https://issues.apache.org/jira/browse/TWILL-262
             Project: Apache Twill
          Issue Type: Bug
          Components: yarn
    Affects Versions: 0.13.0, 0.12.0, 0.11.0, 0.9.0, 0.8.0
            Reporter: Hongyuan Li


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

current code
{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;
      }

 ……
  }
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)