Created 02-08-2017 11:44 AM
Hi,
I am using metron 0.3.0 quick dev setup and trying to configure squid feed.
this command is being used:
[root@node1 vagrant]# /usr/metron/$METRON_VERSION/bin/zk_load_configs.sh --mode PUSH -i /usr/metron/$METRON_VERSION/config/zookeeper -z $ZOOKEEPER_HOST:2181
and I am receiving following java error:
log4j:WARN No appenders could be found for logger (org.apache.curator.framework.imps.CuratorFrameworkImpl). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Exception in thread "main" java.lang.RuntimeException: Unable to load at org.apache.metron.common.configuration.ConfigurationType.lambda$static$1(ConfigurationType.java:46) at org.apache.metron.common.configuration.ConfigurationType.deserialize(ConfigurationType.java:87) at org.apache.metron.common.configuration.ConfigurationsUtils.writeSensorParserConfigToZookeeper(ConfigurationsUtils.java:98) at org.apache.metron.common.configuration.ConfigurationsUtils.uploadConfigsToZookeeper(ConfigurationsUtils.java:234) at org.apache.metron.common.configuration.ConfigurationsUtils.uploadConfigsToZookeeper(ConfigurationsUtils.java:213) at org.apache.metron.common.cli.ConfigurationManager.push(ConfigurationManager.java:155) at org.apache.metron.common.cli.ConfigurationManager.run(ConfigurationManager.java:170) at org.apache.metron.common.cli.ConfigurationManager.run(ConfigurationManager.java:161) at org.apache.metron.common.cli.ConfigurationManager.main(ConfigurationManager.java:198) Caused by: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input at [Source: ; line: 1, column: 0] at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:255) at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3851) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3792) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2797) at org.apache.metron.common.utils.JSONUtils.load(JSONUtils.java:82) at org.apache.metron.common.configuration.ConfigurationType.lambda$static$1(ConfigurationType.java:44) ... 8 more [root@node1 vagrant]# /usr/metron/$METRON_VERSION/bin/zk_load_configs.sh --mode PUSH -i /usr/metron/$METRON_VERSION/config/zookeeper -z $ZOOKEEPER_HOST:2181 log4j:WARN No appenders could be found for logger (org.apache.curator.framework.imps.CuratorFrameworkImpl). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Exception in thread "main" java.lang.RuntimeException: Unable to load at org.apache.metron.common.configuration.ConfigurationType.lambda$static$1(ConfigurationType.java:46) at org.apache.metron.common.configuration.ConfigurationType.deserialize(ConfigurationType.java:87) at org.apache.metron.common.configuration.ConfigurationsUtils.writeSensorParserConfigToZookeeper(ConfigurationsUtils.java:98) at org.apache.metron.common.configuration.ConfigurationsUtils.uploadConfigsToZookeeper(ConfigurationsUtils.java:234) at org.apache.metron.common.configuration.ConfigurationsUtils.uploadConfigsToZookeeper(ConfigurationsUtils.java:213) at org.apache.metron.common.cli.ConfigurationManager.push(ConfigurationManager.java:155) at org.apache.metron.common.cli.ConfigurationManager.run(ConfigurationManager.java:170) at org.apache.metron.common.cli.ConfigurationManager.run(ConfigurationManager.java:161) at org.apache.metron.common.cli.ConfigurationManager.main(ConfigurationManager.java:198) Caused by: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input at [Source: ; line: 1, column: 0] at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:255) at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3851) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3792) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2797) at org.apache.metron.common.utils.JSONUtils.load(JSONUtils.java:82) at org.apache.metron.common.configuration.ConfigurationType.lambda$static$1(ConfigurationType.java:44) ... 8 more
Created 02-08-2017 12:34 PM
I identified the reason behind same. i was having incomplete .json file indie /parser folder. When this incomplete .json was removed and same command was executed, it ran with no error.
Created 02-08-2017 12:34 PM
I identified the reason behind same. i was having incomplete .json file indie /parser folder. When this incomplete .json was removed and same command was executed, it ran with no error.