{"id":3802,"date":"2020-09-22T17:38:04","date_gmt":"2020-09-22T09:38:04","guid":{"rendered":"https:\/\/nj.transwarp.cn:8180\/?p=3802"},"modified":"2026-03-13T17:45:57","modified_gmt":"2026-03-13T09:45:57","slug":"tdh6-0%e7%89%88%e6%9c%ac%e5%a6%82%e4%bd%95%e4%bf%ae%e6%94%b9hdfs%e4%b8%addfs-data-transfer-protection%e5%8f%82%e6%95%b0%e9%bb%98%e8%ae%a4%e5%80%bc","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=3802","title":{"rendered":"TDH6.0\u7248\u672c\u5982\u4f55\u4fee\u6539hdfs\u4e2ddfs.data.transfer.protection\u53c2\u6570\u9ed8\u8ba4\u503c"},"content":{"rendered":"<h3>\u6982\u8981\u63cf\u8ff0<\/h3>\n<hr \/>\n<p>\u4f7f\u7528\u987b\u77e5\uff1a<br \/>\n1.\u672c\u6587\u6863\u9002\u7528\u4e8eTDH6.0\u7248\u672c\u4ee5\u53caTDH5.2.3\u4ee5\u4e0b\u7248\u672c<br \/>\n2.HDFS\u4e2d\u5f00\u542f\u5b89\u5168\u540e\uff0cdfs.data.transfer.protection\u53c2\u6570\u7684\u9ed8\u8ba4\u503c\u88ab\u8bbe\u7f6e\u4e3aintegrity\uff0c\u5728\u9ad8\u7248\u672c\u4e2d\u5df2\u4fee\u6539\u4e3a\u9ed8\u8ba4\u503c\u4e3aauthentication<\/p>\n<h3>\u8be6\u7ec6\u8bf4\u660e<\/h3>\n<hr \/>\n<h4>\u53c2\u6570\u8bf4\u660e<\/h4>\n<p>1.\u76f8\u5bf9\u4e8e\u9ed8\u8ba4\u503cauthentication\uff0c\u8bbe\u7f6e\u4e3aintegrity\u65f6\uff0cclient\u5411datanode\u4f20\u8f93\u6570\u636e\u65f6\uff0c\u4e0d\u4ec5\u8981\u505a\u8ba4\u8bc1\uff0c\u800c\u4e14\u8981\u5bf9\u4f20\u8f93\u7684\u6570\u636e\u505a\u5b8c\u6574\u6027\u6821\u9a8c\u3002\u4f1a\u5bf9\u6027\u80fd\u9020\u6210\u8f83\u5927\u7684\u5f71\u54cd\u3002<br \/>\n2.\u76ee\u524d\uff0c\u8be5\u53c2\u6570\u88ab\u5199\u6b7b\u5728\u6a21\u677f\u4e2d\u3002manager\u7684\u914d\u7f6e\u9875\u9762\u65e0\u6cd5\u4fee\u6539\uff0c\u800c\u901a\u8fc7manager\u6dfb\u52a0\u81ea\u5b9a\u4e49\u914d\u7f6e\u7684\u8bdd\uff0c\u8be5\u53c2\u6570\u5e76\u4e0d\u4f1a\u88ab\u8986\u76d6\uff0c\u800c\u662f\u4f1a\u5728hdfs-site.xml\u4e2d\u51fa\u73b0\u4e24\u6b21<\/p>\n<h4>\u53c2\u6570\u4fee\u6539\u8bf4\u660e<\/h4>\n<h5>1. \u4fee\u6539manager\u6a21\u677f<\/h5>\n<p>\u6d89\u53ca\u6587\u4ef6\uff1amanager\u8282\u70b9\u7684\/var\/lib\/transwarp-manager\/master\/content\/meta\/services\/HDFS\/transwarp-6.0.2-final\/templates\/hdfs-site.xml.ftl<br \/>\ntranswarp-6.0.2-final \u5bf9\u5e94\u7684\u662f\u96c6\u7fa4\u7248\u672c\uff0c\u4ee5\u5b9e\u9645\u4e3a\u51c6\u3002<\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u6a21\u677f\u6587\u4ef6\u4e2d dfs.data.transfer.protection \u7684\u9ed8\u8ba4\u503c\u662f integrity\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/08\/image-1597310707005.png\" alt=\"file\" \/><\/p>\n<p>\u5c06\u9ed8\u8ba4\u503c\u4fee\u6539\u6210 authentication<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/08\/image-1597310833247.png\" alt=\"file\" \/><\/p>\n<h5>2. \u91cd\u542fmanager\u751f\u6548<\/h5>\n<pre><code class=\"language-shell\">\/etc\/init.d\/transwarp-manager restart<\/code><\/pre>\n<h5>3. hdfs\u9875\u9762\u6dfb\u52a0\u81ea\u5b9a\u4e49\u53c2\u6570<\/h5>\n<pre><code class=\"language-shell\">\u5c5e\u6027\uff1adfs.data.transfer.protection\n\u503c\uff1aauthentication\n\u914d\u7f6e\u6587\u4ef6\uff1ahdfs-site.xml<\/code><\/pre>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/08\/image-1597310947315.png\" alt=\"file\" \/><\/p>\n<h5>4. \u914d\u7f6e\u670d\u52a1\u91cd\u542fhdfs\u751f\u6548<\/h5>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/08\/image-1597311005518.png\" alt=\"file\" \/><\/p>\n<h5>5. \u67e5\u770b\/etc\/hdfs1\/conf\/hdfs-site.xml\u6587\u4ef6\u914d\u7f6e\u5df2\u751f\u6548<\/h5>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/08\/image-1597311367183.png\" alt=\"file\" \/><\/p>\n<h5>6. \u4e0b\u8f7d\u6700\u65b0\u7684\u5ba2\u6237\u7aef\u6216\u8005\u8fdb\u5165\u5230hdfs\u7684pod\u5185\u67e5\u770b\u8be5\u53c2\u6570\u7684\u503c\uff0c\u5df2\u751f\u6548<\/h5>\n<pre><code class=\"language-shell\">hdfs getconf -confKey  dfs.data.transfer.protection<\/code><\/pre>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/08\/image-1597311454444.png\" alt=\"file\" \/><\/p>\n<blockquote>\n<p>hdfs\u4fee\u6539\u8be5\u53c2\u6570\u540e\uff0c\u5efa\u8bae\u5c06inceptor\u8fd9\u4e9b\u5ba2\u6237\u7aef\u7ec4\u4ef6\u4e5f\u4e00\u8d77\u914d\u7f6e\u670d\u52a1\u91cd\u542f\uff0c\u786e\u4fdd\u83b7\u53d6\u5230\u6700\u65b0\u7684hdfs\u914d\u7f6e\u3002<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u63cf\u8ff0 \u4f7f\u7528\u987b\u77e5\uff1a 1.\u672c\u6587\u6863\u9002\u7528\u4e8eTDH6.0\u7248\u672c\u4ee5\u53caTDH5.2.3\u4ee5\u4e0b\u7248\u672c 2.HDFS\u4e2d\u5f00\u542f\u5b89\u5168\u540e\uff0c ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=3802\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3802","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/3802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3802"}],"version-history":[{"count":4,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/3802\/revisions"}],"predecessor-version":[{"id":18132,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/3802\/revisions\/18132"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}