Java 在虚拟机中运行单实例AppScale

Java 在虚拟机中运行单实例AppScale,java,appscale,Java,Appscale,我试图在安装在Vmware机箱中的单个实例节点中运行AppScale,并在同一服务器虚拟机中运行AppScale工具,但出现以下错误: root@appscale:~appscale-tools-bin# ./appscale-run-instances --ips ips.yaml About to start AppScale over a non-cloud environment. Head node successfully created at 127.0.0.1. It is no

我试图在安装在Vmware机箱中的单个实例节点中运行AppScale,并在同一服务器虚拟机中运行AppScale工具,但出现以下错误:

root@appscale:~appscale-tools-bin# ./appscale-run-instances --ips ips.yaml
About to start AppScale over a non-cloud environment.
Head node successfully created at 127.0.0.1. It is now starting up cassandra via the command line arguments given.
Generating certificate and private key
Starting server at 127.0.0.1 
Please wait for the controller to finish pre-processing tasks.
Warning: Permanently added '127.0.0.1' (RSA) t othe list of known host.
Error: Couldn't find me in the node map
建议我的解决方案是更改此源代码中的代码:

appscale/AppController/lib/helperfunctions.rb
然后查找
self.local_ip()
并更改为:

def self.local_ip()
  return "127.0.0.1"
end
但是当我跑的时候

./appscale-run-instances --ips ips.yaml
我不确定,但它一直在说:
“请等待控制器完成预处理任务。”
已经等待了几分钟

所以我决定终止它,下面是我得到的:

"...common_functions.rb:399:in 'sleep_unti_port_is_open"
在这种情况下,我似乎需要打开一个端口,我在Ubuntu中运行AppScale,我应该在我的服务器中打开哪个端口


以下是完整的命令行:

./appscale-run-instances --ips ips.yaml 

About to start AppScale over a non-cloud environment.
Head node successfully created at 127.0.0.1. 
It is now starting up cassandra via the command line arguments given. 
Generating certificate and private key.
Starting server at 127.0.0.1 

Please wait for the controller to finish pre-processing tasks. 

^C./../lib/../lib/common_functions.rb:399:in sleep': Interrupt
 from ./../lib/../lib/common_functions.rb:399:in 'sleep_until_port_is_open'
 from ./../lib/../lib/common_functions.rb:397:in 'loop'
 from ./../lib/../lib/common_functions.rb:397:in 'sleep_until_port_is_open' 
 from ./../lib/../lib/common_functions.rb:1359:in 'start_appcontroller' 
 from /usr/lib/ruby/1.8/timeout.rb:62:in ttimeout. 
 from ./../lib/../lib/common_functions.rb:1351:in 'start_appcontroller' 
 from ./../lib/../lib/common_functions.rb:548:in 'start_head_node' 
 from ./../lib/appscale_tools.rb:284:in trun_instances' 
 from ./appscale-run-instances:14 

使用预构建的Appscale映像或遵循此处列出的步骤将解决此问题

它还有构建脚本:

$ sudo su
# cd /root
# wget -O - http://bootstrap.appscale.com | sh

嗯,堆栈跟踪中是否还有其他内容显示“在端口打开之前睡眠”?AppScale正在等待某个特定端口打开,但它应该为您管理端口(因此,在本例中,它正在等待出现一个由特定端口标识的服务)。下面是完整的命令行: