Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

error in pushing parsed squid to zookeeper

avatar
New Member

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


		
1 ACCEPTED SOLUTION

avatar
New Member

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.

View solution in original post

1 REPLY 1

avatar
New Member

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.