{"id":2045,"date":"2023-06-27T13:54:15","date_gmt":"2023-06-27T05:54:15","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=2045"},"modified":"2023-06-27T13:54:15","modified_gmt":"2023-06-27T05:54:15","slug":"hadoop-%e9%9b%86%e7%be%a4%e6%90%ad%e5%bb%ba","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/uncategorized\/hadoop-%e9%9b%86%e7%be%a4%e6%90%ad%e5%bb%ba\/","title":{"rendered":"Hadoop \u96c6\u7fa4\u642d\u5efa"},"content":{"rendered":"<div class='wxsyncmain'>\n<p>\u7248\u672c\uff1a&nbsp; CentOS7 &nbsp;Hadoop3.2.2 JDK1.8<\/p>\n<p>\u91c7\u75283\u53f0\u673a\u5668 \u8bbe\u7f6e ip\u548c\u673a\u5668\u540d<\/p>\n<p><span style=\"white-space:pre-wrap;\">\t<\/span>vi \/etc\/hosts<\/p>\n<p><span style=\"white-space:pre-wrap;\">\t<\/span>10.188.120.101 hadoop-1<\/p>\n<p><span style=\"white-space:pre-wrap;\">\t<\/span>10.188.120.102 hadoop-2<\/p>\n<p><span style=\"white-space:pre-wrap;\">\t<\/span>10.188.120.103 hadoop-3<\/p>\n<p>3\u53f0\u673a\u5668\u4e0a\u90fd\u6267\u884c\u5982\u4e0b\u547d\u4ee4<\/p>\n<p>```bash<\/p>\n<p>ssh-keygen -t rsa<\/p>\n<p>```<\/p>\n<p>\u6267\u884c\u547d\u4ee4\u540e\u4e00\u76f4Enter\u5373\u53ef\uff01<\/p>\n<p>&nbsp;1.\u514d\u5bc6\u767b\u5f55<\/p>\n<section style=\"line-height: normal;\">`\u56e0\u4e3a\u6211\u73b0\u5728\u7528\u7684\u662froot\u8d26\u6237\uff0c\u6240\u4ee5\u79d8\u94a5\u6587\u4ef6\u4fdd\u5b58\u5230\u4e86\/root\/.ssh\/\u76ee\u5f55\u5185\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u67e5\u770b\uff0c\u547d\u4ee4\u662f<\/section>\n<p>ls \/root\/.ssh\/<\/p>\n<p><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.1796759941089838\"  data-type=\"png\" data-w=\"679\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050708819.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.1796759941089838\"  data-type=\"png\" data-w=\"679\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050708819.png\"  \/><\/noscript><\/p>\n<p>\u6ce8\u610f\uff1aauthorized_keys \u8fd9\u6587\u4ef6\u662f\u540e\u7eed\u521b\u5efa\u7684\uff0c\u5355\u7eaf\u7684\u751f\u6210\u79d8\u94a5\u6ca1\u6709\u8fd9\u4e2a\u6587\u4ef6\u3002\u4f7f\u7528\u540c\u6837\u7684\u65b9\u6cd5\u4e3ahadoop-2\u548chadoop-3\u751f\u6210\u79d8\u94a5(\u547d\u4ee4\u5b8c\u5168\u76f8\u540c\uff0c\u4e0d\u7528\u505a\u4efb\u4f55\u4fee\u6539)\u3002<br  \/><\/p>\n<p>2.\u5728hadoop-1\u4e0a\u521b\u5efaauthorized_keys\u6587\u4ef6<\/p>\n<p>\u63a5\u4e0b\u6765\u8981\u505a\u7684\u4e8b\u60c5\u662f\u57283\u53f0\u673a\u5668\u7684\/root\/.ssh\/\u76ee\u5f55\u4e0b\u90fd\u5b58\u5165\u4e00\u4e2a\u5185\u5bb9\u76f8\u540c\u7684\u6587\u4ef6\uff0c\u6587\u4ef6\u540d\u79f0\u53ebauthorized_keys\uff0c\u6587\u4ef6\u5185\u5bb9\u662f\u6211\u4eec\u521a\u624d\u4e3a3\u53f0\u673a\u5668\u751f\u6210\u7684\u516c\u94a5\u3002\u4e3a\u4e86\u65b9\u4fbf\uff0c\u6211\u4e0b\u9762\u7684\u6b65\u9aa4\u662f\u5148\u5728hadoop-1\u4e0a\u751f\u6210authorized_keys\u6587\u4ef6\uff0c\u7136\u540e\u628a3\u53f0\u673a\u5668\u521a\u624d\u751f\u6210\u7684\u516c\u94a5\u52a0\u5165\u5230\u8fd9\u4e2ahadoop-1\u7684authorized_keys\u6587\u4ef6\u91cc\uff0c\u7136\u540e\u518d\u5c06\u8fd9\u4e2aauthorized_keys\u6587\u4ef6\u590d\u5236\u5230hadoop-2\u548chadoop-3\u4e0a\u9762\u3002<\/p>\n<p>&nbsp;<img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.24820143884892087\"  data-type=\"png\" data-w=\"1668\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050709635.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.24820143884892087\"  data-type=\"png\" data-w=\"1668\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050709635.png\"  \/><\/noscript><\/p>\n<p>\u7136\u540e\u5c06hadoop-1\u4e0a\u7684\/root\/.ssh\/id_rsa.pub\u6587\u4ef6\u5185\u5bb9\uff0chadoop-2\u4e0a\u7684\/root\/.ssh\/id_rsa.pub\u6587\u4ef6\u5185\u5bb9\uff0chadoop-3\u4e0a\u7684\/root\/.ssh\/id_rsa.pub\u6587\u4ef6\u5185\u5bb9\u590d\u5236\u5230\u8fd9\u4e2aauthorized_keys\u6587\u4ef6\u4e2d\uff0c\u590d\u5236\u7684\u65b9\u6cd5\u5f88\u591a\u4e86\uff0c\u53ef\u4ee5\u7528cat\u547d\u4ee4\u548cvim\u547d\u4ee4\u7ed3\u5408\u6765\u5f04\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u628a\u8fd93\u53f0\u673a\u5668\u4e0a\u7684\/root\/.ssh\/id_rsa.pub\u6587\u4ef6\u4e0b\u8f7d\u5230\u672c\u5730\uff0c\u5728\u672c\u5730\u5c06authorized_keys\u6587\u4ef6\u7f16\u8f91\u597d\u5728\u4e0a\u8f7d\u5230\u8fd93\u53f0\u673a\u5668\u4e0a\u3002<\/p>\n<p>3. \u5b89\u88c5hadoop<\/p>\n<p>&nbsp;\u6ce8\u610f\uff1a\u4e0d\u9700\u8981\u57283\u53f0\u673a\u5668\u4e0a\u91cd\u590d\u4e0b\u9762\u6240\u8bb2\u7684\u6b65\u9aa4\u3002\u53ea\u9700\u8981\u5728hadoop-1\u670d\u52a1\u5668\u4e0a\u914d\u7f6e\u597d\u540e\u4f7f\u7528scp\u547d\u4ee4\u590d\u5236\u5230\u5176\u4f59\u4e24\u53f0\u670d\u52a1\u5668\u5373\u53ef<\/p>\n<p>\u89e3\u538b\u5b89\u88c5 tar -xvf hadoop-3.2.2.tar.gz<\/p>\n<p>\u521b\u5efa\u51e0\u4e2a\u6587\u4ef6\u76ee\u5f55\uff0c\u6211\u662f\u5728\u5b89\u88c5hadoop \u7684\u76ee\u5f55\u4e0b\u65b0\u5efa\u4e86 flhadoop<\/p>\n<p>\u7136\u540e\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b \u65b0\u5efa tmp \u3001dfs \u3001var<\/p>\n<p>\u5728 dfs \u76ee\u5f55\u4e0b \u65b0\u5efa\u4e86 name \u3001data<\/p>\n<p><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.24821002386634844\"  data-type=\"png\" data-w=\"838\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050728644.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.24821002386634844\"  data-type=\"png\" data-w=\"838\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050728644.png\"  \/><\/noscript><\/p>\n<p>4.\u4fee\u6539etc\/hadoop\u4e2d\u7684\u4e00\u7cfb\u5217\u914d\u7f6e\u6587\u4ef6&nbsp;<\/p>\n<p>1.&nbsp; \u4fee\u6539core-site.xml<\/p>\n<p>&nbsp;\u6267\u884c vi \/opt\/hadoop\/hadoop-3.2.2\/etc\/hadoop\/core-site.xml \u547d\u4ee4<\/p>\n<p>&lt;property&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;hadoop.tmp.dir&lt;\/name&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;value&gt;\/usr\/local\/work\/hadoop\/flhadoop\/tmp&lt;\/value&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;description&gt;Abase for other temporary directories.&lt;\/description&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;\/property&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;property&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;fs.default.name&lt;\/name&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;value&gt;hdfs:\/\/hadoop-1:9000&lt;\/value&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;\/property&gt;<\/p>\n<p>2.\u4fee\u6539hadoop-env.sh&nbsp;<\/p>\n<p>\u6267\u884c vi \/opt\/hadoop\/hadoop-3.2.2\/etc\/hadoop\/hadoop-env.sh&nbsp;<\/p>\n<p>export JAVA_HOME=\/usr\/local\/java\/jdk1.8.0_291<\/p>\n<p>3. \u4fee\u6539hdfs-site.xml<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u6267\u884c vi \/opt\/hadoop\/hadoop-3.2.2\/etc\/hadoop\/hdfs-site.xml \u6587\u4ef6<\/p>\n<p>&lt;property&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;name&gt;dfs.name.dir&lt;\/name&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;value&gt;\/usr\/local\/work\/hadoop\/flhadoop\/dfs\/name&lt;\/value&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;description&gt;Path on the local filesystem where theNameNode stores the namespace and transactions logs persistently.<\/p>\n<p>&nbsp; &nbsp;&lt;\/description&gt;<\/p>\n<p>&lt;\/property&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;property&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;name&gt;dfs.data.dir&lt;\/name&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;value&gt;\/usr\/local\/work\/hadoop\/flhadoop\/dfs\/data&lt;\/value&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;description&gt;Comma separated list of paths on the localfilesystem of a DataNode where it should store its blocks.<\/p>\n<p>&nbsp; &nbsp;&lt;\/description&gt;<\/p>\n<p>&lt;\/property&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;property&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;name&gt;dfs.replication&lt;\/name&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;value&gt;2&lt;\/value&gt;<\/p>\n<p>&lt;\/property&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;property&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;name&gt;dfs.permissions&lt;\/name&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;value&gt;false&lt;\/value&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;description&gt;need not permissions&lt;\/description&gt;<\/p>\n<p>&lt;\/property&gt;<\/p>\n<p>PS\uff1adfs.permissions\u914d\u7f6e\u4e3afalse\u540e\uff0c\u53ef\u4ee5\u5141\u8bb8\u4e0d\u8981\u68c0\u67e5\u6743\u9650\u5c31\u751f\u6210dfs\u4e0a\u7684\u6587\u4ef6\uff0c\u65b9\u4fbf\u5012\u662f\u65b9\u4fbf\u4e86\uff0c\u4f46\u662f\u4f60\u9700\u8981\u9632\u6b62\u8bef\u5220\u9664\uff0c\u8bf7\u5c06\u5b83\u8bbe\u7f6e\u4e3atrue\uff0c\u6216\u8005\u76f4\u63a5\u5c06\u8be5property\u8282\u70b9\u5220\u9664\uff0c\u56e0\u4e3a\u9ed8\u8ba4\u5c31\u662ftrue\u3002<\/p>\n<p>4.\u65b0\u5efa\u5e76\u4e14\u4fee\u6539mapred-site.xml<\/p>\n<p>\u6267\u884c vi \/opt\/hadoop\/hadoop-3.2.2\/etc\/hadoop\/mapred-site.xml \u547d\u4ee4<\/p>\n<p>&lt;!-- \u914d\u7f6emapReduce\u5728Yarn\u4e0a\u8fd0\u884c(\u9ed8\u8ba4\u672c\u5730\u8fd0\u884c) --&gt;<\/p>\n<p>&lt;property&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;name&gt;mapreduce.framework.name&lt;\/name&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;value&gt;yarn&lt;\/value&gt;<\/p>\n<p>&lt;\/property&gt;<\/p>\n<p>5.\u4fee\u6539workers\u6587\u4ef6<\/p>\n<p>\u6267\u884c\u547d\u4ee4 vi \/opt\/hadoop\/hadoop-3.2.2\/etc\/hadoop\/workers&nbsp;<\/p>\n<p>\u5c06\u91cc\u9762\u7684localhost\u5220\u9664<\/p>\n<p>hadoop-1<\/p>\n<p>hadoop-2<\/p>\n<p>hadoop-3<\/p>\n<p>6. \u4fee\u6539yarn-site.xml\u6587\u4ef6<\/p>\n<p>\u6267\u884c vi \/opt\/hadoop\/hadoop-3.2.2\/etc\/hadoop\/yarn-site.xml \u547d\u4ee4\uff0c<\/p>\n<p>\u5728&lt;configuration&gt;\u8282\u70b9\u5185\u52a0\u5165\u914d\u7f6e(\u6ce8\u610f\u4e86\uff0c\u5185\u5b58\u6839\u636e\u673a\u5668\u914d\u7f6e\u8d8a\u5927\u8d8a\u597d\uff0c\u6211\u8fd9\u91cc\u53ea\u914d2\u4e2aG\u662f\u56e0\u4e3a\u673a\u5668\u4e0d\u884c):<\/p>\n<p>&nbsp; &nbsp;&lt;property&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;description&gt;\u6307\u5b9aYARN\u7684\u8001\u5927\uff08ResourceManager\uff09\u7684\u5730\u5740&lt;\/description&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;yarn.resourcemanager.hostname&lt;\/name&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;value&gt;hadoop-1&lt;\/value&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;\/property&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;!-- NodeManager\u4e0a\u8fd0\u884c\u7684\u9644\u5c5e\u670d\u52a1\u3002\u9700\u8981\u914d\u7f6e\u6210mapreduce_shfffle,\u624d\u53ef\u8fd0\u884cMapReduce\u7a0b\u5e8f\u9ed8\u8ba4\u503c --&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;property&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;yarn.nodemanager.aux-services&lt;\/name&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;value&gt;mapreduce_shuffle&lt;\/value&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;\/property&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp; &nbsp;&lt;property&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;discription&gt;\u6bcf\u4e2a\u8282\u70b9\u53ef\u7528\u5185\u5b58,\u5355\u4f4dMB,\u9ed8\u8ba48182MB&lt;\/discription&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;yarn.scheduler.maximum-allocation-mb&lt;\/name&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;value&gt;2048&lt;\/value&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;\/property&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp; &nbsp;&lt;property&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;yarn.nodemanager.vmem-check-enabled&lt;\/name&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;value&gt;false&lt;\/value&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;\/property&gt;<\/p>\n<p>&nbsp; \u8bf4\u660e\uff1ayarn.nodemanager.vmem-check-enabled\u8fd9\u4e2a\u7684\u610f\u601d\u662f\u5ffd\u7565\u865a\u62df\u5185\u5b58\u7684\u68c0\u67e5\uff0c\u5982\u679c\u4f60\u662f\u5b89\u88c5\u5728\u865a\u62df\u673a\u4e0a\uff0c\u8fd9\u4e2a\u914d\u7f6e\u5f88\u6709\u7528\uff0c\u914d\u4e0a\u53bb\u4e4b\u540e\u540e\u7eed\u64cd\u4f5c\u4e0d\u5bb9\u6613\u51fa\u95ee\u9898\u3002\u5982\u679c\u662f\u5b9e\u4f53\u673a\u4e0a\uff0c\u5e76\u4e14\u5185\u5b58\u591f\u591a\uff0c\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u914d\u7f6e\u53bb\u6389\u3002<\/p>\n<p>7.\u914d\u7f6ehadoop-3.2.0\/sbin\/\u76ee\u5f55\u4e0bstart-dfs.sh\u3001start-yarn.sh\u3001stop-dfs.sh\u3001stop-yarn.sh\u6587\u4ef6<\/p>\n<p>\u5728start-dfs.sh\u3001stop-dfs.sh\u5f00\u59cb\u7b2c\u4e00\u884c\u52a0\u4e0a<\/p>\n<p>HDFS_DATANODE_USER=root<\/p>\n<p>HADOOP_SECURE_DN_USER=hdfs<\/p>\n<p>HDFS_NAMENODE_USER=root<\/p>\n<p>HDFS_SECONDARYNAMENODE_USER=root<\/p>\n<p>\u5728start-yarn.sh\u3001stop-yarn.sh\u5f00\u59cb\u7b2c\u4e00\u884c\u52a0\u4e0a&nbsp;<\/p>\n<p>YARN_RESOURCEMANAGER_USER=root<\/p>\n<p>HADOOP_SECURE_DN_USER=yarn<\/p>\n<p>YARN_NODEMANAGER_USER=root<\/p>\n<p>8.\u914d\u7f6e\u597d\u540e\uff0c\u5c06 hadoop-1\u4e0a\u7684 \/usr\/local\/work\/hadoop\/hadoop-3.2.0 \u6587\u4ef6\u5939\u590d\u5236\u5230\u5404\u4e2a\u8282\u70b9\u4e0a<\/p>\n<p># \u8fd9\u91cc\u6211hadoop\u76ee\u5f55\u4e0b\u8fd8\u6709\u6570\u636e\u5b58\u50a8<\/p>\n<p>scp -r \/usr\/local\/work\/hadoop\/ root@hadoop-2:\/opt\/usr\/local\/work\/hadoop<\/p>\n<p>scp -r \/usr\/local\/work\/hadoop\/ root@hadoop-3:\/opt\/usr\/local\/work\/hadoop<\/p>\n<p>&nbsp;<\/p>\n<p>scp \/etc\/profile root@hadoop-2:\/etc\/&nbsp; &nbsp; #copy\u914d\u7f6e\u6587\u4ef6\u5230\u5404\u4e2a\u8282\u70b9<\/p>\n<p>scp \/etc\/profile root@hadoop-3:\/etc\/<\/p>\n<p>5.\u542f\u52a8Hadoop<\/p>\n<p>\u8fdb\u5165\u5230hadoop-1\u8fd9\u53f0\u673a\u5668\u7684\/opt\/hadoop\/hadoop-3.2.2\/bin\u76ee\u5f55\uff0c\u4e5f\u5c31\u662f\u6267\u884c\u547d\u4ee4\uff1a<\/p>\n<p>\u6267\u884c\u521d\u59cb\u5316\u811a\u672c\uff0c\u4e5f\u5c31\u662f\u6267\u884c\u547d\u4ee4\uff1a<br  \/><\/p>\n<p>.\/hadoop namenode -format<\/p>\n<p>\u5728namenode\u4e0a\u6267\u884c\u542f\u52a8\u547d\u4ee4<\/p>\n<p><br  \/><\/p>\n<p>\u56e0\u4e3ahadoop-1\u662fnamenode\uff0chadoop-2\u548chadoop-3\u90fd\u662fdatanode\uff0c\u6240\u4ee5\u53ea\u9700\u8981\u518dhadoop-1\u4e0a\u6267\u884c\u542f\u52a8\u547d\u4ee4\u5373\u53ef\u3002<\/p>\n<p>\u8fdb\u5165\u5230hadoop-1\u8fd9\u53f0\u673a\u5668\u7684\/opt\/hadoop\/hadoop-3.2.0\/sbin\u76ee\u5f55\uff0c\u4e5f\u5c31\u662f\u6267\u884c\u547d\u4ee4<br  \/><\/p>\n<p>&nbsp;.\/start-all.sh<\/p>\n<p><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.41847133757961785\"  data-type=\"png\" data-w=\"1570\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050735858.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.41847133757961785\"  data-type=\"png\" data-w=\"1570\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050735858.png\"  \/><\/noscript><\/p>\n<p>hadoop-1\u662f\u6211\u4eec\u7684namenode\uff0c\u8be5\u673a\u5668\u7684IP\u662f10.188.120.201\uff0c\u5728\u672c\u5730\u7535\u8111\u8bbf\u95ee\u5982\u4e0b\u5730\u5740:<\/p>\n<p>&nbsp; http:\/\/10.188.120.201:9870\/<\/p>\n<p><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.47210526315789475\"  data-type=\"png\" data-w=\"1900\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050749955.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.47210526315789475\"  data-type=\"png\" data-w=\"1900\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050749955.png\"  \/><\/noscript><\/p>\n<p>\u8bbf\u95ee\u96c6\u7fa4\u9875\u9762url<\/p>\n<p>http:\/\/192.168.217.128:8088\/<\/p>\n<p><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.3755893137768465\"  data-type=\"png\" data-w=\"1909\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050755118.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.3755893137768465\"  data-type=\"png\" data-w=\"1909\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050755118.png\"  \/><\/noscript><\/p>\n<p><br  \/><\/p>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 \u5c0f\u51af\u5927\u6570\u636e\u6210\u957f\u4e4b\u8def              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u7248\u672c\uff1a&nbsp; CentOS7 &nbsp;Hadoop3.2.2 JDK1.8 \u91c7\u75283\u53f0\u673a\u5668 \u8bbe\u7f6e ip\u548c\u673a\u5668\u540d vi \/e &#8230;<\/p>\n","protected":false},"author":1,"featured_media":2015,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-2045","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050706156-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050708819.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050706156-300x127.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050706156.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050708819.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050706156-300x127.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050706156.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050706156.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050708819.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050708819.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050709635.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050709635.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050728644.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050728644.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050735858.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050735858.png","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050749955.png","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050749955.png","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050755118.png","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050755118.png","id":"image11"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"\u672a\u5206\u7c7b","post_date":"2023-06-27","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":305,"next_post_id":2429,"next_post_title":"\u200blvm\u78c1\u76d8\u6302\u8f7d","previous_post_id":1799,"previous_post_title":"\u6d41\u5a92\u4f53\u4f20\u8f93\u7cfb\u5217\u6587\u7ae0\u6c47\u603b","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/2045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2045"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/2045\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/2015"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}