目的:安装Logstash,并且导入Movielens的测试数据集
#下载与ES相同版本号的logstash,(7.1.0),并解压到相应目录
#修改logstash.conf文件
#path修改为,你实际的movies.csv路径
input {
file {
path => "YOUR_FULL_PATH_OF_movies.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
操纵
bin/logstash -f /YOUR_PATH_of_logstash.conf
相关阅读
- 下载最MovieLens最小测试数据集:https://grouplens.org/datasets/movielens/
- Logstash下载:https://www.elastic.co/cn/downloads/logstash
- Logstash参考文档:https://www.elastic.co/guide/en/logstash/current/index.html
网友评论