I am working on Aerospike python client. I am inserting data into the cluster using aerospike loader. Now I need to see whether the records were stored on the cluster successfully.
The command being used:
command = 'java -cp /aerospike-loader/aerospike-load-2.2-jar-with-dependencies.jar ' \
'-Dlog4j.configuration=file:/aerospike-loader/log4j.properties ' \
'com.aerospike.load.AerospikeLoad -h %s -p %d -n %s -c %s %s'
command_str = command % (self.host, self.port, self.namespace, tmp_json_file.name, data_file_path)
the file tmp_json_file
contains config file content exactly similar to this: https://www.aerospike.com/docs/tools/asloader/examples.html
Now how do I check whether the data was transferred successfully? I tried using client.exists(key)
, but the meta
field returns None
as writePolicy=true
was not set. How to set that using python client any example? Or any other way to check that the records were successfully inserted?