I am currently working on a project using Hadoop DFS.
I notice there is no search or find command in Hadoop Shell. Is there a way to search and find a file (e.g. testfile.doc) in Hadoop DFS?
Does Hadoop support file content search? If so, how to do it? For example, I have many Word Doc files stored in HDFS, I want to list which files have the words "computer science" in them.
What about in other Distributed File Systems? Is file content search a soft spot of distributed file systems?
hdfs dfs -ls -R / | grep [search_term]
.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With