Skip to content

Commit

Permalink
add github action that auto build hertzbeat docs pdf (#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsun28 committed Jan 16, 2024
1 parent 5f5926b commit d1f48a8
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 5 deletions.
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

0 comments on commit d1f48a8

Please sign in to comment.