step to setup corn tab in Unix/Linux
1. Login to UNIX/LINUX system
2. To run job every early morning (00.01 hrs) run crontab -e and add bleow like
$crontab -e
1 0 * * * . /root/.bash_profile; /var/lib/hadoop-hdfs/shekhar/refresh_enrichment_table.sh /var/lib/hadoop-hdfs/shekhar/ > /var/log/spm/refresh_enrichment_table.log
Note: JAVA_HOME and other evn variablea has to be set in /root/.bash_profile and need to source to in corntab command like above line otherwise it will not find env avriables
1. Login to UNIX/LINUX system
2. To run job every early morning (00.01 hrs) run crontab -e and add bleow like
$crontab -e
1 0 * * * . /root/.bash_profile; /var/lib/hadoop-hdfs/shekhar/refresh_enrichment_table.sh /var/lib/hadoop-hdfs/shekhar/ > /var/log/spm/refresh_enrichment_table.log
Note: JAVA_HOME and other evn variablea has to be set in /root/.bash_profile and need to source to in corntab command like above line otherwise it will not find env avriables
No comments:
Post a Comment