Apache &引用;名称为';c6401和x27;未找到为此流浪环境配置的;错误

Apache &引用;名称为';c6401和x27;未找到为此流浪环境配置的;错误,apache,hadoop,vagrant,Apache,Hadoop,Vagrant,我计划与Apache Ambari合作。首先,我做的每件事都是按计划进行的。但每当我尝试启动VM时,都会出现以下错误: The machine with the name 'c6401' was not found configured for this Vagrant environment. 请打开centos6.4目录下的Vagrant文件,验证是否看到如下内容: config.vm.define :c6401 do |c6401| # uncomment the line belo

我计划与Apache Ambari合作。首先,我做的每件事都是按计划进行的。但每当我尝试启动VM时,都会出现以下错误:

The machine with the name 'c6401' was not found configured for
this Vagrant environment.

请打开centos6.4目录下的Vagrant文件,验证是否看到如下内容:

  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
我曾面临过类似的问题。问题是,我删除了默认情况下随ambari-vagrant.git附带的vagrant文件,并运行了“vagrant init”,它创建了一个标准模板文件,其中没有任何对c6401机器的引用。 如果你在同一条船上,就做一个

git checkout centos6.4/VagrantFile
从ambari vagrant目录下,尝试重新运行

vagrant up c6401