gpt4 book ai didi

java - 在虚拟机中运行单实例 AppScale

转载 作者:行者123 更新时间:2023-12-01 05:09:36 25 4
gpt4 key购买 nike

我尝试在安装在 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

我不确定,但它只是继续说:“请等待 Controller 完成预处理任务。” 已经有几分钟了。

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

"...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 镜像 here或按照此处列出的步骤 https://github.com/AppScale/appscale/wiki/Virtualized-Cluster将解决这个问题。

它还有构建脚本:

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

关于java - 在虚拟机中运行单实例 AppScale,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12210896/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com