diff --git a/.github/workflows/doc-pdf-builder.yml b/.github/workflows/doc-pdf-builder.yml new file mode 100644 index 00000000000..6fd2e18d164 --- /dev/null +++ b/.github/workflows/doc-pdf-builder.yml @@ -0,0 +1,39 @@ +name: 'hertzbeat-doc-pdf-builder' +on: + page_build + +jobs: + build: + runs-on: macos-latest + steps: + - name: Install Prince + run: | + LANG="zh_CN.UTF-8" + export LANG="zh_CN.UTF-8" + curl https://www.princexml.com/download/prince-15.1-macos.zip -O + tar zxf prince-15.1-macos.zip + cd prince-15.1-macos + yes "" | sudo ./install.sh + + - name: Build CN PDF + run: npx docusaurus-prince-pdf -u https://hertzbeat.com/zh-cn/docs --output docs-cn.pdf + + - name: Build EN PDF + run: npx docusaurus-prince-pdf -u https://hertzbeat.com/docs --output docs-en.pdf + + - name: Upload results + uses: actions/upload-artifact@v3 + with: + name: docs-cn-pdf + path: docs-cn.pdf + if-no-files-found: error + retention-days: 1 + + - name: Upload results + uses: actions/upload-artifact@v3 + with: + name: docs-en-pdf + path: docs-en.pdf + if-no-files-found: error + retention-days: 1 + diff --git a/home/docs/help/hadoop.md b/home/docs/help/hadoop.md index 19f9507bdc7..f0a458ecc9f 100644 --- a/home/docs/help/hadoop.md +++ b/home/docs/help/hadoop.md @@ -1,7 +1,8 @@ --- id: hadoop -title: Monitoring: Hadoop -sidebar_label: Hadoop keywords: [Open Source Monitoring System, Open Source Java Monitoring, Hadoop JVM Monitoring] +title: Monitoring Hadoop +sidebar_label: Hadoop +keywords: [Open Source Monitoring System, Open Source Java Monitoring, Hadoop JVM Monitoring] --- > Collect and monitor general performance metrics for the JVM virtual machine in Hadoop. @@ -16,16 +17,19 @@ sidebar_label: Hadoop keywords: [Open Source Monitoring System, Open Source Java Add JVM parameters when the application starts. ⚠️Note that you can customize the exposed port and external IP. - 1.Enter the hadoop-env.sh configuration file and enter the following command in the terminal: + ```shell vi $HADOOP_HOME/etc/hadoop/hadoop-env.sh ``` -- 2.Add the following parameters, where is the number of the custom-exposed port: + +- 2.Add the following parameters, where `port` is the number of the custom-exposed port + ```shell export HADOOP_OPTS= "$HADOOP_OPTS -Djava.rmi.server.hostname=对外ip地址 -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.ssl=false --Dcom.sun.management.jmxremote.authenticate=false " +-Dcom.sun.management.jmxremote.authenticate=false " ``` - 3.Save and exit, and then execute "start-all.sh" in the "$HADOOP_HOME/sbin" directory to restart the service. diff --git a/home/sidebars.json b/home/sidebars.json index c247e693b2f..fde9ecc5643 100644 --- a/home/sidebars.json +++ b/home/sidebars.json @@ -123,7 +123,8 @@ "help/dynamic_tp", "help/rabbitmq", "help/activemq", - "help/jetty" + "help/jetty", + "help/hadoop" ] }, {