尝试使用Aerospike加载程序上传.csv文件,但我一直收到此错误。我想弄清楚我错过了什么。
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
我的config.json文件如下:
{ "version" : "2.0", "dsv_config": {
"delimiter": "," ,
"n_columns_datafile": 4,
"header_exist": 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"}}]}]}
答案 0 :(得分:1)
想知道“binlist”应该是“bin_list”。查看代码:public static final String BINLIST =“bin_list”;