开发者社区> 问答> 正文

通过TimelineStore的prepareTables方法创建表的时候,报这个错误。

通过TimelineStore的prepareTables方法创建表的时候,报这个错误。控制台查看表是创建成功的。麻烦看看是什么问题

tablestore版本是5.0.0

Caused by: com.alicloud.openservices.tablestore.timeline.TimelineException: OTSParameterInvalid at com.alicloud.openservices.tablestore.timeline.utils.Utils.convertException(Utils.java:158) at com.alicloud.openservices.tablestore.timeline.core.TimelineStoreImpl.prepareTables(TimelineStoreImpl.java:157) at com.huizhi.im.tablestore.impl.TimeLineServiceImpl.generateTimelineStore(TimeLineServiceImpl.java:113) at com.huizhi.im.tablestore.impl.TimeLineServiceImpl.init(TimeLineServiceImpl.java:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:363) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:307) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136) ... 18 common frames omitted Caused by: com.alicloud.openservices.tablestore.TableStoreException: Operation is denied as table TTL exists. at com.alicloud.openservices.tablestore.core.CallbackImpledFuture.getResultWithoutLock(CallbackImpledFuture.java:107) at com.alicloud.openservices.tablestore.core.CallbackImpledFuture.get(CallbackImpledFuture.java:89) at com.alicloud.openservices.tablestore.SyncClient.waitForFuture(SyncClient.java:428) at com.alicloud.openservices.tablestore.SyncClient.createSearchIndex(SyncClient.java:351) at com.alicloud.openservices.tablestore.timeline.core.TimelineStoreImpl.prepareTables(TimelineStoreImpl.java:155) ... 27 common frames omitted

本问题来自阿里云开发者社区的【11大垂直技术领域开发者社群】。https://developer.aliyun.com/article/706511 点击链接欢迎加入感兴趣的技术领域群。

展开
收起
初商 2019-09-19 20:07:15 3636 0
1 条回答
写回答
取消 提交回答
  • 阿里云数据库表格存储 Tablestore 解决方案架构师

    是否创建了多元索引,多元索引与TTL不能共存的。

    2020-12-24 16:58:37
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Spark SQL: Past, Present and Future 立即下载
Spark SQL:Past Present &Future 立即下载
Spark SQL最佳实践 立即下载