我已经为我的传感器历史定义了架构class Point
。
static class Point {
@RowKey Date timestamp;
String status;
double reading;
}
我在我的代码中以这种方式引用它:
// Creating a TimeSeries (Only obtain the specified TimeSeries if it already exists)
TimeSeries<Point> ts = store.putTimeSeries("point01", Point.class);
我能够毫无错误地编译我的代码。但是当我试图让它运行时,我得到了错误60016: DS_DS_CHANGE_SCHEMA_DISABLE
。
-bash-4.2$ java test/Sample8 239.0.0.1 31999 defaultCluster admin admin
Exception in thread "main" com.toshiba.mwcloud.gs.common.GSStatementException: [60016:DS_DS_CHANGE_SCHEMA_DISABLE] (address=192.168.1.16:10001, partitionId=19)
at com.toshiba.mwcloud.gs.subnet.NodeConnection.executeStatementDirect(NodeConnection.java:506)
at com.toshiba.mwcloud.gs.subnet.NodeConnection.executeStatement(NodeConnection.java:323)
at com.toshiba.mwcloud.gs.subnet.GridStoreChannel.executeStatement(GridStoreChannel.java:1696)
at com.toshiba.mwcloud.gs.subnet.SubnetGridStore.executeStatement(SubnetGridStore.java:209)
at com.toshiba.mwcloud.gs.subnet.SubnetGridStore.putContainer(SubnetGridStore.java:1014)
at com.toshiba.mwcloud.gs.subnet.SubnetGridStore.putTimeSeries(SubnetGridStore.java:1061)
at com.toshiba.mwcloud.gs.subnet.SubnetGridStore.putTimeSeries(SubnetGridStore.java:100)
at com.toshiba.mwcloud.gs.partitioned.PartStore.putTimeSeries(PartStore.java:189)
at test.Sample8.main(Sample8.java:41)
因此,我对照 GRIDDB 错误代码列表 [https://www.toshiba-sol.co.jp/en/pro/griddb/docs-en/v4_3_2/GridDB_ErrorCodes.html] 对此进行了检查,并得到了该操作的建议采取:
更改架构时:将输入可修改设置为 true。
如何将输入设置为可修改?我在哪里设置它,就像它与服务器配置有什么关系?