我今天遇到了这个问题,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。
答案 0 :(得分:1)
从我的经验中学到了几点。来自Datastax的Joaquin对他的建议很有帮助。
我使用AWS管理GUI中的高级配置传递了userdata -
- clustername EIP_ami --totalnodes 3 --version enterprise --username some.guy_some.com --password changeme --searchnodes 3
但未在GUI中将实例数更改为3,因此仅创建了一个节点。这可能导致了这个问题。
中断最初的悬挂安装后 -
将此条目添加到/ etc / hosts:
127.0.1.1 ip-10-0-1-234
为实例添加了弹性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
当我进入bash提示时,我按照Joaquin的建议手动测试了git pull:
ubuntu @ ip-10-0-1-234:〜/ datastax_ami $ git pull 已经是最新的。 每个华金:
是的,该错误信息将在机器的使用寿命期间保留。 也许
git pull
问题是侥幸。
Nodetool状态表示节点已启动并正常运行。因此,这里的学习是忽略错误 - 它们似乎都不会影响节点的创建或操作。