{"id":152148,"date":"2019-08-09T08:45:02","date_gmt":"2019-08-09T00:45:02","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=152148"},"modified":"2019-07-28T09:46:25","modified_gmt":"2019-07-28T01:46:25","slug":"clustershell-useful","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/clustershell-useful.html","title":{"rendered":"ClusterShell\u5de5\u5177\u7684\u4f7f\u7528"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | ClusterShell \u662f\u4e00\u4e2a\u4e8b\u4ef6\u9a71\u52a8\u7684\u5f00\u6e90 Python \u5e93\uff0c\u65e8\u5728\u5728\u670d\u52a1\u5668\u573a\u6216\u5927\u578b Linux \u96c6\u7fa4\u4e0a\u5e76\u884c\u8fd0\u884c\u672c\u5730\u6216\u8fdc\u7a0b\u547d\u4ee4\u3002\uff08clush \u5373 ClusterShell\uff09\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n ClusterShell<\/strong><\/div>\n \u5b83\u5c06\u5904\u7406\u5728 HPC \u96c6\u7fa4\u4e0a\u9047\u5230\u7684\u5e38\u89c1\u95ee\u9898\uff0c\u4f8b\u5982\u5728\u8282\u70b9\u7ec4\u4e0a\u64cd\u4f5c\uff0c\u4f7f\u7528\u4f18\u5316\u8fc7\u7684\u6267\u884c\u7b97\u6cd5\u8fd0\u884c\u5206\u5e03\u5f0f\u547d\u4ee4\uff0c\u4ee5\u53ca\u6536\u96c6\u7ed3\u679c\u548c\u5408\u5e76\u76f8\u540c\u7684\u8f93\u51fa\uff0c\u6216\u68c0\u7d22\u8fd4\u56de\u4ee3\u7801\u3002<\/p>\n ClusterShell \u53ef\u4ee5\u5229\u7528\u5df2\u5b89\u88c5\u5728\u7cfb\u7edf\u4e0a\u7684\u73b0\u6709\u8fdc\u7a0b shell \u8bbe\u65bd\uff0c\u5982 SSH\u3002<\/p>\n ClusterShell \u7684\u4e3b\u8981\u76ee\u6807\u662f\u901a\u8fc7\u4e3a\u5f00\u53d1\u4eba\u5458\u63d0\u4f9b\u8f7b\u91cf\u7ea7\u3001\u4f46\u53ef\u6269\u5c55\u7684 Python API \u6765\u6539\u8fdb\u9ad8\u6027\u80fd\u96c6\u7fa4\u7684\u7ba1\u7406\u3002\u5b83\u8fd8\u63d0\u4f9b\u4e86 clush\u3001clubak <\/span>\u548c cluset\/nodeset<\/span> \u7b49\u65b9\u4fbf\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4ee5\u8ba9\u4f20\u7edf\u7684 shell \u811a\u672c\u5229\u7528\u8fd9\u4e2a\u5e93\u7684\u4e00\u4e9b\u529f\u80fd\u3002<\/p>\n ClusterShell \u662f\u7528 Python \u7f16\u5199\u7684\uff0c\u5b83\u9700\u8981 Python\uff08v2.6+ \u6216 v3.4+\uff09\u624d\u80fd\u5728\u4f60\u7684\u7cfb\u7edf\u4e0a\u8fd0\u884c\u3002<\/p>\n ClusterShell \u5305\u5728\u5927\u591a\u6570\u53d1\u884c\u7248\u7684\u5b98\u65b9\u5305\u7ba1\u7406\u5668\u4e2d\u90fd\u53ef\u7528\u3002\u56e0\u6b64\uff0c\u4f7f\u7528\u53d1\u884c\u7248\u5305\u7ba1\u7406\u5668\u5de5\u5177\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n \u5bf9\u4e8e Fedora \u7cfb\u7edf\uff0c\u4f7f\u7528DNF<\/span> \u547d\u4ee4\u6765\u5b89\u88c5 clustershell\u3002<\/p>\n \u5982\u679c\u7cfb\u7edf\u9ed8\u8ba4\u662f Python 2\uff0c\u8fd9\u4f1a\u5b89\u88c5 Python 2 \u6a21\u5757\u548c\u5de5\u5177\uff0c\u53ef\u4ee5\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 Python 3 \u5f00\u53d1\u5305\u3002<\/p>\n \u5728\u6267\u884c clustershell \u5b89\u88c5\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u4f60\u5df2\u5728\u7cfb\u7edf\u4e0a\u542f\u7528 EPEL \u5b58\u50a8\u5e93\u3002<\/p>\n \u5bf9\u4e8e RHEL\/CentOS \u7cfb\u7edf\uff0c\u4f7f\u7528 YUM \u547d\u4ee4 \u6765\u5b89\u88c5 clustershell<\/span>\u3002<\/p>\n \u5982\u679c\u7cfb\u7edf\u9ed8\u8ba4\u662f Python 2\uff0c\u8fd9\u4f1a\u5b89\u88c5 Python 2 \u6a21\u5757\u548c\u5de5\u5177\uff0c\u53ef\u4ee5\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 Python 3 \u5f00\u53d1\u5305\u3002<\/p>\n \u5bf9\u4e8e openSUSE Leap \u7cfb\u7edf\uff0c\u4f7f\u7528 Zypper<\/span> \u547d\u4ee4 \u6765\u5b89\u88c5 clustershell\u3002<\/p>\n \u5982\u679c\u7cfb\u7edf\u9ed8\u8ba4\u662f Python 2\uff0c\u8fd9\u4f1a\u5b89\u88c5 Python 2 \u6a21\u5757\u548c\u5de5\u5177\uff0c\u53ef\u4ee5\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 Python 3 \u5f00\u53d1\u5305\u3002<\/p>\n \u5bf9\u4e8e Debian\/Ubuntu \u7cfb\u7edf\uff0c\u4f7f\u7528 APT-GET<\/span> \u547d\u4ee4 \u6216 APT<\/span> \u547d\u4ee4 \u6765\u5b89\u88c5 clustershell\u3002<\/p>\n \u53ef\u4ee5\u4f7f\u7528 PIP \u5b89\u88c5 ClusterShell\uff0c\u56e0\u4e3a\u5b83\u662f\u7528 Python \u7f16\u5199\u7684\u3002<\/p>\n \u5728\u6267\u884c clustershell \u5b89\u88c5\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u4f60\u5df2\u5728\u7cfb\u7edf\u4e0a\u542f\u7528\u4e86 Python \u548c PIP\u3002<\/p>\n \u4e0e\u5176\u4ed6\u5b9e\u7528\u7a0b\u5e8f\uff08\u5982 pssh<\/span> \u548cdsh<\/span> \uff09\u76f8\u6bd4\uff0c\u5b83\u662f\u76f4\u63a5\u4e86\u5f53\u7684\u4f18\u79c0\u5de5\u5177\u3002\u5b83\u6709\u5f88\u591a\u9009\u9879\u53ef\u4ee5\u5728\u8fdc\u7a0b\u5e76\u884c\u6267\u884c\u3002<\/p>\n \u5728\u5f00\u59cb\u4f7f\u7528 clustershell \u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u4f60\u5df2\u542f\u7528\u7cfb\u7edf\u4e0a\u7684\u65e0\u5bc6\u7801\u767b\u5f55\u3002<\/p>\n \u4ee5\u4e0b\u914d\u7f6e\u6587\u4ef6\u5b9a\u4e49\u4e86\u7cfb\u7edf\u8303\u56f4\u7684\u9ed8\u8ba4\u503c\u3002\u4f60\u4e0d\u9700\u8981\u4fee\u6539\u8fd9\u91cc\u7684\u4efb\u4f55\u4e1c\u897f\u3002<\/p>\n \u5982\u679c\u4f60\u60f3\u8981\u521b\u5efa\u4e00\u4e2a\u670d\u52a1\u5668\u7ec4\uff0c\u90a3\u4e5f\u53ef\u4ee5\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u6709\u4e00\u4e9b\u793a\u4f8b\uff0c\u8bf7\u6839\u636e\u4f60\u7684\u8981\u6c42\u6267\u884c\u76f8\u540c\u64cd\u4f5c\u3002<\/p>\n \u53ea\u9700\u6309\u4ee5\u4e0b\u5217\u683c\u5f0f\u8fd0\u884c clustershell \u547d\u4ee4\u5373\u53ef\u4ece\u7ed9\u5b9a\u8282\u70b9\u83b7\u53d6\u4fe1\u606f\uff1a<\/p>\n \u9009\u9879\uff1a<\/p>\n -w<\/span>: \u4f60\u8981\u8fd0\u884c\u8be5\u547d\u4ee4\u7684\u8282\u70b9\u3002 \u6216\u8005\uff0c\u5982\u679c\u670d\u52a1\u5668\u4f4d\u4e8e\u540c\u4e00 IP \u7cfb\u5217\u4e2d\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u683c\u5f0f\uff1a<\/p>\n clustershell \u5141\u8bb8\u6211\u4eec\u4ee5\u6279\u5904\u7406\u6a21\u5f0f\u8fd0\u884c\u547d\u4ee4\u3002\u4f7f\u7528\u4ee5\u4e0b\u683c\u5f0f\u6765\u5b9e\u73b0\u6b64\u76ee\u7684\uff1a<\/p>\n \u5982\u679c\u8981\u5728\u4e00\u7ec4\u8282\u70b9\u4e0a\u8fd0\u884c\u8be5\u547d\u4ee4\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u683c\u5f0f\uff1a<\/p>\n \u5982\u679c\u8981\u5728\u591a\u4e2a\u8282\u70b9\u7ec4\u4e0a\u8fd0\u884c\u8be5\u547d\u4ee4\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u683c\u5f0f\uff1a<\/p>\n clustershell \u5141\u8bb8\u6211\u4eec\u5c06\u6587\u4ef6\u590d\u5236\u5230\u8fdc\u7a0b\u8ba1\u7b97\u673a\u3002\u5c06\u672c\u5730\u6587\u4ef6\u6216\u76ee\u5f55\u590d\u5236\u5230\u540c\u4e00\u4e2a\u8fdc\u7a0b\u8282\u70b9\uff1a<\/p>\n \u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1\u5b83\uff1a<\/p>\n \u5c06\u672c\u5730\u6587\u4ef6\u6216\u76ee\u5f55\u590d\u5236\u5230\u4e0d\u540c\u4f4d\u7f6e\u7684\u8fdc\u7a0b\u8282\u70b9\uff1a<\/p>\n \u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1\u5b83\uff1a<\/p>\n \u5c06\u6587\u4ef6\u6216\u76ee\u5f55\u4ece\u8fdc\u7a0b\u8282\u70b9\u590d\u5236\u5230\u672c\u5730\u7cfb\u7edf\uff1a<\/p>\n \u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1\u5b83\uff1a<\/p>\n via: https:\/\/www.2daygeek.com\/clustershell-clush-run-commands-on-cluster-nodes-remote-system-in-parallel-linux\/<\/p>\n \u4f5c\u8005\uff1aMagesh Maruthamuthu \u9009\u9898\uff1alujun9972 \u8bd1\u8005\uff1awxy \u6821\u5bf9\uff1awxy<\/p>\n \u672c\u6587\u7531 LCTT \u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd \u8363\u8a89\u63a8\u51fa<\/p>\n","protected":false},"excerpt":{"rendered":" \u5b83\u5c06\u5904\u7406\u5728 HPC \u96c6\u7fa4\u4e0a\u9047\u5230\u7684\u5e38\u89c1\u95ee\u9898\uff0c\u4f8b\u5982\u5728\u8282\u70b9\u7ec4\u4e0a\u64cd\u4f5c\uff0c\u4f7f\u7528\u4f18\u5316\u8fc7\u7684\u6267\u884c\u7b97\u6cd5\u8fd0\u884c\u5206\u5e03\u5f0f\u547d\u4ee4\uff0c\u4ee5\u53ca\u6536\u96c6\u7ed3\u679c […]<\/p>\n","protected":false},"author":63,"featured_media":152161,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-152148","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/152148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=152148"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/152148\/revisions"}],"predecessor-version":[{"id":152179,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/152148\/revisions\/152179"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/152161"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=152148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=152148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=152148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |