在虚拟机中运行单实例AppScale

时间:2012-08-31 07:40:40

标签: java appscale

我试图在安装在Vmware框中的单实例节点中运行AppScale,并在同一服务器虚拟机中运行appscale-tools并出现此错误:

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

我不确定,但它继续说: "Please wait for the controller to finish pre-processing tasks."已经持续了几分钟。

所以我决定终止它,这就是我得到的:

"...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 

1 个答案:

答案 0 :(得分:0)

使用预构建的Appscale图像here或按照此处列出的步骤https://github.com/AppScale/appscale/wiki/Virtualized-Cluster解决此问题。

它还有构建脚本:

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