Revert "AMBARI-26142: JDK17 support for Ambari-metrics" #142
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Revert "AMBARI-26142: JDK17 support for Ambari-metrics (#134)"
This reverts commit 667fa9a.
Reason for revert:

The JDK17 upgrade for Ambari-metrics has caused compatibility issues with various component sinks (Hadoop, HBase, etc.) that are still running on JDK8. Since Ambari-metrics produces JAR files that serve as plugins for these components, the JDK17-compiled sinks are not compatible with the JDK8 runtime environment of the host components.
Specifically, when Hadoop (which runs on JDK8) attempts to load the metrics sink compiled with JDK17, it fails to start due to bytecode incompatibility issues. This incompatibility affects multiple components that integrate with Ambari-metrics.
We need to revert to the JDK8-compatible version until we can implement a solution that maintains backward compatibility with JDK8-based components or until all dependent components are upgraded to support JDK17.