在此链接中,我们可以将 KairosDB 中的数据导入为: 此链接
>bin/kairosdb.sh import -f export.txt
If you happened to compress the export you can pipe it back into the system like this:
>gzip -dc export.gz | bin/kairosdb.sh import
我不确定 export.txt 文件的格式应该是什么
我有一个文件(export.txt),例如:
Building_id,building_type,meter_type,unit,timestamp,value
1,Elementary School,temperature,F,1359695700,34.85
2,Park,temperature,F,1359695700,0
3,Industrial,temperature,F,1359695700,0.07
4,Recreation Center,temperature,F,1359695700,0
5,Park,temperature,F,1359695700,2.2
6,Community Center,temperature,F,1359695700,31.41
7,Office,temperature,F,1359695700,0
8,Elementary School,temperature,F,1359695700,10.88
9,Elementary School,temperature,F,1359695700,42.27
.
.
我想将这些数据批量插入kairosDB,我该怎么做。