Giter Site home page Giter Site logo

Comments (6)

akshayrai avatar akshayrai commented on September 27, 2024 1

@BrianGallew @canghaiyisu666, I am not sure why Spark isn't picking up 'spark.eventLog.dir'.
I have submitted a pull request to make the log directory configurable in Dr. Elephant. You can cherry pick or pull the changes once I commit it.

Then you can add your spark event log directory to the FetcherConf.xml present in app-conf directory.

from dr-elephant.

akshayrai avatar akshayrai commented on September 27, 2024

@canghaiyisu666, I do not have much context on this. What is your usecase?

Can't you do, new SparkConf().get("spark.eventLog.dir", DEFAULT_LOG_DIR)?

from dr-elephant.

canghaiyisu666 avatar canghaiyisu666 commented on September 27, 2024

@akshayrai
new SparkConf().get("spark.eventLog.dir", DEFAULT_LOG_DIR) uses java.lang.System.getProperties() to load variable.
But in CDH cluster ,the environment variable was empty util got a spark runtime.
so, i got the DEFAULT_LOG_DIR here.

perhaps , we could use conf.addResource("PATH_TO_spark-defaults.conf"),to figure out.

from dr-elephant.

BrianGallew avatar BrianGallew commented on September 27, 2024

I have a possibly-related issue: spark.eventLog.dir is set in /etc/spark/conf/spark-defaults.conf, but is ignored by Dr. Elephant, resulting in failure to analyze Spark jobs.

04-29-2016 16:29:26 ERROR com.linkedin.drelephant.ElephantRunner : java.security.PrivilegedActionException: java.io.FileNotFoundException: File does not exist: /system/spark-history/application_1461865977868_0043_1.snappy

The actual logfile is at

-rwxrwx---   3 azkaban    spark          129563 2016-04-29 03:40 /var/log/spark/apps/application_1461865977868_0043

from dr-elephant.

canghaiyisu666 avatar canghaiyisu666 commented on September 27, 2024

@BrianGallew
we have the same issue.
spark.eventLog.dir was set in /etc/spark/conf/spark-defaults.conf, But "new SparkConf()" couldn't get this. So you got the default dir prefix "/system/spark-history"

from dr-elephant.

canghaiyisu666 avatar canghaiyisu666 commented on September 27, 2024

@akshayrai
Very reasonable~

from dr-elephant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.