摘要: 1. 查看集群资源信息 hdfs dfsadmin -report 2. 启动一个mapreduce任务, hadoop jar /opt/hadoop/share/hadoop/tools/lib/hadoop-streaming-3.0.0-alpha2.jar -input /test -ou 阅读全文
posted @ 2017-02-13 15:22 jackchen007 阅读(1318) 评论(0) 推荐(0)
摘要: 前提是安装ansible 配置源 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo yum install -y ansible 1. ssh首次链接出现yes/no提示 需要执行一遍ssh,破 阅读全文
posted @ 2017-02-09 11:32 jackchen007 阅读(247) 评论(0) 推荐(0)
摘要: 前提是,可以ssh无秘钥过去,但是使用ansible就报这个错误, 正在找造成的原因及解决方法 第一步, 明白了,,如何已经打通ssh无秘钥后,就不能再 hosts中加入ansible_ssh_pass= 这个参数了,不然,ansible带着这个走,有点搞不明白 遇到另外一个问题, "changed 阅读全文
posted @ 2017-02-08 17:45 jackchen007 阅读(527) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/u010499619/article/details/52886872 阅读全文
posted @ 2017-02-07 17:47 jackchen007 阅读(2485) 评论(0) 推荐(0)
摘要: 参考文献: http://www.linuxidc.com/Linux/2016-12/138111.htm 附加 这个 include_vars 变量,可以 动态分别环境或者其他条件- hosts: all tasks: - include_vars: "os_{{ansible_distribu 阅读全文
posted @ 2017-02-07 15:45 jackchen007 阅读(2759) 评论(0) 推荐(0)
摘要: 推荐文献: 表述的很不错, http://www.mamicode.com/info-detail-1428476.html 附加参考: http://laowafang.blog.51cto.com/251518/1418471/ http://blog.csdn.net/kellyseeme/a 阅读全文
posted @ 2017-02-07 14:46 jackchen007 阅读(244) 评论(0) 推荐(0)
摘要: hostvars 可以让你调用其他host的变量和facts, 即使你没有在这个机器上执行过playbook, 你仍然可以访问变量, 但是不能访问facts. 例如: {{ hostvars['test.example.com']['ansible_distribution'] }} group_n 阅读全文
posted @ 2017-02-07 13:46 jackchen007 阅读(1017) 评论(0) 推荐(0)
摘要: 参考文献: http://blog.csdn.net/kellyseeme/article/details/50574340 阅读全文
posted @ 2017-02-07 10:30 jackchen007 阅读(626) 评论(0) 推荐(0)
摘要: 参考文献: http://www.th7.cn/db/mysql/201405/51681.shtml 阅读全文
posted @ 2017-02-07 10:28 jackchen007 阅读(256) 评论(0) 推荐(0)
摘要: 建议参考: http://www.cnblogs.com/jackchen001/p/6514018.html 这个代码清晰,效果佳! 参考链接: http://www.cnblogs.com/caoguo/p/5351127.html 备注下,其实 不需要执行 rsync_key2.yml 执行a 阅读全文
posted @ 2017-02-07 10:15 jackchen007 阅读(3609) 评论(0) 推荐(0)