The 200 issue of Mokabyte is online (http://www.mokabyte.it). It is the most important Italian web magazine about Java technologies and Agile methodologies. I am really proud to have given a contribution writing several articles (here's one, http://www2.mokabyte.it/cms/article.run?articleId=7TK-XI4-MRI-VMN_7f000001_13046033_40989f48) for it during the period 2006-2013 . I want to congratulate Giovanni Puliti, Francesco Saliola and all the people who made that magazine great. Thanks a lot guys!
Sometimes you would need to export a sample of the data from an InfluxDB table to a CSV file (for example to allow a data scientist to do some offline analysis using a tool like Jupyter, Zeppelin or Spark Notebook). It is possible to perform this operation through the influx command line client. This is the general syntax: sudo /usr/bin/influx -database '<database_name>' -host '<hostname>' -username '<username>' -password '<password>' -execute 'select_statement' -format '<format>' > <file_path>/<file_name>.csv where the format could be csv , json or column . Example: sudo /usr/bin/influx -database 'telegraf' -host 'localhost' -username 'admin' -password '123456789' -execute 'select * from mem' -format 'csv' > /home/googlielmo/influxdb-export/mem-export.csv
Comments
Post a Comment