Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-953

Exception when /var/log doesn't exist

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.0
    • Component/s: Tools, Build & Test
    • Labels:
      None

      Description

      /var/log doesn't exist on my Mac. Can we make this location configurable, and default to something that we know will exist such as the current directory?

      09:57:51,684 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - openFile(/var/log/drill/sqlline.log,true) call failed. java.io.FileNotFoundException: /var/log/drill/sqlline.log (No such file or directory)
      at java.io.FileNotFoundException: /var/log/drill/sqlline.log (No such file or directory)
      at at java.io.FileOutputStream.open(Native Method)
      at at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
      at at ch.qos.logback.core.recovery.ResilientFileOutputStream.<init>(ResilientFileOutputStream.java:28)
      at at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:149)
      at at ch.qos.logback.core.FileAppender.start(FileAppender.java:108)
      at at ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:86)
      at at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96)
      at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:317)
      at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
      at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
      at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
      at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
      at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
      at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
      at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
      at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
      at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148)
      at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
      at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
      at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
      at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
      at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
      at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
      at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
      at at org.apache.drill.jdbc.DrillConnectionImpl.<clinit>(DrillConnectionImpl.java:52)
      at at org.apache.drill.jdbc.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:56)
      at at org.apache.drill.jdbc.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:43)
      at at org.apache.drill.jdbc.DrillFactory.newConnection(DrillFactory.java:51)
      at at net.hydromatic.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:126)
      at at sqlline.SqlLine$DatabaseConnection.connect(SqlLine.java:4732)
      at at sqlline.SqlLine$DatabaseConnection.getConnection(SqlLine.java:4786)
      at at sqlline.SqlLine$Commands.connect(SqlLine.java:4026)
      at at sqlline.SqlLine$Commands.connect(SqlLine.java:3935)
      at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at at java.lang.reflect.Method.invoke(Method.java:606)
      at at sqlline.SqlLine$ReflectiveCommandHandler.execute(SqlLine.java:2884)
      at at sqlline.SqlLine.dispatch(SqlLine.java:885)
      at at sqlline.SqlLine.initArgs(SqlLine.java:693)
      at at sqlline.SqlLine.begin(SqlLine.java:745)
      at at sqlline.SqlLine.start(SqlLine.java:498)
      at at sqlline.SqlLine.main(SqlLine.java:460)

        Attachments

        1. DRILL-953.1.patch.txt
          1.0 kB
          Patrick Wong

          Activity

            People

            • Assignee:
              DrillCommitter DrillCommitter
              Reporter:
              tshiran Tomer Shiran
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: