在us-east-1地区创建了一个集群[cluster name : staging-dax-cluster.ckbrjt.clustercfg.dax.use1.cache.amazonaws.com]
。当我尝试使用群集时,出现以下异常。
支持的公用lib日志记录已弃用。切换到slf4j后端。
不再支持Cloud Watch附加程序。使用支持stdOut的附加程序或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)
最佳答案
DAX无法识别用于管理表的DynamoDB操作,在您的情况下为“ describeTable”。支持读和写操作。有关详细的API,请参见documentation。