Support Questions

Find answers, ask questions, and share your expertise

metron rest service start failed


metron-rest component failing to start with the following error:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 18/08/30 08:48:41 ERROR boot.SpringApplication: Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'alertsUIController': Unsatisfied dependency expressed through field 'alertsUIService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'alertsUIServiceImpl' defined in URL [jar:file:/usr/hcp/ 9/metron/lib/metron-rest-!/org/apache/metron/rest/service/impl/AlertsUIServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSettingsClient' defined in class path resource [org/apache/metron/rest/config/HBaseConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.metron.hbase.client.UserSettingsClient]: Factory method 'userSettingsClient' threw exception; nested exception is java.lang.IllegalStateException: You must configure user.settings.hbase.table and in the global config. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject( at org.springframework.beans.factory.annotation.InjectionMetadata.inject( at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues( at at at at$doGetBean$0( at at at at at at at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh( at org.springframework.boot.SpringApplication.refresh( at org.springframework.boot.SpringApplication.refreshContext( at at at at

Ambari shows alerts just fine, or is this some other alerting service?


Super Mentor

@Joel Hatcher

As we see the cause of failure then we find the following :

Parsing file: /usr/hcp/ 
932 [main] INFO o.a.s.f.p.FluxParser - loading YAML from input stream... 
944 [main] INFO o.a.s.f.p.FluxParser - Performing property substitution. 
954 [main] INFO o.a.s.f.p.FluxParser - Not performing environment 
variable substitution. Exception in thread "main" while parsing a flow 
sequence in 'string', line 165, column 21: args: 
[${profiler.max.routes.per.bolt}] ^ expected ',' or ']', but got 
FlowMappingStart in 'string', line 165, column 23: args: 


Above seems to be a YAML parsing error which might be due to incorrect data. So can you please check the YAML file "/usr/hcp/" file using some Online YAML parsing tool and then validate to see if there are some special characters which is causing the parsing failure. Specially around the property "profiler.max.routes.per.bolt". Looks like there may be some issue at line 165 on this file.

After fixing the value please restart it. If you still face any issue then please share the file.

I put a comma after the value and started metron-rest. For a little bit it showed started in ambari, but then went back to not running. I have attached the metron-rest log.metron-rest.tar.gz
the log entries for today start at line 6610

New Contributor



you can also user for YAML validate as well as convert that to csv,json,xml and beautify and minify that



That does not allow the service to start, here is my yaml file.


When I dump my yaml file into this validator:
It reports "No errors", yaml perfectly valid.


Here is my remote.yaml file.

New Contributor

You can also use for the yaml validator as well as yaml converter to json,csv,xml,base64 also for beautify and minify YAML.


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