public static URI getUri(InetSocketAddress namenode) { int port = namenode.getPort(); String portString = port == DEFAULT_PORT ? "" : (":"+port); // return URI.create("hdfs://"+ namenode.getHostName()+portString); }
posted on 2013-06-27 18:09 wangbokun 阅读(154) 评论(0) 编辑 收藏 举报