How to download the attached csv file in aerospace mode using an aerosik loader?

I converted the JSON file to CSV format and am now loading CSV into Aerospike using an aerosik downloader. I can do this for a simple structure, but how to change the contents of allDatatype.json to load the attached CSV file into Aerospike?

https://github.com/aerospike/aerospike-loader/tree/master/example

Json file

{
"centers" : {
"ER" : {
"admin":{
"users" : {
  "emp1" : {
    "password" : "abcdefgh",
    "username" : "pankaj-roy"
  },
  "emp2" : {
    "password" : "12345678",
    "username" : "niketan-shah"
  }
}
}
}
}
}

FILE CSV

centers.ER.admin.users.emp2.username,centers.ER.admin.users.emp2.password, centers.ER.admin.users.emp1.username,centers.ER.admin.users.emp1.password
niketan-shah,12345678,pankaj-roy,abcdefgh
+4
source share
1 answer

, , , Aerospike, , (, , ). Key-Value. , json Aerospike

Bin=users
Set=creds
Key=(username, "pankaj-roy")
bin=(password, "abcdefgh")
bin=(role, "admin")`

- :

user_key = new Key("users", "creds", username);
user_records = client.get(null, user_key);
console.printf("username:   " + user_records.getValue("username") + "\n");
console.printf("password:   " + user_records.getValue("password") + "\n");
+3

Source: https://habr.com/ru/post/1609072/


All Articles