gpt4 book ai didi

java - 无法通过 DAX 集群访问 dynamodb 表

转载 作者:行者123 更新时间:2023-11-30 02:21:04 26 4
gpt4 key购买 nike

已在 us-east-1 区域中创建一个集群[集群名称:staging-dax-cluster.ckbrjt.clustercfg.dax.use1.cache.amazonaws.com]。当我尝试使用集群时出现以下异常。

支持的通用库日志记录已弃用。切换到 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”。支持读取和写入操作。请参阅documentation了解详细的 API。

关于java - 无法通过 DAX 集群访问 dynamodb 表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46823189/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com