Hello Mauro, this is an error in the current Windows cmd file for storm, you can fix this by setting the log dir to an absolute path like this:
storm.log4j2.conf.dir: "C:/Tools/apache-storm-1.1.0/log4j2" in the yaml conf or download the fixed cmd file from https://raw.githubusercontent.com/apache/storm/master/bin/storm-config.cmd from the master branch https://issues.apache.org/jira/browse/STORM-2451 bye, Alexander On 06-Apr-17 23:24, Mauro Giusti wrote: > > Hi all – > > I am getting the following error when running Flux: > > > > ERROR StatusLogger Unable to access file:///log4j2/cluster.xml > > java.io.FileNotFoundException: \log4j2\cluster.xml (The system cannot > find the path specified) > > at java.io.FileInputStream.open0(Native Method) > > at java.io.FileInputStream.open(FileInputStream.java:195) > > at java.io.FileInputStream.<init>(FileInputStream.java:138) > > at java.io.FileInputStream.<init>(FileInputStream.java:93) > > at > sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90) > > at > sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188) > > at java.net.URL.openStream(URL.java:1045) > > at > org.apache.logging.log4j.core.config.ConfigurationFactory.getInputFromUri(ConfigurationFactory.java:307) > > at > org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:473) > > at > org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:420) > > at > org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:265) > > at > org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:613) > > at > org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:634) > > at > org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:229) > > at > org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152) > > at > org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45) > > at > org.apache.logging.log4j.LogManager.getContext(LogManager.java:194) > > at > org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:122) > > at > org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:43) > > at > org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:46) > > at > org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29) > > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358) > > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383) > > at org.apache.storm.flux.Flux.<clinit>(Flux.java:42) > > ERROR StatusLogger Reconfiguration failed: No configuration found for > '266474c2' at 'null' in 'null' > > > > I am running the following: > > storm jar target/SampleTopology-1.0-SNAPSHOT.jar > org.apache.storm.flux.Flux --local --resource /topology.yaml > > > > This is a plain installation, I installed it on C:\Apache\storm-1.1.0 > > > > Looks to me the issue is here: > > > > if not %STORM_LOG4J2_CONFIGURATION_DIR% == nil ( > > set > STORM_LOG4J2_CONFIGURATION_FILE="file:///%STORM_LOG4J2_CONFIGURATION_DIR%\cluster.xml" > > ) > > > > This line is getting the default configuration log4j2 (my > "C:\Apache\storm-1.1.0\conf\storm.yaml" is unchanged). > > > > If I comment this line out then it works like a charm, the following > line does pick up my environment variable STORM_HOME. > > > > if not defined STORM_LOG4J2_CONFIGURATION_FILE ( > > set > STORM_LOG4J2_CONFIGURATION_FILE="file:///%STORM_HOME%\log4j2\cluster.xml" > > ) > > > > Thanks – > > Mauro Giusti. > > > -- Alexander Lehmann <[email protected]> https://about.me/alexlehm
