java.io.FileNotFoundException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi i'm trying to build assembly with sparkling-water to submit to spark-jobserver to submit after to yarn. Here's my sbt dependency: "ai.h2o" %% "sparkling-water-core" % "1.4.3" excludeAll( ExclusionRule(organization = "org.apache.spark"), ExclusionRule(organization = "com.google.guava"), ExclusionRule(organization = "org.slf4j"), ExclusionRule(organization = "com.esotericsoftware.kryo")), But get runtime exception: log4j:ERROR Could not read configuration file [file:/opt/spark-jobserver/log4j-server.properties]. java.io.FileNotFoundException: file:/opt/spark-jobserver/log4j-server.properties (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:146) at java.io.FileInputStream.<init>(FileInputStream.java:101) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:372) at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:403) at water.util.Log.createLog4j(Log.java:308) at water.util.Log.write0(Log.java:106) at water.util.Log.write0(Log.java:92) at water.util.Log.write(Log.java:77) at water.util.Log.info(Log.java:54) at water.init.NetworkInit.initializeNetworkSockets(NetworkInit.java:363) at water.H2O.startLocalNode(H2O.java:874) at water.H2O.main(H2O.java:1253) at water.H2OClient.main(H2OClient.java:16) at water.H2OClientApp.driver(H2OClientApp.java:24) at water.H2OClientApp.main(H2OClientApp.java:18) at org.apache.spark.h2o.H2OContext.start(H2OContext.scala:151) ... log4j:ERROR Ignoring configuration file [file:/opt/spark-jobserver/log4j-server.properties]. ERROR: Log.getLogDir() failed, exiting now. java.lang.Exception: LOG_DIR not yet defined at water.util.Log.getLogDir(Log.java:154) at water.H2O.main(H2O.java:1256) at water.H2OClient.main(H2OClient.java:16) at water.H2OClientApp.driver(H2OClientApp.java:24) at water.H2OClientApp.main(H2OClientApp.java:18) at org.apache.spark.h2o.H2OContext.start(H2OContext.scala:151) I have this file /opt/spark-jobserver/log4j-server.properties on a driver node
    via by Michal Malohlava,
  • GitHub comment 134#43561570
    via GitHub by benjyw
    ,
  • GitHub comment 18#9328510
    via GitHub by nikolaykuz
    ,
    • java.io.FileNotFoundException: file:/opt/spark-jobserver/log4j-server.properties (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:146) at java.io.FileInputStream.<init>(FileInputStream.java:101) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:372) at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:403) at water.util.Log.createLog4j(Log.java:308) at water.util.Log.write0(Log.java:106) at water.util.Log.write0(Log.java:92) at water.util.Log.write(Log.java:77) at water.util.Log.info(Log.java:54) at water.init.NetworkInit.initializeNetworkSockets(NetworkInit.java:363) at water.H2O.startLocalNode(H2O.java:874) at water.H2O.main(H2O.java:1253) at water.H2OClient.main(H2OClient.java:16) at water.H2OClientApp.driver(H2OClientApp.java:24) at water.H2OClientApp.main(H2OClientApp.java:18) at org.apache.spark.h2o.H2OContext.start(H2OContext.scala:151)

    Users with the same issue

    HandemelindoHandemelindo
    3 times, last one,
    Unknown visitor
    Unknown visitor5 times, last one,
    abrazenebabrazeneb
    6 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    bpbhat77bpbhat77
    20 times, last one,
    180 more bugmates