1.crontab 任务调度
1.1 crontab 常用命令
• 查看状态 service crond status
• 停止状态: service crond stop
• 启动状态: service crond start
• 编辑 crontab 定时任务 crontab –e
• 查询 crontab 任务 crontab –l
• 删除当前用户所有的 crontab 任务 crontab –r
说明:上面的命令不要去粘贴复制,在执行当中是不生效的。
1.2 编写 crontab 调度
• 进入编写 crontab 调度
crontab –e
• 实现每分钟执行一次
* * * * * source /etc/profile; /opt/module/shell/hdfstohive.sh
1.3 查看 crontab
crontab –l