缺少映射键



尝试使用Aerospike Loader上传.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"}}]}]}

想知道" binlist"是否应该是" bin_list"。查看代码:公共静态最终字符串binlist =" bin_list";

相关内容

  • 没有找到相关文章

最新更新