Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add github action that auto build hertzbeat docs pdf #1027

Merged
merged 17 commits into from
Jun 18, 2023
39 changes: 39 additions & 0 deletions .github/workflows/doc-pdf-builder.yml
Original file line number Diff line number Diff line change
@@ -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

12 changes: 8 additions & 4 deletions home/docs/help/hadoop.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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 <port> 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.

Expand Down
3 changes: 2 additions & 1 deletion home/sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@
"help/dynamic_tp",
"help/rabbitmq",
"help/activemq",
"help/jetty"
"help/jetty",
"help/hadoop"
]
},
{
Expand Down