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

0 votes
3 views
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.
Applies To
  • Cloudera Management Service
  • Safety valve
Symptoms

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: java.io.StringReader@1012b3e7; line: 1, column: 2]
at com.cloudera.enterprise.JsonUtil.valueFromString(JsonUtil.java:161)
at com.cloudera.cmf.BasicScmProxy.fetchFragmentAndHash(BasicScmProxy.java:692)
at com.cloudera.cmf.BasicScmProxy.access$1000(BasicScmProxy.java:54)
at com.cloudera.cmf.BasicScmProxy$9.call(BasicScmProxy.java:661)
at com.cloudera.cmf.BasicScmProxy$9.call(BasicScmProxy.java:647)
at com.cloudera.cmf.BasicScmProxy.fetch(BasicScmProxy.java:552)
at com.cloudera.cmf.BasicScmProxy.getFragmentAndHash(BasicScmProxy.java:647)
at com.cloudera.cmf.DescriptorAndFragments.newDescriptorAndFragments(DescriptorAndFragments.java:64)
at com.cloudera.cmon.firehose.Main.main(Main.java:376)
Caused by: org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: java.io.StringReader@1012b3e7; line: 1, column: 2]
at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1292)
at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:385)
at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:306)
at org.codehaus.jackson.impl.ReaderBasedParser._handleUnexpectedValue(ReaderBasedParser.java:630)
at org.codehaus.jackson.impl.ReaderBasedParser.nextToken(ReaderBasedParser.java:364)
at org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2439)
at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2396)
at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1602)
at com.cloudera.enterprise.JsonUtil.valueFromStringUnsafe(JsonUtil.java:185)
at com.cloudera.enterprise.JsonUtil.valueFromString(JsonUtil.java:159)
... 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(String.java:646) 
at com.cloudera.cmf.service.config.BaseRedactionStrategy.redactEnv(BaseRedactionStrategy.java:133) 
at com.cloudera.cmf.service.config.BaseRedactionStrategy.getRedactedSafetyValve(BaseRedactionStrategy.java:48) 
at com.cloudera.cmf.service.config.ApiRedactionStrategy.getRedactedValue(ApiRedactionStrategy.java:52) 
at com.cloudera.cmf.service.config.ParamSpecUtils.redactInApi(ParamSpecUtils.java:183)

Cause

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.

Instructions
  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:
    <variable>=<value>
  4. An example of an invalid format is missing values, like these:

   user=
  password=

             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.

...