2
저는 Aerospike로 새 프로젝트를 시작했으며 MapOperation
을 테스트하려고했습니다. 하지만 내 모든 테스트는 같은 오류로 실패합니다. 여기 Aerospike 맵 작업이 실패했습니다.
IAerospikeClient client = new AerospikeClientProvider(config).get();
Key key = new Key("test", "other", "other:1");
client.delete(client.getWritePolicyDefault(), key);
Map<Value,Value> inputMap = new HashMap<Value,Value>();
inputMap.put(Value.get(1), Value.get(55));
inputMap.put(Value.get(2), Value.get(33));
// Write values to empty map.
Record record = client.operate(client.getWritePolicyDefault(), key,
MapOperation.putItems(MapPolicy.Default, "mapbin", inputMap));
의 예입니다 그리고 이것은 오류
com.aerospike.client.AerospikeException: Error Code 4: Parameter error
at com.aerospike.client.command.ReadCommand.parseResult(ReadCommand.java:121)
at com.aerospike.client.command.SyncCommand.execute(SyncCommand.java:57)
at com.aerospike.client.AerospikeClient.operate(AerospikeClient.java:697)
at de.ascendro.f4m.server.AerospikeDaoTest.operateMapPut(AerospikeDaoTest.java:207)
내가 Aerospike 3.8.2.3 및 Aerospike 자바 클라이언트를 사용하고 있습니다 3.2.4 내가 Aerospike 또는 특정 설정이 필요하십니까 클라이언트가 MapOperation
을 실행 하시겠습니까? 내가 잘못하고있는 것이 있습니까?