hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remus Rusanu <rem...@microsoft.com>
Subject Why is the test hive-log4j.properties attempting to init an FTP logger?? (Windows)
Date Thu, 28 Nov 2013 10:36:46 GMT
When I try to run the TestCliDriver, I get this in the -output.txt:

log4j: Using URL [file://E:/HW/project/hive-monarch/itests/qtest/target/tmp/conf/hive-log4j.properties]
for automatic log4j configuration.
log4j: Reading configuration from URL file://E:/HW/project/hive-monarch/itests/qtest/target/tmp/conf/hive-log4j.properties
log4j:ERROR Could not read configuration file from URL [file://E:/HW/project/hive-monarch/itests/qtest/target/tmp/conf/hive-log4j.properties].
java.net.ConnectException: Connection timed out: connect
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
       at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
       at java.net.Socket.connect(Socket.java:529)
       at java.net.Socket.connect(Socket.java:478)
       at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
       at sun.net.NetworkClient.openServer(NetworkClient.java:118)
       at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)
       at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)
       at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:270)
       at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:352)
       at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:524)
       at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:483)
       at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
       at org.apache.log4j.Logger.getLogger(Logger.java:104)
       at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:262)
       at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:108)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
       at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1025)
       at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:844)
       at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:541)
       at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:292)
       at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:671)
       at org.apache.hadoop.hive.ql.QTestUtil.<clinit>(QTestUtil.java:103)
       at org.apache.hadoop.hive.cli.TestCliDriver.<clinit>(TestCliDriver.java:32)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.junit.internal.runners.SuiteMethod.testFromSuiteMethod(SuiteMethod.java:34)
       at org.junit.internal.runners.SuiteMethod.<init>(SuiteMethod.java:23)
       at org.junit.internal.builders.SuiteMethodBuilder.runnerForClass(SuiteMethodBuilder.java:14)
       at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
       at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
       at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
       at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
       at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:262)
       at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
       at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
       at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
       at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
       at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
log4j:ERROR Ignoring configuration file [file://E:/HW/project/hive-monarch/itests/qtest/target/tmp/conf/hive-log4j.properties].

The log4j file is the default one from sources (hive.root.logger=DEBUG,DRFA etc) and I don't
see any reference to FTP.

Any idea why does log4j try opening a FTP connection?

Thanks,
~Remus

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message