yangyan-osx:~ yangyan$ ls -l /Desktop/sample.csv
ls: /Desktop/sample.csv: No such file or directory
yangyan-osx:~ yangyan$ ls -ld /Desktop
ls: /Desktop: No such file or directory
You have configured Logstash to read /Desktop/sample.csv but there is no such file (as the command above proves). The actual filename seems to be /Users/yangyan/Desktop/sample.csv or similar, so that's what your Logstash configuration should point to.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.