我正在尝试按照以下说明使用 Vagrant 和 Cloudera Manager 在我的笔记本电脑上运行 Virtual Apache Hadoop 集群:
我正在使用具有 16GB RAM 的戴尔 Precision M4800 工作站笔记本电脑,它运行 Ubuntu 16.04 LTS (Xenial Xerus) 操作系统。
我成功地安装了 VirtualBox 和 Vagrant,但我无法连接到集群的节点,我所做的是:
为 CLI 工具配置代理设置:
$export http_proxy="http://user:password@proxy_server:port" $export https_proxy="https://user:password@proxy_server:port""
进入项目目录
更新每台活动机器上的 hosts 文件:
$vagrant hostmanager
根据 Vagrantfile 创建和配置来宾机器
$vagrant up
- 尝试浏览 http://vm-cluster-node1:7180 但收到错误“找不到服务器”
因为我在公司代理后面,所以我安装了vagrant proxyconf 插件,如下所示:如何在代理环境中使用 vagrant?
然后我更改了我的Vagrantfile添加以下行:
if Vagrant.has_plugin?("vagrant-proxyconf")
config.proxy.http = "http://user:password@proxy_server:port"
config.proxy.https = "https://user:password@proxy_server:port"
config.proxy.no_proxy = "localhost,127.0.0.1"
end
现在的问题是,在vagrant up命令之后,我收到以下错误:
==> master: Failed to fetch http://archive.cloudera.com/cm5/ubuntu/precise/amd64/cm/pool/contrib/e/enterprise/cloudera-manager-daemons_5.8.2-1.cm582.p0.17~precise-cm5_all.deb Connection failed
==> master: Failed to fetch http://archive.cloudera.com/cm5/ubuntu/precise/amd64/cm/pool/contrib/o/oracle-j2sdk1.7/oracle-j2sdk1.7_1.7.0+update67-1_amd64.deb Connection failed
==> master: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
==> master: cloudera-scm-server-db: unrecognized service
==> master: cloudera-scm-server-db: unrecognized service
==> master: cloudera-scm-server: unrecognized service
The SSH command responded with a non-zero exit status. Vagrant assumes
that this means the command failed. The output for this command should be
in the log above. Please read the output to determine what went wrong.
我究竟做错了什么?