This repository was archived by the owner on Aug 20, 2025. It is now read-only.
METRON-2162 Ambari client exception occurred: No JSON object could be… #1447
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.
When deploying Metron using the CentOS 7 development image on the
feature/METRON-2088-support-hdp-3.1feature branch, the following error occurs.Background
I have seen this issue previously and it was caused by the python-requests library. The CentOS 7 node is running Python Requests 2.6.1, which is the last known working version of the library at least on CentOS 6. This was not a problem when the original PR went in for METRON-2097 as #1397 . There might have been a change with the underlying CentOS 7 VM image.
Querying Ambari using curl shows Ambari is responding correctly.
Querying Ambari using python-requests 2.6.1 on CentOS 7 highlights the problem.
Testing
Deploy Metron on CentOS 7.
Pull Request Checklist