Reputation: 137
I want to schedule -mkdir to make directory everyday with the date of the day.
Is there any way to get today's date for the command:
hdfs dfs -mkdir /home/<date>
Upvotes: 1
Views: 1385
Reputation: 18270
Use the linux date
command
hdfs dfs -mkdir /home/`date +%Y%m%d`
Upvotes: 3