This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ambari-website.git
The following commit(s) were added to refs/heads/main by this push:
new a543d48 AMBARI-26490: Website: Update Building Ambari Metrics (#36)
a543d48 is described below
commit a543d489480aa6f412bb771ffc31c8354a71496f
Author: Wei-Chiu Chuang <[email protected]>
AuthorDate: Sun Apr 20 17:54:50 2025 -0700
AMBARI-26490: Website: Update Building Ambari Metrics (#36)
---
docs/ambari-dev/building-from-source.md | 3 +++
docs/ambari-dev/running-tests.md | 32 ++++++++++++++++++++++++++++++++
2 files changed, 35 insertions(+)
diff --git a/docs/ambari-dev/building-from-source.md
b/docs/ambari-dev/building-from-source.md
index d8f7b61..4bee960 100644
--- a/docs/ambari-dev/building-from-source.md
+++ b/docs/ambari-dev/building-from-source.md
@@ -19,6 +19,9 @@ Before you begin, ensure you have the following requirements
installed:
- Ambari Metrics: JDK 8
- Ambari Infra: JDK 8
+### Additional Packages
+- snappy-devel
+
## Building Ambari Main Project
### 1. Clone the Repository
diff --git a/docs/ambari-dev/running-tests.md b/docs/ambari-dev/running-tests.md
index 310988a..916f941 100644
--- a/docs/ambari-dev/running-tests.md
+++ b/docs/ambari-dev/running-tests.md
@@ -107,3 +107,35 @@ Test reports can be found in the following locations after
test execution:
:::tip
When debugging test failures, check these report directories for detailed test
execution logs and stack traces.
:::
+
+# Running Tests in Apache Ambari Metrics
+
+### 1. Install Prequisites
+Ambari Metrics requires a few more prerequisite for unit testing.
+
+```bash
+yum install -y krb5-devel
+pip3 install distro kerberos
+```
+
+## Java Tests
+
+### Running All Java Tests
+To run all Java tests for the Ambari Metrics:
+```bash
+mvn test \
+ -DskipPythonTests \
+ -Dmaven.test.failure.ignore \
+ -Dmaven.artifact.threads=10 \
+ -Drat.skip
+```
+
+## All Tests (Python and Java)
+
+To run all Java tests for the Ambari Metrics:
+```bash
+mvn test \
+ -Dmaven.test.failure.ignore \
+ -Dmaven.artifact.threads=10 \
+ -Drat.skip
+```
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]