我有 csv 日志文件,我将其转换为 GeoJSON,ogr2ogr
然后运行sed
以清理 elasticsearch。具体来说:
ogr2ogr -f "GeoJSON" output.json input.csv
sed -i -e '1,4d' -e '$d' output.json # delete first four lines and last line
sed -i '1 i\[' output.json # insert line with '[' at beginning of file
我想在 NiFi 中运行这些命令,但我没有任何运气配置 ExecuteProcess。