我计划使用Apache Ambari。首先,我按照https://cwiki.apache.org/confluence/display/AMBARI/Quick+Start+Guide上的说明进行了一切操作。但是每次尝试启动虚拟机时,都会出现以下错误:
The machine with the name 'c6401' was not found configured for
this Vagrant environment.
我计划使用Apache Ambari。首先,我按照https://cwiki.apache.org/confluence/display/AMBARI/Quick+Start+Guide上的说明进行了一切操作。但是每次尝试启动虚拟机时,都会出现以下错误:
The machine with the name 'c6401' was not found configured for
this Vagrant environment.
今天在 Mac 上遇到了这个错误,决定使用我找到的解决方法更新这篇文章。
步骤
删除所有冗余机器文件夹 ./.vagrant/machines(.vagrant 文件夹是存储库中的隐藏文件夹)
在项目根目录下运行 vagrant global-status --prune
命令
销毁 vagrant 设置 vagrant destroy
确保虚拟箱 UI 中不存在相关机器
再次运行 vagrant up
干杯!
config.vm.define :c6401 do |c6401|
# uncomment the line below to set up the ambari dev environment
# c6401.vm.provision :shell, :path => "dev-bootstrap.sh"
c6401.vm.hostname = "c6401.ambari.apache.org"
c6401.vm.network :private_network, ip: "192.168.64.101"
end
git checkout centos6.4/VagrantFile
从ambari-vagrant目录下运行,并尝试重新运行
vagrant up c6401