Created on 05-21-2020 07:38 AM - last edited on 05-21-2020 01:34 PM by cjervis
Hello,
I am trying to install Apache Metron in a cluster created with Ambari and HDP 2.6.5.0.
When I select Metron as a service to install, I get stuck when trying to get to the next step, the next button shows as always disabled. This is not happening with any other service.
I followed this guides:
My environment specs are:
If I check the console, I can see something is returning a 500 internal server error, but I am no expert of JS, so I cannot dig deeper.
Created 05-25-2020 07:25 AM
I changed the file
/var/lib/ambari-server/resources/common-services/METRON/0.7.2/service_advisor.py
and inserted a return before all checks and it is working as a workaround, but is not a complete solution:
The problem seems to be that the 'componentList' does not contain "METRON_PARSERS" key, and this gives an error, that later becomes a 500 error qhen the API is called, and later becomes a disabled "Next" button with no feedback for the user.
Anyone here knows from were (which file) the 'componentList' is extracted?
Created 05-25-2020 04:34 AM
Also followed this link: https://community.cloudera.com/t5/Support-Questions/add-node-to-the-ambari-cluster-the-next-button-n... with this results:
1. No errors in ambari-agent logs?
2. Page refreshed, no change happended
3. Already using an incognito browser with cookies activated and protections disabled.
4. Errors encountered on ambari-server logs. Error file attached
5. Already explained above the JS console error
This happens when I change metron Enrichment from one host to another one
Traceback (most recent call last):
File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 190, in <module>
main(sys.argv)
File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 122, in main
result = stackAdvisor.validateComponentLayout(services, hosts)
File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", line 1072, in validateComponentLayout
validationItems = self.getComponentLayoutValidations(services, hosts)
File "/var/lib/ambari-server/resources/scripts/../stacks/HDP/2.5/services/stack_advisor.py", line 119, in getComponentLayoutValidations
parentItems = super(HDP25StackAdvisor, self).getComponentLayoutValidations(services, hosts)
File "/var/lib/ambari-server/resources/scripts/../stacks/HDP/2.0.6/services/stack_advisor.py", line 114, in getComponentLayoutValidations
items = super(HDP206StackAdvisor, self).getComponentLayoutValidations(services, hosts)
File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", line 1095, in getComponentLayoutValidations
items.extend(serviceAdvisor.getServiceComponentLayoutValidations(services, hosts))
File "/var/lib/ambari-server/resources/common-services/METRON/0.7.2/service_advisor.py", line 42, in getServiceComponentLayoutValidations
metronParsersHost = self.getHosts(componentsList, "METRON_PARSERS")[0]
IndexError: list index out of range
Created 05-25-2020 07:25 AM
I changed the file
/var/lib/ambari-server/resources/common-services/METRON/0.7.2/service_advisor.py
and inserted a return before all checks and it is working as a workaround, but is not a complete solution:
The problem seems to be that the 'componentList' does not contain "METRON_PARSERS" key, and this gives an error, that later becomes a 500 error qhen the API is called, and later becomes a disabled "Next" button with no feedback for the user.
Anyone here knows from were (which file) the 'componentList' is extracted?
Created 05-25-2020 08:01 AM
The component list is extracted from the configuration being made in the web, so the question would be: Why 'METRON_INDEXING', 'METRON_PARSING', 'METRON_REST', 'METRON_MANAGEMENT_UI'... are not appearing as services?
The only services that appear are PCAP, PROFILER and ENRICHEMENT:
Created 07-22-2020 05:44 AM
The real problem was the Ambari version, that is not compatible with Metron.
From Ambari 2.7 onwards, all this problems arise, so the maximum compatible version for now is Ambari 2.6.X