Import CSV with arrays in MongoDB

How can i import csv with fields and arrays? mongoimport –db name –collection users –type=csv –file out.csv –fields email.verificationTokens.0.address,email.verificationTokens.0.when Now in DB “email” : { “verificationTokens” : { { “address” : “mail”, “when” : “” } } } I need: “email” : { “verificationTokens” : [ { “address” : “mail”, “when” : “” } ]

rsyslog template stop ignored

I try to configure get my template for remote logging working but the stop statement is ignored and everiting is logged duplicate in the syslog and in my generated file %programname%.log. I want the incoming messages only logged in %programname%.log $template remote-logs,”/media/jarne/Data/log/%FROMHOST%/%programname%.log”, stop :fromhost,isequal,”ZABBIX” stop *.* ?remote-logs I have also tried: *.* ?remote-logs & stop…

Spark SQL throws an connection exception error?

I have installed Apache Hadoop,spark,hive(meta store as embedded derby) and Scala on a Ubuntu server and configured it individually.Whenever i try to run spark-sql it throws up a error stating 19/12/12 11:11:02 INFO DataNucleus.Datastore: The class “org.apache.hadoop.hive.metastore.model.MResourceUri” is tagged as “embedded-only” so does not have its own datastore table. Exception in thread “main” java.lang.RuntimeException: java.net.ConnectException:…