private static void registerHttpAddress(AvatarZooKeeperClient zk, Configuration originalConf,
      Configuration conf, boolean toOverwrite) throws UnsupportedEncodingException, IOException {
    LOG.info("Updating Http Address information in ZooKeeper");
    String addr = conf.get(FSConstants.DFS_NAMENODE_HTTP_ADDRESS_KEY);
    String defaultAddr = originalConf
        .get(FSConstants.DFS_NAMENODE_HTTP_ADDRESS_KEY);
    registerSocketAddress(zk, defaultAddr, addr, toOverwrite);
    registerAliases(zk, conf, FSConstants.DFS_HTTP_ALIASES, addr, toOverwrite);
  }
private static void registerHttpAddress ( AvatarZooKeeperClient zk , Configuration originalConf , Configuration conf , boolean toOverwrite ) throws UnsupportedEncodingException , IOException { LOG . info ( "Updating Http Address information in ZooKeeper" ) ; String addr = conf . get ( FSConstants . DFS_NAMENODE_HTTP_ADDRESS_KEY ) ; String defaultAddr = originalConf . get ( FSConstants . DFS_NAMENODE_HTTP_ADDRESS_KEY ) ; registerSocketAddress ( zk , defaultAddr , addr , toOverwrite ) ; registerAliases ( zk , conf , FSConstants . DFS_HTTP_ALIASES , addr , toOverwrite ) ; }
Registers the http address of the namenode in the zookeeper