如何以root使用者批量檢視各個節點的其他使用者的定時任務,在叢集運維中很常用:
ansible all -m shell -a " su hdfs -c 'crontab -l ' "
此外從目前結點批量拷貝到各個節點檔案 :
ansible hbase -m copy -a "src=/data/download/add_sit_hosts.sh backup=yes dest=/data/tmp"
掌握這兩個,大資料開發運維不求人.
如何以root使用者批量檢視各個節點的其他使用者的定時任務,在叢集運維中很常用:
ansible all -m shell -a " su hdfs -c 'crontab -l ' "
此外從目前結點批量拷貝到各個節點檔案 :
ansible hbase -m copy -a "src=/data/download/add_sit_hosts.sh backup=yes dest=/data/tmp"
掌握這兩個,大資料開發運維不求人.