Error while loading data using aerospike-loader

query

#1

I am trying to load data into aerospike with the pages.json file as follows: { “version” : “2.0”, “dsv_config”: { “delimiter”: “,” , “n_columns_datafile”: 4, “ignore_first_line”: false}, “mappings”:[{ “key”: {“column_position”:2, “type”: “string”}, “set”: {“column_position”:1, “type”: “string”}, “binlist”: [ {“name”: “number_of_requests”, “value”: {“column_position”: 3, “type” : “integer”}}, {“name”: “size_of_the_content_returned”, “value”: {“column_position”: 4, “type” : “integer”}} ]}] }

Using the aerospike-loader command: ./run_loader -h localhost -c ./wiki_data/pages.json ./wiki_data/

I am facing the following error: INFO AerospikeLoad :119 - Aerospike loader started INFO AerospikeLoad :205 - Number of data files:1 ERROR Parser :243 - “bin_list” Key is missing in mapping. Mapping: {“set”:{“column_position”:1,“type”:“string”},“binlist”:[{“name”:“number_of_requests”,“value”:{“column_position”:3,“type”:“integer”}},{“name”:“size_of_the_content_returned”,“value”:{“column_position”:4,“type”:“integer”}}],“key”:{“column_position”:2,“type”:“string”}} ERROR Parser :181 - Error in parsing mappingdef: {“set”:{“column_position”:1,“type”:“string”},“binlist”:[{“name”:“number_of_requests”,“value”:{“column_position”:3,“type”:“integer”}},{“name”:“size_of_the_content_returned”,“value”:{“column_position”:4,“type”:“integer”}}],“key”:{“column_position”:2,“type”:“string”}} ERROR AerospikeLoad :213 - java.lang.Exception: Config file parsing Error INFO AerospikeLoad :220 - Aerospike loader completed INFO AerospikeLoad :227 - Loader completed in 0.122sec [root@localhost aerospike-loader]# ./run_loader -h localhost -c ./wiki_data/pages.json ./wiki_data/ INFO AerospikeLoad :119 - Aerospike loader started INFO AerospikeLoad :205 - Number of data files:4 ERROR Parser :243 - “bin_list” Key is missing in mapping. Mapping: {“set”:{“column_position”:1,“type”:“string”},“binlist”:[{“name”:“number_of_requests”,“value”:{“column_position”:3,“type”:“integer”}},{“name”:“size_of_the_content_returned”,“value”:{“column_position”:4,“type”:“integer”}}],“key”:{“column_position”:2,“type”:“string”}} ERROR Parser :181 - Error in parsing mappingdef: {“set”:{“column_position”:1,“type”:“string”},“binlist”:[{“name”:“number_of_requests”,“value”:{“column_position”:3,“type”:“integer”}},{“name”:“size_of_the_content_returned”,“value”:{“column_position”:4,“type”:“integer”}}],“key”:{“column_position”:2,“type”:“string”}} ERROR AerospikeLoad :213 - java.lang.Exception: Config file parsing Error INFO AerospikeLoad :220 - Aerospike loader completed INFO AerospikeLoad :227 - Loader completed in 0.130sec


#2

Also at: https://stackoverflow.com/questions/44750811/missing-key-in-mapping

Wondering if “binlist” in docs should be “bin_list”.

https://github.com/aerospike/aerospike-loader/blob/master/src/main/java/com/aerospike/load/Constants.java

public static final String BINLIST = "bin_list";