Lin Ma
Lin Ma

Reputation: 10139

show hadoop files on HDFS only created on a specific day

I want to show hadoop files on HDFS under a specific folder which created on a specific day, is there a command/option to do this?

Thanks in advance, Lin

Upvotes: 0

Views: 1227

Answers (1)

luoluo
luoluo

Reputation: 5533

As far as I know, hadoop command won't support this.

You can write a script to achieve this, which is not a good implementation.

My suggestions:

  1. Organize your file in the way more convenient to be used. Say in your case, make a time partition would be better.
  2. If you want to make data analysis easier, use some database based on hdfs like hive. hive support partition and sql like query and insert.

more about hive and hive partitions:
https://hive.apache.org/ https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-PartitionedTables

Upvotes: 1

Related Questions