Giter Club home page Giter Club logo

root4j's People

Contributors

glorf avatar jpivarski avatar vkhristenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

root4j's Issues

Hadoop dependencies should be marked as provided

https://github.com/diana-hep/root4j/blob/master/pom.xml#L69

By not providing a scope, the dependencies are set to the compile scope by default. This means anyone that includes root4j in their project (directly or not) is going to get hadoop-client 2.7.3 & hadoop-hdfs 2.7.3 and all their transitive dependencies. For infrastructure libraries (like), this is not normally the intention, as most runtime environment will provide such JARs. See Maven docs for more info: https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope

error in file opening

Hello,

This is very interesting project. I was trying to compile and run, but unfortunately I could not open a root file with histograms with RootFileReader.java. Does it support histograms? Here are the errors:

 [java] Exception in thread "main" java.lang.NullPointerException
 [java] 	at java.util.Properties$LineReader.readLine(Properties.java:434)
 [java] 	at java.util.Properties.load0(Properties.java:353)
 [java] 	at java.util.Properties.load(Properties.java:341)
 [java] 	at org.dianahep.root4j.core.DefaultClassFactory.<init>(DefaultClassFactory.java:39)
 [java] 	at org.dianahep.root4j.RootFileReader.init(RootFileReader.java:217)
 [java] 	at org.dianahep.root4j.RootFileReader.<init>(RootFileReader.java:183)

root4j should not create new instances of the Hadoop Configuration

For some operations, root4j uses the same Hadoop Configuration instance as the one found in Spark, but in other cases it creates a new Hadoop Configuration, so it loses the configuration values set by Spark.

Here's an example of when it creates a new instance:
https://github.com/diana-hep/root4j/blob/master/src/main/java/org/dianahep/root4j/RootFileReader.java#L179

This issue was originally reported as a bug against the stocator program used by IBM Data Science Experience to read files Swift ("Object Storage service"). See: CODAIT/stocator#122

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.