Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error in Renderer.java from Log Analyzer from IOUtils #53

Open
XorBiTangent opened this issue Jan 24, 2015 · 4 comments
Open

Compile error in Renderer.java from Log Analyzer from IOUtils #53

XorBiTangent opened this issue Jan 24, 2015 · 4 comments

Comments

@XorBiTangent
Copy link

I cloned the Databricks project, updated my JDK and JRE to version 8, and got the following compilation error:

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project log-analyzer: Compilation failure
[ERROR] ${user}/databricks/reference-apps/logs_analyzer/app/java8/src/main/java/com/databricks/apps/logs/Renderer.java:[19,28] error: no suitable method found for toString(InputStream,Charset)

So I added the dependency to the pom.xml, and downloaded and installed the Apache IOUtils JAR to my local .m2 repository, but I am still getting this same error.

Has anyone seen this before? Any ideas what could be causing it out of the box like this? I didn't remove Java 7, because I have other development work that depends on it, but it is disabled.

@harikrishnag
Copy link

Getting the same error.

@vidaha
Copy link
Contributor

vidaha commented Feb 6, 2015

Is this the dependency you added to the pom?

    <dependency> <!-- Apache Commons IO -->
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>2.4</version>
    </dependency>

@XorBiTangent
Copy link
Author

This dependency below was the one I added. However, I later discovered that it was a problem in the dependency tree. So I restored the original pom, and I actually ended up being able to build by using a hacky workaround. Something in the dependency tree requires the 2.4 version, but the dependency that is specified is 2.1. So I ended up copying the 2.4 jar into my maven repository under the name of the 2.1 jar, and then it was able to compile. I haven't had time to trace through to find the source of the conflicting dependencies, to determine if it is an included project that is the source of the conflict.

<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-io</artifactId>
    <version>2.4</version>
</dependency>

@vnkmr7620
Copy link

i am also getting same error as XorBiTangent error. but i followed vidaha method, now mvn is build successfule after that,

${YOUR_SPARK_HOME}/bin/spark-submit

  • --class "com.databricks.apps.logs.LogAnalyzerAppMain"
    
  • --master local[4]
    
  • target/uber-log-analyzer-1.0.jar
    
  • --logs_directory /tmp/logs
    
  • --output_html_file /tmp/log_stats.html
    

i found the above commands for execution and i tried and when i opened chrome with localhost it is not showing anything. would you please tell us how to execute after maven build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants