What do I do if the "OTSUnsupportOperation" error message is returned when I use Tablestore SDK for Java?
Updated at:
Problem description
This error occurs when you call syncClient.createTable(request) using Tablestore SDK for Java V4.0.0 or later against an older instance type:
Caused by: [ErrorCode]:OTSUnsupportOperation, [Message]:Unsupported operation: 'CreateTable'.
Possible cause
You use Tablestore SDK for Java V4.0.0 or later to create a data table in an instance of earlier versions.
Solution
Use Tablestore SDK for Java V2.x.x in the Maven project. Add the following content to the dependencies of the pom.xml file:
<dependency>
<groupId>com.aliyun.openservices</groupId>
<artifactId>ots-public</artifactId>
<version>2.2.5</version>
</dependency>
Is this page helpful?