Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Ambari consistency check failed while installing service

Hi,

We had a HDP Cluster on version 2.6.4. we are trying to add a new service to the cluster via Ambari (the issue happens with any service: sqoop, superset,...), buy the install process raise the error: Consistency Check Failed, and after that:

500 status code received on POST method for API: /api/v1/stacks/HDP/versions/2.6/recommendations

<strong>Error message: </strong>Stack Advisor reported an error: ParseError: mismatched tag: line 50, column 50
StdOut file: /var/run/ambari-server/stack-recommendations/12/stackadvisor.out

StdErr file: /var/run/ambari-server/stack-recommendations/12/stackadvisor.err

And in the stackadvisor.err:

Traceback (most recent call last):
File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 173, in <module>
main(sys.argv)
File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 121, in main
result = stackAdvisor.recommendConfigurations(services, hosts)
File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", line 776, in recommendConfigurations
calculation(configurations, clusterSummary, services, hosts)
File "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.2/services/stack_advisor.py", line 920, in recommendKnoxConfigurations
root = ET.fromstring(topologyContent)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1311, in XML
parser.feed(text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1653, in feed
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1517, in _raiseerror
raise err
ParseError: mismatched tag: line 50, column 50

56556-untitled.png

Regards

1 REPLY 1

Super Mentor

@Jorge Alonso

File "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.2/services/stack_advisor.py",
 line 920, in recommendKnoxConfigurations
 root = ET.fromstring(topologyContent)

Based on the error it looks like you are using knox and your knox topology file seems to have some missing tags.

Can you please check & share your Knox Topology XML file (Somewhere here "/etc/knox/conf/topologies") and then find if any tag is not terminated properly?

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.