【发布时间】:2018-06-11 13:05:25
【问题描述】:
我正在建立一个用于学习目的的 hadoop 集群。为此,我尝试安装 java,在安装之前,我通过运行 java -version 命令检查了 java 的先前安装,并得到以下消息
程序“java”可以在以下包中找到: * 默认 jre * gcj-5-jre-无头 * openjdk-8-jre-headless * gcj-4.8-jre-headless * gcj-4.9-jre-headless * openjdk-9-jre-headless 试试:sudo apt install
根据其中一个线程中的建议,我运行了 sudo apt-get update 并反复收到以下消息
$sudo apt-get 更新 0% [连接到 ap-south-1.ec2.archive.ubuntu.com (54.168.13.207)]
Err:1 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease 无法连接到 ap-south-1.ec2.archive.ubuntu.com:80 (54.248.192.197),连接超时 [IP: 54.248.192.197 80]
Err:2 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease 无法连接到 ap-south-1.ec2.archive.ubuntu.com:http: [IP: 54.248.192.197 80]
Err:3 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease 无法连接到 ap-south-1.ec2.archive.ubuntu.com:http: [IP: 54.248.192.197 80]
Err:4 http://security.ubuntu.com/ubuntu xenial-security InRelease 无法启动与 security.ubuntu.com:80 (2001:67c:1562::19) 的连接。 - 连接 (101: 网络不可达) [IP: 2001:67c:1562::19 80]
正在读取包列表...完成
W:无法获取 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu/dists/xenial/InRelease 无法连接到 ap-south-1.ec2.archive.ubuntu.com:80 (54.248.192.197),连接超时 [IP: 54.248.192.197 80]
W: 无法获取 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease 无法连接到 ap-south-1.ec2.archive.ubuntu.com:http: [IP: 54.248.192.197 80]
W: 无法获取http://ap-south-1.ec2.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease 无法连接到 ap-south-1.ec2.archive.ubuntu.com:http: [IP: 54.248.192.197 80]
W:无法获取 http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease 无法启动与 security.ubuntu.com:80 (2001:67c:1562::19) 的连接。 - 连接 (101: 网络不可达) [IP: 2001:67c:1562::19 80]
W: 一些索引文件下载失败。它们已被忽略,或使用旧的。
我现在该怎么办?
我在安装 hadoop 时也会遇到类似的问题吗?
谢谢
【问题讨论】:
-
你能显示你的实例安全grp设置吗?
-
@AmitKhandelwal 安全组:sg-113f2e7 类型 协议 端口范围 目标 描述 HTTP TCP 80 0.0.0.0/0 for TCP HTTP 所有流量 所有 所有 0.0.0.0/0 HTTPS TCP 443 0.0.0.0/0对于 TCP HTTPS ***************,上表被分解为几行。下面是解释。对于 HTTP 分配端口 80 和目标作为 0.0.0.0/0 对于 HTTPS 分配端口 443 和目标作为 0.0.0.0/0 最重要的是,亚马逊有只读条目以实现故障安全
-
您的实例是在私有子网中启动的吗?你能从你试图下载的网站ping ubuntu 的IP吗?
-
@AmitKhandelwal - 抱歉,我是网络新手,我只是按照文档中的步骤设置 hadoop 集群。没有提及它。我应该在哪里检查私有子网?
-
您的实例是否位于任何防火墙后面?您使用的是公司 aws 帐户还是私人 aws 帐户?
标签: java ubuntu amazon-ec2 hadoop2