我很难得到dynamicdynamodb启动和运行。
我正在使用使用提供的CloudFormation模板创建的ec2实例。我遇到的最新问题是这个错误:
[ec2-user@ip-10-91-185-45 dynamic-dynamodb]$ sudo service dynamic-dynamodb start
2014-03-30T21:14:19.505657140: do_start:Firstly, uploading latest config file to S3
upload: ../etc/dynamic-dynamodb/dynamic-dynamodb.conf to s3://DynamicDynamoDB/config/dynamic-dynamodb.conf
2014-03-30T21:14:21.081230960: do_start:Starting dynamicdynamodb
Traceback (most recent call last):
File "/usr/bin/dynamic-dynamodb", line 22, in <module>
import dynamic_dynamodb
File "/usr/lib/python2.6/site-packages/dynamic_dynamodb/__init__.py", line 29, in <module>
from dynamic_dynamodb.core import dynamodb, gsi, table
File "/usr/lib/python2.6/site-packages/dynamic_dynamodb/core/dynamodb.py", line 12, in <module>
from dynamic_dynamodb.log_handler import LOGGER as logger
File "/usr/lib/python2.6/site-packages/dynamic_dynamodb/log_handler.py", line 25, in <module>
import config_handler
File "/usr/lib/python2.6/site-packages/dynamic_dynamodb/config_handler.py", line 4, in <module>
CONFIGURATION = config.get_configuration()
File "/usr/lib/python2.6/site-packages/dynamic_dynamodb/config/__init__.py", line 121, in get_configuration
__check_gsi_rules(configuration)
File "/usr/lib/python2.6/site-packages/dynamic_dynamodb/config/__init__.py", line 318, in __check_gsi_rules
if gsi['sns_message_types']:
KeyError: 'sns_message_types'
2014-03-30T21:14:21.256146861: Failed in starting dynamicdynamodb service
我使用的配置文件基本基于示例:一个表和一个GSI。在文件中,sns在两个配置中都未启用。
你知道哪里有问题吗?
另一个注意事项是,它实际上也没有像在conf文件中配置的那样记录到/var/logs目录。它正在向配置文件所在的。/logs中写入日志。这几乎就好像它没有正确地读取配置文件。
此错误是由示例配置中的无效设置引起的。您必须取消对sns-message-types行的注释。