{"id":1270,"date":"2019-11-05T17:17:19","date_gmt":"2019-11-05T09:17:19","guid":{"rendered":"https:\/\/nj.transwarp.cn:8180\/?p=1270"},"modified":"2019-11-05T17:17:19","modified_gmt":"2019-11-05T09:17:19","slug":"4-x%e7%89%88%e6%9c%ac%e9%9b%86%e7%be%a4%e5%a4%96%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%af%b9%e6%8e%a5%e5%bc%80%e5%90%afkerberos%e7%9a%84tdh","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=1270","title":{"rendered":"4.X\u7248\u672c\u96c6\u7fa4\u5916\u670d\u52a1\u5668\u5bf9\u63a5\u5f00\u542fkerberos\u7684TDH"},"content":{"rendered":"<h3>\u6982\u8981\u63cf\u8ff0<\/h3>\n<hr \/>\n<p>4.x\u73af\u5883\u6ca1\u6709TDH-Client\u5ba2\u6237\u7aef\uff0c\u5982\u679c\u96c6\u7fa4\u5f00\u542f\u5b89\u5168\uff0c\u5728\u96c6\u7fa4\u5916\u7684\u670d\u52a1\u5668\u9700\u8981\u624b\u52a8\u5b89\u88c5krb5\u5bf9\u63a5TDH\uff0c\u7136\u540e\u624d\u80fd\u4f7f\u7528hadoop\u76f8\u5173\u547d\u4ee4<\/p>\n<p><strong>\u4f7f\u7528\u63d0\u793a<\/strong>\uff1a<br \/>\n\u96c6\u7fa4\u5916\u8282\u70b9\u7684\u65f6\u95f4\u5fc5\u987b\u548cTDH\u96c6\u7fa4\u4fdd\u6301\u4e00\u81f4<\/p>\n<h3>\u8be6\u7ec6\u8bf4\u660e<\/h3>\n<hr \/>\n<p>1.\u96c6\u7fa4\u5916\u7684\u670d\u52a1\u5668\u624b\u52a8\u5b89\u88c5krb5<\/p>\n<pre><code class=\"language-shell\">#\u96c6\u7fa4\u5916\u8282\u70b9\u6267\u884c\nyum install krb5-libs krb5-server krb5-workstation -y\n<\/code><\/pre>\n<p>2.\u5c06\u96c6\u7fa4\u5185\u7684krb5\u6587\u4ef6scp\u5230\u96c6\u7fa4\u5916\u670d\u52a1\u5668<\/p>\n<pre><code class=\"language-shell\">#\u5728TDH\u8282\u70b9\u6267\u884c\nscp  \/etc\/krb5.conf  root@{\u96c6\u7fa4\u5916\u8282\u70b9IP}:\/etc\/<\/code><\/pre>\n<p>3.\u4fee\u6539\u96c6\u7fa4\u5916\u8282\u70b9hosts\u6587\u4ef6\uff0c\u5c06TDH\u96c6\u7fa4host\u4fe1\u606f\u6dfb\u52a0\u5e76\u4fdd\u5b58<\/p>\n<pre><code class=\"language-shell\">#\u5728\u96c6\u7fa4\u5916\u8282\u70b9\u6267\u884c\nvi \/etc\/hosts<\/code><\/pre>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2019\/10\/hosts.png\" alt=\"\" \/><\/p>\n<p>4.\u57288180\u9875\u9762\u521b\u5efa\u7528\u6237\u53ef\u4ee5\u9a8c\u8bc1\uff08\u4ee5\u4f7f\u7528HDFS\u4e3a\u4f8b\uff09<br \/>\n\u57288180\u9875\u9762-\u3010\u7ba1\u7406\u3011-\u3010\u7528\u6237\u3011\u7684\u53f3\u4e0a\u89d2\u70b9\u51fb\u3010\u6dfb\u52a0\u3011<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2019\/10\/\u6dfb\u52a0\u7528\u62371.png\" alt=\"\" \/><br \/>\n\u6dfb\u52a0hdfs\u7684<strong>\u96c6\u7fa4<\/strong>\u7528\u6237<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2019\/10\/\u6dfb\u52a0\u7528\u62372.png\" alt=\"\" \/><\/p>\n<p>5.\u96c6\u7fa4\u5916\u8fdb\u884ckinit\u8ba4\u8bc1\uff0c\u8f93\u5165\u6b65\u9aa44\u7ed9hdfs\u7528\u6237\u8bbe\u7f6e\u7684\u5bc6\u7801\u770b\u662f\u5426\u53ef\u4ee5\u901a\u8fc7\uff0c\u5e76\u67e5\u770b\u662f\u5426\u83b7\u5f97\u7968\u636e<\/p>\n<pre><code class=\"language-shell\">#\u96c6\u7fa4\u5916\u8282\u70b9\u6267\u884c\nkinit hdfs\n#\u67e5\u770b\u662f\u5426\u83b7\u5f97hdfs\u7684\u7968\u636e\nklist\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2019\/10\/klist.png\" alt=\"\" \/><\/p>\n<p>6.\u901a\u8fc7\u5b89\u5168\u8ba4\u8bc1\u540e\u5373\u53ef\u901a\u8fc7client\u5de5\u5177\u8bbf\u95eehdfs<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2019\/10\/hdfs.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u63cf\u8ff0 4.x\u73af\u5883\u6ca1\u6709TDH-Client\u5ba2\u6237\u7aef\uff0c\u5982\u679c\u96c6\u7fa4\u5f00\u542f\u5b89\u5168\uff0c\u5728\u96c6\u7fa4\u5916\u7684\u670d\u52a1\u5668\u9700\u8981\u624b\u52a8\u5b89\u88c5krb5\u5bf9\u63a5 ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=1270\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,33],"tags":[],"class_list":["post-1270","post","type-post","status-publish","format-standard","hentry","category-install","category-installation"],"acf":[],"_links":{"self":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/1270","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\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1270"}],"version-history":[{"count":3,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/1270\/revisions"}],"predecessor-version":[{"id":4041,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/1270\/revisions\/4041"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}