java.io.FileNotFoundException: file:/opt/spark-jobserver/log4j-server.properties (No such file or directory)

JIRA | Michal Malohlava | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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

    JIRA | 2 years ago | Michal Malohlava
    java.io.FileNotFoundException: file:/opt/spark-jobserver/log4j-server.properties (No such file or directory)
  2. 0

    GitHub comment 134#43561570

    GitHub | 3 years ago | benjyw
    java.io.FileNotFoundException: log4j.properties (No such file or directory)
  3. 0

    Hmm, not understanding log4j properly :(

    Google Groups | 1 decade ago | Pep
    java.io.FileNotFoundException: TestOutputFile (No such file or directory)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [CASSANDRA-948] Cannot Start Cassandra Under Windows - ASF JIRA

    apache.org | 1 year ago
    java.io.FileNotFoundException: null\log4j.properties (The system cannot find the path specified)
  6. 0

    javatalks.ru / На Tomcat log4j не видит файлов

    javatalks.ru | 2 years ago
    java.io.FileNotFoundException: ./WEB-INF/log4j.properties (Нет такого файла или каталога)

  1. jstrayer 1 times, last 1 day ago
  2. linxiaolong 1 times, last 3 weeks ago
  3. marcbouvierdav 15 times, last 3 weeks ago
  4. tyson925 9 times, last 1 month ago
  5. rp 1 times, last 1 month ago
54 more registered users
41 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    file:/opt/spark-jobserver/log4j-server.properties (No such file or directory)

    at java.io.FileInputStream.open()
  2. Java RT
    FileInputStream.<init>
    1. java.io.FileInputStream.open(Native Method)
    2. java.io.FileInputStream.<init>(FileInputStream.java:146)
    3. java.io.FileInputStream.<init>(FileInputStream.java:101)
    3 frames
  3. Apache Log4j
    PropertyConfigurator.configure
    1. org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:372)
    2. org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:403)
    2 frames
  4. water.util
    Log.info
    1. water.util.Log.createLog4j(Log.java:308)
    2. water.util.Log.write0(Log.java:106)
    3. water.util.Log.write0(Log.java:92)
    4. water.util.Log.write(Log.java:77)
    5. water.util.Log.info(Log.java:54)
    5 frames
  5. water.init
    NetworkInit.initializeNetworkSockets
    1. water.init.NetworkInit.initializeNetworkSockets(NetworkInit.java:363)
    1 frame
  6. water
    H2OClientApp.main
    1. water.H2O.startLocalNode(H2O.java:874)
    2. water.H2O.main(H2O.java:1253)
    3. water.H2OClient.main(H2OClient.java:16)
    4. water.H2OClientApp.driver(H2OClientApp.java:24)
    5. water.H2OClientApp.main(H2OClientApp.java:18)
    5 frames
  7. org.apache.spark
    H2OContext.start
    1. org.apache.spark.h2o.H2OContext.start(H2OContext.scala:151)
    1 frame