Skip to content

HIVE-29787: Separate default JSON metrics file locations for HS2 and HMS to prevent overwriting - #6666

Open
Aggarwal-Raghav wants to merge 1 commit into
apache:masterfrom
Aggarwal-Raghav:HIVE-29787
Open

HIVE-29787: Separate default JSON metrics file locations for HS2 and HMS to prevent overwriting#6666
Aggarwal-Raghav wants to merge 1 commit into
apache:masterfrom
Aggarwal-Raghav:HIVE-29787

Conversation

@Aggarwal-Raghav

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Check HIVE-29787, The goal is to have separate json for hs2 and hms and additionally setting the default frequency for HS2 metrics to 60 sec i.e. same as of HMS

Why are the changes needed?

When both HiveServer2 and Hive Metastore are running on the same host with the JsonFileMetricsReporter enabled, they experience a race condition resulting in telemetry/observability loss. Both processes default to writing their metric snapshots to the exact same file: /tmp/report.json

Does this PR introduce any user-facing change?

Yes . The JsonFileMetricsReporter dumping file name default fallback location is changing from /tmp/report.json -> /tmp/hs2-report.json or /tmp/hms-report.json accordingly.

How was this patch tested?

On Cluster testing

@sonarqubecloud

sonarqubecloud Bot commented Aug 1, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants