【问题标题】:DataStax AMI installed in VPC hangs at Installation started安装在 VPC 中的 DataStax AMI 在安装开始时挂起
【发布时间】:2014-11-07 23:31:04
【问题描述】:

我今天遇到了这个问题,ami-ada2b6c4 在没有公共 IP 的 VPC 中创建了一个新实例 - 通过 SSH 登录并且终端在安装开始时挂起。

我用 Ctrl-C 打断,这打印在终端上:

Installation started ^CTraceback (most recent call last):
  File "datastax_ami/ds4_motd.py", line 239, in <module>
    run()
  File "datastax_ami/ds4_motd.py", line 228, in run
    waiting_for_status()
  File "datastax_ami/ds4_motd.py", line 100, in waiting_for_status
    time.sleep(5)
KeyboardInterrupt

我关注了 joaquin 发布的 link to github 以解决类似问题,并在 /etc/hosts 中添加了一个条目。注销实例,然后重新连接。这一次,得到一个不同的错误。

Raiding complete
Waiting for nodetool...
The cluster is now in it's finalization phase. This should only take a moment...

Note: You can also use CTRL+C to view the logs if desired:
    AMI log: ~/datastax_ami/ami.log
    Cassandra log: /var/log/cassandra/system.log


Note: Ownership information does not include topology; for complete information, specify a keyspace
Datacenter: Solr
================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address     Load       Owns   Host ID                               Token                                    Rack
UN  10.0.10.92  53 KB      100.0%  c010f1d3-3d74-4c2b-ae88-9e3fecfc447c  -9223372036854755808                     rack1

Opscenter: http://10.0.10.92:8888/
    Please wait 60 seconds if this is the cluster's first start...


Tools:
    Run: datastax_tools
Demos:
    Run: datastax_demos
Support:
    Run: datastax_support


------------------------------------
DataStax AMI for DataStax Enterprise
and DataStax Community
AMI version 2.5
DataStax Enterprise version 4.5.2-1

------------------------------------


These notices occurred during the startup of this instance:
[ERROR] 10/15/14-18:16:08 git pull:
error: Failed connect to github.com:443; Connection timed out while accessing https://github.com/riptano/ComboAMI.git/info/refs

安全组确实允许访问互联网 - 例如,我能够 sudo apt-get update。

【问题讨论】:

  • 如果您可以通过电子邮件将您的 ~/datastax_ami/ami.log 和您的新 /etc/hosts 文件发送到 @datastax.com,我可以看看。另外,请提及您添加/更改的 /etc/hosts 行。谢谢!
  • 我遇到了同样的问题,有什么更新吗?

标签: datastax-enterprise datastax amazon-ami amazon-vpc


【解决方案1】:

我的一些经验教训。 Datastax 的 Joaquin 对他的建议很有帮助。

  1. 我使用 AWS 管理 GUI 中的高级配置传入了用户数据 -

    --clustername EIP_ami --totalnodes 3 --version enterprise --username some.guy_some.com --password changeme --searchnodes 3

但没有在 GUI 中将实例数更改为 3,因此只创建了一个节点。这可能是导致问题的原因。

中断初始悬挂安装后-

  1. 将此条目添加到 /etc/hosts:

    127.0.1.1 ip-10-0-1-234

  2. 为实例添加弹性 IP 并重启

我遇到了第二个错误:

These notices occurred during the startup of this instance:
[ERROR] 10/15/14-18:16:08 git pull:
error: Failed connect to github.com:443; Connection timed out while accessing https://github.com/riptano/ComboAMI.git/info/refs
  1. 当我遇到 bash 提示时,我按照 Joaquin 的建议手动测试了 git pull:

    ubuntu@ip-10-0-1-234:~/datastax_ami$ git pull 已经是最新的了。 根据华金:

是的,该错误消息将在机器的整个生命周期内一直存在。 也许git pull 问题是侥幸。

Nodetool 状态表示节点已启动并正常运行。所以,这里的学习是忽略错误——它们似乎都不会影响节点的创建或操作。

【讨论】:

    猜你喜欢
    • 2014-09-08
    • 2014-08-29
    • 2018-02-28
    • 1970-01-01
    • 2022-07-12
    • 1970-01-01
    • 1970-01-01
    • 2013-05-28
    • 2014-07-21
    相关资源
    最近更新 更多