Grep across multiple files in Hadoop Filesystem

前端 未结 5 811
时光说笑
时光说笑 2020-12-30 02:01

I am working with Hadoop and I need to find which of ~100 files in my Hadoop filesystem contain a certain string.

I can see the files I wish to search like this:

5条回答
  •  遥遥无期
    2020-12-30 02:26

    To find all files with any extension recursively inside hdfs location:

    hadoop fs -find  hdfs_loc_path  -name ".log"
    

提交回复
热议问题