{"id":65962,"date":"2026-01-26T00:32:33","date_gmt":"2026-01-25T16:32:33","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/65962.html"},"modified":"2026-01-26T00:32:33","modified_gmt":"2026-01-25T16:32:33","slug":"hdp-3-1-%e5%9c%a8%e9%b2%b2%e9%b9%8f%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88centos-7-6-openeuler-20-03%ef%bc%89%e4%b8%8a%e7%9a%84%e5%ae%89%e8%a3%85%e9%83%a8%e7%bd%b2%e6%8c%87%e5%8d%97%ef%bc%88%e4%bc%98","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/65962.html","title":{"rendered":"HDP 3.1 \u5728\u9cb2\u9e4f\u670d\u52a1\u5668\uff08CentOS 7.6 \/ openEuler 20.03\uff09\u4e0a\u7684\u5b89\u88c5\u90e8\u7f72\u6307\u5357\uff08\u4f18\u5316\u7248\uff09"},"content":{"rendered":"<h2>&#x1f4cb; \u4e00\u3001\u73af\u5883\u51c6\u5907\u4e0e\u7cfb\u7edf\u914d\u7f6e<\/h2>\n<h3>1.1 \u68c0\u67e5\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c<\/h3>\n<p>\u652f\u6301\u4ee5\u4e0b\u64cd\u4f5c\u7cfb\u7edf&#xff1a;<\/p>\n<p>CentOS 7.6<\/p>\n<p>bash<br \/>\ncat \/etc\/redhat-release<br \/>\nopenEuler 20.03<\/p>\n<p>bash<br \/>\ncat \/etc\/openEuler-release<br \/>\n\u8bf4\u660e&#xff1a;TaiShan \u670d\u52a1\u5668\u652f\u6301\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e3a CentOS 7.6 \/ openEuler 20.03\u3002<\/p>\n<h3>1.2 \u68c0\u67e5\u5e76\u8bbe\u7f6e\u9ed8\u8ba4\u8bed\u8a00<\/h3>\n<p>bash<br \/>\necho $LANG<br \/>\n\u82e5\u9ed8\u8ba4\u8bed\u8a00\u4e3a en_US.UTF-8&#xff0c;\u5219\u7ee7\u7eed\u4e0b\u4e00\u6b65\u3002<\/p>\n<p>\u82e5\u9ed8\u8ba4\u8bed\u8a00\u975e\u82f1\u6587&#xff0c;\u5207\u6362\u4e3a\u82f1\u6587&#xff1a;<\/p>\n<p>bash<br \/>\necho \u2018export LANG&#061;en_US.UTF-8\u2019 &gt;&gt; ~\/.bashrc<br \/>\n\u5173\u95ed\u5f53\u524d\u4f1a\u8bdd\u540e\u91cd\u65b0\u767b\u5f55\u3002<\/p>\n<h3>1.3 \u8bbe\u7f6e\u64cd\u4f5c\u7cfb\u7edf\u65f6\u533a<\/h3>\n<p>bash<br \/>\ncp \/usr\/share\/zoneinfo\/Asia\/Shanghai \/etc\/localtime<br \/>\n\u8bf4\u660e&#xff1a;\u5982\u679c\u5b89\u88c5\u7cfb\u7edf\u65f6\u5df2\u8bbe\u7f6e\u65f6\u533a\u4e3a Asia\/Shanghai&#xff0c;\u53ef\u8df3\u8fc7\u6b64\u6b65\u3002<\/p>\n<h2>&#x1f310; \u4e8c\u3001\u8bbe\u7f6e\u57df\u540d\u89e3\u6790<\/h2>\n<p>\u96c6\u7fa4\u6240\u6709\u4e3b\u673a\u5fc5\u987b\u914d\u7f6e\u57df\u540d\u89e3\u6790&#xff0c;\u4ee5\u4fbf Server \u8bbf\u95ee Agent\u3002<\/p>\n<h3>2.1 \u8bbe\u7f6e\u4e3b\u673a\u540d<\/h3>\n<p>\u7f16\u8f91\u7f51\u7edc\u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p>bash<br \/>\nvi \/etc\/sysconfig\/network<br \/>\n\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p>text<br \/>\nNETWORKING&#061;yes<br \/>\nHOSTNAME&#061;{\u4e3b\u673a\u540d}<br \/>\n\u8bbe\u7f6e\u4e3b\u673a\u540d&#xff08;\u4f8b\u5982 server1&#xff09;&#xff1a;<\/p>\n<p>bash<br \/>\nhostnamectl &#8211;static set-hostname {\u4e3b\u673a\u540d}<\/p>\n<h3>2.2 \u914d\u7f6e \/etc\/hosts<\/h3>\n<p>\u4e3a\u6bcf\u53f0\u4e3b\u673a\u6dfb\u52a0\u4e00\u884c IP \u4e0e\u4e3b\u673a\u540d\u6620\u5c04&#xff1a;<\/p>\n<p>bash<br \/>\nvi \/etc\/hosts<br \/>\n\u793a\u4f8b&#xff1a;<\/p>\n<p>text<br \/>\n127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4<br \/>\n::1         localhost localhost.localdomain localhost6 localhost6.localdomain6<br \/>\nIP1 server1<br \/>\nIP2 agent1<br \/>\nIP3 agent2<br \/>\nIP4 agent3<br \/>\n\u53ef\u5c06\u914d\u7f6e\u597d\u7684 \/etc\/hosts \u540c\u6b65\u5230\u6240\u6709\u8282\u70b9&#xff1a;<\/p>\n<p>bash<br \/>\nscp \/etc\/hosts root&#064;{\u76ee\u6807IP}:\/etc\/hosts<br \/>\n\u91cd\u542f\u7f51\u7edc\u670d\u52a1&#xff1a;<\/p>\n<p>CentOS&#xff1a;systemctl restart network<\/p>\n<p>openEuler&#xff1a;systemctl restart NetworkManager<\/p>\n<h3>2.3 \u9a8c\u8bc1\u914d\u7f6e<\/h3>\n<p>bash<br \/>\nhostname -i    # \u8fd4\u56de\u4e3b\u673aIP<br \/>\nhostname -f    # \u8fd4\u56de\u4e3b\u673a\u540d<\/p>\n<h2>&#x1f525; \u4e09\u3001\u5173\u95ed\u9632\u706b\u5899<\/h2>\n<p>\u96c6\u7fa4\u6240\u6709\u4e3b\u673a\u5fc5\u987b\u5173\u95ed\u9632\u706b\u5899&#xff1a;<\/p>\n<p>bash<br \/>\nsystemctl stop firewalld<br \/>\nsystemctl disable firewalld<\/p>\n<h2>\u2699\ufe0f \u56db\u3001\u5173\u95ed SELinux \u4e0e\u914d\u7f6e limits \u53c2\u6570<\/h2>\n<h3>4.1 \u8bbe\u7f6e SELinux \u4e3a\u5bbd\u5bb9\u6a21\u5f0f<\/h3>\n<p>bash<br \/>\nsetenforce 0<\/p>\n<h3>4.2 \u6c38\u4e45\u7981\u7528 SELinux<\/h3>\n<p>\u7f16\u8f91 \/etc\/selinux\/config&#xff1a;<\/p>\n<p>bash<br \/>\nvi \/etc\/selinux\/config<br \/>\n\u8bbe\u7f6e&#xff1a;<\/p>\n<p>text<br \/>\nSELINUX&#061;disabled<\/p>\n<h3>4.3 \u914d\u7f6e limits.conf<\/h3>\n<p>\u7f16\u8f91 \/etc\/security\/limits.conf&#xff1a;<\/p>\n<p>bash<br \/>\nvi \/etc\/security\/limits.conf<br \/>\n\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>text<\/p>\n<ul>\n<li>hard    nproc    65535<\/li>\n<li>soft    nproc    65535<\/li>\n<li>hard    nofile   65535<\/li>\n<li>soft    nofile   65535<\/li>\n<\/ul>\n<h2>&#x1f504; \u4e94\u3001\u7981\u7528\u4ea4\u6362\u5206\u533a<\/h2>\n<p>\u5728\u96c6\u7fa4\u6240\u6709\u4e3b\u673a\u6267\u884c&#xff1a;<\/p>\n<p>bash<br \/>\nsysctl vm.swappiness&#061;0<br \/>\necho vm.swappiness&#061;0 &gt;&gt; \/etc\/sysctl.conf<\/p>\n<h2>&#x1f4c1; \u516d\u3001\u8bbe\u7f6e umask<\/h2>\n<p>\u4e3a\u96c6\u7fa4\u6240\u6709\u4e3b\u673a\u8bbe\u7f6e umask&#xff1a;<\/p>\n<p>bash<br \/>\numask 0022<br \/>\necho umask 0022 &gt;&gt; \/etc\/profile<br \/>\nsource \/etc\/profile<\/p>\n<h2>&#x1f511; \u4e03\u3001\u8bbe\u7f6e SSH \u514d\u5bc6\u767b\u5f55<\/h2>\n<p>Ambari Server \u9700\u901a\u8fc7 SSH \u516c\u94a5\u767b\u5f55\u6240\u6709\u4e3b\u673a\u3002<\/p>\n<h3>7.1 \u751f\u6210 SSH \u5bc6\u94a5<\/h3>\n<p>\u5728\u6bcf\u53f0\u4e3b\u673a\u6267\u884c&#xff1a;<\/p>\n<p>bash<br \/>\nssh-keygen -t rsa<br \/>\n&#xff08;\u6240\u6709\u63d0\u793a\u76f4\u63a5\u56de\u8f66&#xff09;<\/p>\n<h3>7.2 \u914d\u7f6e\u514d\u5bc6\u767b\u5f55<\/h3>\n<p>\u5728 Ambari Server \u6267\u884c&#xff1a;<\/p>\n<p>bash<br \/>\ncd ~\/.ssh\/<br \/>\nssh-copy-id -i ~\/.ssh\/id_rsa.pub root&#064;{\u76ee\u6807\u4e3b\u673a}<br \/>\n\u8bf4\u660e&#xff1a;{\u76ee\u6807\u4e3b\u673a} \u5305\u62ec\u96c6\u7fa4\u6240\u6709\u4e3b\u673a&#xff08;\u4e3b\u673a\u540d\u6216 IP&#xff09;\u3002<\/p>\n<h3>7.3 \u8bbe\u7f6e\u6587\u4ef6\u6743\u9650<\/h3>\n<p>\u5728\u6240\u6709\u4e3b\u673a\u6267\u884c&#xff1a;<\/p>\n<p>bash<br \/>\nchmod 700 ~\/.ssh<br \/>\nchmod 600 ~\/.ssh\/authorized_keys<\/p>\n<h3>7.4 \u9a8c\u8bc1\u514d\u5bc6\u767b\u5f55<\/h3>\n<p>bash<br \/>\nssh {\u76ee\u6807\u4e3b\u673a}<\/p>\n<h2>&#x1f4c0; \u516b\u3001\u914d\u7f6e\u672c\u5730 YUM \u6e90<\/h2>\n<h3>8.1 \u6302\u8f7d\u7cfb\u7edf\u955c\u50cf<\/h3>\n<p>bash<br \/>\nmount YOUR_OS.iso \/media\/ -o loop<br \/>\n\u8bf4\u660e&#xff1a;\u4f8b\u5982 CentOS 7.6 (\u9cb2\u9e4f) \u4f7f\u7528 CentOS-7-aarch64-Everything-1810.iso\u3002<\/p>\n<h3>8.2 \u914d\u7f6e\u672c\u5730\u6e90<\/h3>\n<p>bash<br \/>\ncd \/etc\/yum.repos.d<br \/>\nmkdir bak<br \/>\nmv *.repo bak<br \/>\nvi local.repo<br \/>\n\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p>ini<br \/>\n[local]<br \/>\nname&#061;local repo<br \/>\nbaseurl&#061;file:\/\/\/media<br \/>\nenabled&#061;1<br \/>\ngpgcheck&#061;0<\/p>\n<h3>8.3 \u751f\u6548\u6e90<\/h3>\n<p>bash<br \/>\nyum clean all<br \/>\nyum makecache<\/p>\n<h2>&#x1f4e6; \u4e5d\u3001\u5b89\u88c5\u4f9d\u8d56\u8f6f\u4ef6<\/h2>\n<p>bash<br \/>\nyum groupinstall \u201cInfrastructure Server\u201d \u201cDevelopment Tools\u201d &#8211;setopt&#061;group_package_types&#061;mandatory,default,optional -y<\/p>\n<h2>\u2615 \u5341\u3001\u5b89\u88c5 JDK<\/h2>\n<h3>10.1 \u4e0b\u8f7d JDK<\/h3>\n<p>x86&#xff1a;OpenJDK 8u222 \u6216\u66f4\u9ad8\u7248\u672c<\/p>\n<p>\u9cb2\u9e4f&#xff1a;OpenJDK 8u222 \u6216 \u6bd5\u6607 JDK<\/p>\n<h3>10.2 \u5b89\u88c5 JDK<\/h3>\n<p>bash<br \/>\ntar -zxvf OpenJDK8U-jdk_aarch64_linux_hotspot_8u222b10.tar.gz<br \/>\nchown -R root:root jdk8u222-b10\/<br \/>\nchmod -R 755 jdk8u222-b10\/<br \/>\nmv jdk8u222-b10\/ \/usr\/local\/<\/p>\n<h3>10.3 \u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h3>\n<p>\u7f16\u8f91 \/etc\/profile&#xff1a;<\/p>\n<p>bash<br \/>\nexport JAVA_HOME&#061;\/usr\/local\/jdk8u222-b10<br \/>\nexport PATH&#061;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">JAVAHOME\/bin:JAVA_HOME\/bin:<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0962em\">J<\/span><span class=\"mord mathnormal\">A<\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.2222em\">V<\/span><span class=\"mord\"><span class=\"mord mathnormal\">A<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3283em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mathnormal mtight\" style=\"margin-right: 0.0813em\">H<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0576em\">OME<\/span><span class=\"mord\">\/<\/span><span class=\"mord mathnormal\">bin<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">:<\/span><\/span><\/span><\/span><\/span>PATH<br \/>\n\u751f\u6548\u914d\u7f6e&#xff1a;<\/p>\n<p>bash<br \/>\nsource \/etc\/profile<\/p>\n<h2>&#x1f310; \u5341\u4e00\u3001\u642d\u5efa YUM \u6e90\u670d\u52a1\u5668<\/h2>\n<h3>11.1 \u4e0b\u8f7d HDP RPM \u5305&#xff08;\u9cb2\u9e4f&#xff09;<\/h3>\n<p>text<br \/>\nHDP-UTILS-1.1.0.22-centos7.tar.gz<br \/>\nHDP-GPL-3.1.0.0-centos7-gpl.tar.gz<br \/>\nambari-2.7.3.0-centos7.tar.gz<br \/>\nHDP-3.1.0.0-centos7-rpm.tar.gz<\/p>\n<h3>11.2 \u5b89\u88c5 HTTPD<\/h3>\n<p>bash<br \/>\nyum install httpd createrepo -y<br \/>\nservice httpd start<br \/>\nsystemctl status httpd<\/p>\n<h3>11.3 \u7ba1\u7406 RPM \u5305<\/h3>\n<p>\u521b\u5efa\u76ee\u5f55\u5e76\u89e3\u538b&#xff1a;<\/p>\n<p>bash<br \/>\nmkdir -p \/var\/www\/html\/entry\/ambari\/2.7.3.0.0\/centos7\/aarch64<br \/>\nmkdir -p \/var\/www\/html\/entry\/hdp\/3.1\/centos7\/aarch64<br \/>\n\u5c06\u5bf9\u5e94\u5e73\u53f0\u7684 RPM \u5305\u653e\u5165\u76f8\u5e94\u76ee\u5f55\u3002<\/p>\n<h3>11.4 \u521b\u5efa YUM \u4ed3\u5e93<\/h3>\n<p>bash<br \/>\ncd \/var\/www\/html\/entry\/ambari\/2.7.3.0.0\/centos7 &amp;&amp; createrepo .<br \/>\ncd \/var\/www\/html\/entry\/hdp\/3.1\/centos7 &amp;&amp; createrepo .<br \/>\n11.5 \u914d\u7f6e\u4ed3\u5e93\u6587\u4ef6<br \/>\n\u5728\u6bcf\u53f0\u4e3b\u673a\u521b\u5efa \/etc\/yum.repos.d\/ambari.repo&#xff1a;<\/p>\n<p>ini<br \/>\n[ambari]<br \/>\nname&#061;ambari repo<br \/>\nbaseurl&#061;http:\/\/{YUM\u6e90\u670d\u52a1\u5668IP}\/entry\/ambari\/2.7.3.0.0\/centos7<br \/>\nenabled&#061;1<br \/>\ngpgcheck&#061;0<br \/>\n\u521b\u5efa \/etc\/yum.repos.d\/hdp.repo&#xff1a;<\/p>\n<p>ini<br \/>\n[hdp]<br \/>\nname&#061;hdp repo<br \/>\nbaseurl&#061;http:\/\/{YUM\u6e90\u670d\u52a1\u5668IP}\/entry\/hdp\/3.1\/centos7<br \/>\nenabled&#061;1<br \/>\ngpgcheck&#061;0<br \/>\n\u751f\u6548\u6e90&#xff1a;<\/p>\n<p>bash<br \/>\nyum clean all<br \/>\nyum makecache<\/p>\n<h2>&#x1f5c4;\ufe0f \u5341\u4e8c\u3001\u5b89\u88c5\u6570\u636e\u5e93&#xff08;MariaDB&#xff09;<\/h2>\n<h3>12.1 \u5b89\u88c5 MariaDB<\/h3>\n<p>bash<br \/>\nyum install mariadb mariadb-server.aarch64 mysql-connector-java.noarch -y<br \/>\nmkdir -p \/usr\/share\/java<br \/>\nwget https:\/\/repo1.maven.org\/maven2\/mysql\/mysql-connector-java\/5.1.49\/mysql-connector-java-5.1.49.jar -O \/usr\/share\/java\/mysql-connector-java.jar<\/p>\n<h3>12.2 \u542f\u52a8 MariaDB<\/h3>\n<p>bash<br \/>\nsystemctl start mariadb<br \/>\nsystemctl enable mariadb<br \/>\nsystemctl status mariadb<\/p>\n<h3>12.3 \u914d\u7f6e\u6570\u636e\u5e93<\/h3>\n<p>bash<br \/>\nmysql -uroot -p<br \/>\n\u6267\u884c&#xff1a;<\/p>\n<p>sql<br \/>\nSET PASSWORD &#061; PASSWORD(\u2018\u5bc6\u7801\u2019);<br \/>\nFLUSH PRIVILEGES;<br \/>\nCREATE DATABASE ambari;<br \/>\nUSE ambari;<br \/>\nSOURCE \/var\/lib\/ambari-server\/resources\/Ambari-DDL-MySQL-CREATE.sql;<br \/>\n\u521b\u5efa\u7528\u6237&#xff08;\u4e3a\u6bcf\u53f0\u4e3b\u673a\u521b\u5efa&#xff09;&#xff1a;<\/p>\n<p>sql<br \/>\nCREATE USER \u2018ambari\u2019&#064;\u2018%\u2019 IDENTIFIED BY \u2018ambari123\u2019;<br \/>\nGRANT ALL PRIVILEGES ON . TO \u2018ambari\u2019&#064;\u2018%\u2019;<br \/>\nFLUSH PRIVILEGES;<\/p>\n<h3>&#x1f680; \u5341\u4e09\u3001\u5b89\u88c5\u4e0e\u914d\u7f6e Ambari Server<\/h3>\n<h3>13.1 \u5b89\u88c5 Ambari Server<\/h3>\n<p>bash<br \/>\nyum install ambari-server.aarch64 -y<\/p>\n<h3>13.2 \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/h3>\n<p>\u7f16\u8f91 \/etc\/profile&#xff1a;<\/p>\n<p>text<br \/>\nexport buildNumber&#061;2.7.3.0.0<br \/>\n\u751f\u6548&#xff1a;<\/p>\n<p>bash<br \/>\nsource \/etc\/profile<\/p>\n<h3>13.3 \u521d\u59cb\u5316\u6570\u636e\u5e93\u8fde\u63a5<\/h3>\n<p>bash<br \/>\nambari-server setup &#8211;jdbc-db&#061;mysql &#8211;jdbc-driver&#061;\/usr\/share\/java\/mysql-connector-java.jar<\/p>\n<h3>13.4 \u8fd0\u884c Ambari \u5b89\u88c5\u5411\u5bfc<\/h3>\n<p>bash<br \/>\nambari-server setup<br \/>\n\u6309\u63d0\u793a\u9009\u62e9&#xff1a;<\/p>\n<p>SELinux \u2192 y<\/p>\n<p>\u7528\u6237\u8d26\u6237 \u2192 root<\/p>\n<p>JDK \u2192 Custom JDK&#xff0c;\u8def\u5f84\u4e3a \/usr\/local\/jdk8u222-b10<\/p>\n<p>GPL \u534f\u8bae \u2192 y<\/p>\n<p>\u6570\u636e\u5e93 \u2192 MySQL \/ MariaDB<\/p>\n<p>\u8f93\u5165\u6570\u636e\u5e93\u5bc6\u7801\u3001\u4e3b\u673a\u540d\u7b49\u4fe1\u606f<\/p>\n<h3>13.5 \u542f\u52a8 Ambari Server<\/h3>\n<p>bash<br \/>\nambari-server start<br \/>\nambari-server status<\/p>\n<h3>13.6 \u8bbf\u95ee Ambari Web<\/h3>\n<p>\u6d4f\u89c8\u5668\u8bbf\u95ee&#xff1a;<\/p>\n<p>text<br \/>\nhttp:\/\/{\u670d\u52a1\u5668IP}:8080<br \/>\n\u9ed8\u8ba4\u8d26\u53f7&#xff1a;admin \/ admin<\/p>\n<h2>&#x1f4dd; \u5341\u56db\u3001\u90e8\u7f72\u96c6\u7fa4&#xff08;Web \u754c\u9762&#xff09;<\/h2>\n<p>\u5355\u51fb \u201cLaunch Install Wizard\u201d<\/p>\n<p>\u8f93\u5165\u96c6\u7fa4\u540d\u79f0&#xff08;\u5982 cluster1&#xff09;<\/p>\n<p>\u9009\u62e9\u7248\u672c&#xff0c;\u914d\u7f6e Base URL&#xff1a;<\/p>\n<p>text<br \/>\nhttp:\/\/{YUM\u6e90\u670d\u52a1\u5668IP}\/entry\/hdp\/3.1\/centos7<br \/>\n\u8f93\u5165\u6240\u6709\u4e3b\u673a\u540d\u548c SSH \u79c1\u94a5<\/p>\n<p>\u6ce8\u518c\u5e76\u786e\u8ba4\u4e3b\u673a<\/p>\n<p>\u9009\u62e9\u670d\u52a1&#xff08;\u5efa\u8bae\u5148\u5b89\u88c5 HDFS\u3001ZooKeeper\u3001Ambari Metrics&#xff09;<\/p>\n<p>\u6309\u5411\u5bfc\u5b8c\u6210\u90e8\u7f72<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f4cb; \u4e00\u3001\u73af\u5883\u51c6\u5907\u4e0e\u7cfb\u7edf\u914d\u7f6e<br \/>\n1.1 \u68c0\u67e5\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c<br \/>\n\u652f\u6301\u4ee5\u4e0b\u64cd\u4f5c\u7cfb\u7edf&#xff1a;<br \/>\nCentOS 7.6<br \/>\nbash<br \/>\ncat \/etc\/redhat-release<br \/>\nopenEuler 20.03<br \/>\nbash<br \/>\ncat \/etc\/openEuler-release<br \/>\n\u8bf4\u660e&#xff1a;TaiShan \u670d\u52a1\u5668\u652f\u6301\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e3a CentOS 7.6 \/ openEuler 20.03\u3002<br \/>\n1.2 \u68c0\u67e5\u5e76\u8bbe\u7f6e\u9ed8\u8ba4\u8bed\u8a00<br \/>\nbash<br \/>\necho $LANG<br \/>\n\u82e5\u9ed8\u8ba4\u8bed\u8a00\u4e3a en_<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2719,1757,59,779,323,43,44],"topic":[],"class_list":["post-65962","post","type-post","status-publish","format-standard","hentry","category-server","tag-ambari","tag-arm","tag-centos","tag-hadoop","tag-323","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>HDP 3.1 \u5728\u9cb2\u9e4f\u670d\u52a1\u5668\uff08CentOS 7.6 \/ openEuler 20.03\uff09\u4e0a\u7684\u5b89\u88c5\u90e8\u7f72\u6307\u5357\uff08\u4f18\u5316\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/65962.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HDP 3.1 \u5728\u9cb2\u9e4f\u670d\u52a1\u5668\uff08CentOS 7.6 \/ openEuler 20.03\uff09\u4e0a\u7684\u5b89\u88c5\u90e8\u7f72\u6307\u5357\uff08\u4f18\u5316\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"&#x1f4cb; \u4e00\u3001\u73af\u5883\u51c6\u5907\u4e0e\u7cfb\u7edf\u914d\u7f6e 1.1 \u68c0\u67e5\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c \u652f\u6301\u4ee5\u4e0b\u64cd\u4f5c\u7cfb\u7edf&#xff1a; CentOS 7.6 bash cat \/etc\/redhat-release openEuler 20.03 bash cat \/etc\/openEuler-release \u8bf4\u660e&#xff1a;TaiShan \u670d\u52a1\u5668\u652f\u6301\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e3a CentOS 7.6 \/ openEuler 20.03\u3002 1.2 \u68c0\u67e5\u5e76\u8bbe\u7f6e\u9ed8\u8ba4\u8bed\u8a00 bash echo $LANG \u82e5\u9ed8\u8ba4\u8bed\u8a00\u4e3a en_\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/65962.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-25T16:32:33+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/65962.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/65962.html\",\"name\":\"HDP 3.1 \u5728\u9cb2\u9e4f\u670d\u52a1\u5668\uff08CentOS 7.6 \/ openEuler 20.03\uff09\u4e0a\u7684\u5b89\u88c5\u90e8\u7f72\u6307\u5357\uff08\u4f18\u5316\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-25T16:32:33+00:00\",\"dateModified\":\"2026-01-25T16:32:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/65962.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/65962.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/65962.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HDP 3.1 \u5728\u9cb2\u9e4f\u670d\u52a1\u5668\uff08CentOS 7.6 \/ openEuler 20.03\uff09\u4e0a\u7684\u5b89\u88c5\u90e8\u7f72\u6307\u5357\uff08\u4f18\u5316\u7248\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HDP 3.1 \u5728\u9cb2\u9e4f\u670d\u52a1\u5668\uff08CentOS 7.6 \/ openEuler 20.03\uff09\u4e0a\u7684\u5b89\u88c5\u90e8\u7f72\u6307\u5357\uff08\u4f18\u5316\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/65962.html","og_locale":"zh_CN","og_type":"article","og_title":"HDP 3.1 \u5728\u9cb2\u9e4f\u670d\u52a1\u5668\uff08CentOS 7.6 \/ openEuler 20.03\uff09\u4e0a\u7684\u5b89\u88c5\u90e8\u7f72\u6307\u5357\uff08\u4f18\u5316\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"&#x1f4cb; \u4e00\u3001\u73af\u5883\u51c6\u5907\u4e0e\u7cfb\u7edf\u914d\u7f6e 1.1 \u68c0\u67e5\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c \u652f\u6301\u4ee5\u4e0b\u64cd\u4f5c\u7cfb\u7edf&#xff1a; CentOS 7.6 bash cat \/etc\/redhat-release openEuler 20.03 bash cat \/etc\/openEuler-release \u8bf4\u660e&#xff1a;TaiShan \u670d\u52a1\u5668\u652f\u6301\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e3a CentOS 7.6 \/ openEuler 20.03\u3002 1.2 \u68c0\u67e5\u5e76\u8bbe\u7f6e\u9ed8\u8ba4\u8bed\u8a00 bash echo $LANG \u82e5\u9ed8\u8ba4\u8bed\u8a00\u4e3a en_","og_url":"https:\/\/www.wsisp.com\/helps\/65962.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-25T16:32:33+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/65962.html","url":"https:\/\/www.wsisp.com\/helps\/65962.html","name":"HDP 3.1 \u5728\u9cb2\u9e4f\u670d\u52a1\u5668\uff08CentOS 7.6 \/ openEuler 20.03\uff09\u4e0a\u7684\u5b89\u88c5\u90e8\u7f72\u6307\u5357\uff08\u4f18\u5316\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-25T16:32:33+00:00","dateModified":"2026-01-25T16:32:33+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/65962.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/65962.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/65962.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"HDP 3.1 \u5728\u9cb2\u9e4f\u670d\u52a1\u5668\uff08CentOS 7.6 \/ openEuler 20.03\uff09\u4e0a\u7684\u5b89\u88c5\u90e8\u7f72\u6307\u5357\uff08\u4f18\u5316\u7248\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/65962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=65962"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/65962\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=65962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=65962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=65962"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=65962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}