Every day my job runs and load the data in Hive table, its partition by 'date' column, it represents the daily run. If any day my job fails to create a new partition column (2022-01-03) it should alert me via email. Can anyone give a solution to this problem?
show partitions mytable;
2022-01-01
2022-01-02
2022-01-04
if I run the script, it makes sure the current date(2022-01-24) is present in HDFS path, if not it alerts a message missing to email id