Host Monitor Fails to Start | JsonParseException: Unexpected character | Invalid Format | Advanced Configurations

0 votes
asked Aug 30, 2017 in Hadoop by admin (4,410 points)
SummaryHow to search for invalid formats and modify the format for variables and values within an advanced configuration.


Host Monitor fails to start.

Host Monitor Role log contains these exceptions:

2016-08-02 10:46:31,676 WARN com.cloudera.cmf.event.publish.EventStorePublisherWithRetry: 
Failed to publish event: SimpleEvent{attributes={STACKTRACE=[com.cloudera.enterprise.JsonUtil$JsonRuntimeException: 
org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): 
expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source:; line: 1, column: 2]
at com.cloudera.enterprise.JsonUtil.valueFromString(
at com.cloudera.cmf.BasicScmProxy.fetchFragmentAndHash(
at com.cloudera.cmf.BasicScmProxy.access$1000(
at com.cloudera.cmf.BasicScmProxy$
at com.cloudera.cmf.BasicScmProxy$
at com.cloudera.cmf.BasicScmProxy.fetch(
at com.cloudera.cmf.BasicScmProxy.getFragmentAndHash(
at com.cloudera.cmf.DescriptorAndFragments.newDescriptorAndFragments(
at com.cloudera.cmon.firehose.Main.main(
Caused by: org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source:; line: 1, column: 2]
at org.codehaus.jackson.JsonParser._constructError(
at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(
at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(
at org.codehaus.jackson.impl.ReaderBasedParser._handleUnexpectedValue(
at org.codehaus.jackson.impl.ReaderBasedParser.nextToken(
at com.cloudera.enterprise.JsonUtil.valueFromStringUnsafe(
at com.cloudera.enterprise.JsonUtil.valueFromString(
... 8 more

Cloudera Manager Server log contains the following:

2016-08-01 10:52:05,662 WARN 802071147@scm-web-11:com.cloudera.api.ApiExceptionMapper: Unexpected exception. 
java.lang.StringIndexOutOfBoundsException: String index out of range: 13 
at java.lang.String.charAt( 
at com.cloudera.cmf.service.config.BaseRedactionStrategy.redactEnv( 
at com.cloudera.cmf.service.config.BaseRedactionStrategy.getRedactedSafetyValve( 
at com.cloudera.cmf.service.config.ApiRedactionStrategy.getRedactedValue( 
at com.cloudera.cmf.service.config.ParamSpecUtils.redactInApi(
Applies To
  • Cloudera Management Service
  • Safety valve

The exception occurs when Cloudera Manager parses Safety Valves for Environment Variables, Java Properties, or hue.ini files and finds an invalid format. Because of this, Cloudera Management Service fails to start.

  1. Search through Safety Valves by navigating in the Cloudera Manager Admin Console for each Service.  
  2. Click Configuration and search for Safety Valve.
  3. Verify that all uncommented lines are in this format:
  4. An example of an invalid format is missing values, like these:


             Those lines need to be removed.
        5. Restart Host Monitor after confirming all Safety Valves are in a valid format.

Please log in or register to answer this question.