无法通过DAX群集访问dynamodb表

时间:2017-10-19 05:12:28

标签: java amazon-web-services amazon-dynamodb-dax

在us-east-1地区创建了一个群集[cluster name : staging-dax-cluster.ckbrjt.clustercfg.dax.use1.cache.amazonaws.com]。当我尝试使用群集获得以下异常时。

不推荐使用支持的常见lib日志记录。切换到slf4j后端。 不再支持Cloud Watch appender。使用stdOut appender或SLF4J支持。

Exception in thread "main" com.amazon.dax.client.exceptions.DaxServiceException: NotImplementedException
    at com.amazon.dax.client.dynamodbv2.ExceptionTranslator.createValidationException(ExceptionTranslator.java:91)
    at com.amazon.dax.client.dynamodbv2.ExceptionTranslator.translateException(ExceptionTranslator.java:80)
    at com.amazon.dax.client.dynamodbv2.DaxClient.handleException(DaxClient.java:1898)
    at com.amazon.dax.client.dynamodbv2.DaxClient.describeTable(DaxClient.java:610)
    at com.amazon.dax.client.dynamodbv2.ClusterDaxClient$21.call(ClusterDaxClient.java:328)
    at com.amazon.dax.client.dynamodbv2.ClusterDaxClient$21.call(ClusterDaxClient.java:325)
    at com.amazon.dax.client.dynamodbv2.ClusterDaxClient$RetryHandler.makeRequestWithRetries(ClusterDaxClient.java:635)
    at com.amazon.dax.client.dynamodbv2.ClusterDaxClient.makeReadRequestWithRetries(ClusterDaxClient.java:604)
    at com.amazon.dax.client.dynamodbv2.ClusterDaxClient.describeTable(ClusterDaxClient.java:325)
    at com.amazonaws.services.dynamodbv2.util.TableHelper.verifyTableExists(TableHelper.java:51)
    at com.amazonaws.services.dynamodbv2.util.TableHelper.verifyOrCreateTable(TableHelper.java:117)
    at com.amazonaws.services.dynamodbv2.transactions.TransactionManager.verifyOrCreateTransactionTable(TransactionManager.java:180)
    at com.usermind.integrations.api.dao.DynamoDbPersistenceContext.verifyOrCreateTransactionTables(DynamoDbPersistenceContext.java:151)
    at com.usermind.integrations.api.dao.DynamoDbPersistenceContext.<init>(DynamoDbPersistenceContext.java:138)
    at com.usermind.integrations.api.App.initPersistenceContext(App.java:143)
    at com.usermind.integrations.api.AbstractSparkApp.run(AbstractSparkApp.java:17)
    at com.usermind.integrations.api.App.main(App.java:93)

1 个答案:

答案 0 :(得分:2)

DAX不会识别用于管理表的DynamoDB操作,在您的情况下&#34; describeTable&#34;。支持读写操作。有关详细的API,请参阅documentation