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

Not able to Build the Jar using Java 1.7 #34

Open
sandeepkt opened this issue Aug 4, 2017 · 5 comments
Open

Not able to Build the Jar using Java 1.7 #34

sandeepkt opened this issue Aug 4, 2017 · 5 comments
Labels

Comments

@sandeepkt
Copy link

My cluster is build on Java 1.7 after exporting the JAVA HOME i am not able to build the jar file failing with below exception Please let me know if it is compatible with Java 1.7

Error:
Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':solr-hadoop-common:solr-hadoop-io:compileJava'.] from daemon DaemonInfo{pid=10063, address=[c6420d07-8233-4272-9515-ea571d8e1e75 port:40778, addresses:[/127.0.0.1]], idle=false, lastBusy=1501864598134, context=DefaultDaemonContext[uid=d6b0e1b2-e9d5-4ade-bae6-64c2c1c46f0b,javaHome=/local/java/jdk1.7.0_80,daemonRegistryDir=/home/admin_toopras/.gradle/daemon,pid=10063,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done).
hive-solr.txt

@acesar
Copy link
Contributor

acesar commented Aug 16, 2017

To compile with java 1.7, please use the following commit:
f39cd7b

hive-solr in master was updated to Solr 6.x and it now only works with java 1.8

@sandeepkt
Copy link
Author

Thanks for the reply.
I have used the f39cd7b commit and build but still failing with Java compatible issue.
Using java jdk1.7.0_80.

Error:
:solr-hadoop-common:solr-hadoop-io:compileJava FAILED
:solr-hadoop-common:solr-hadoop-io:compileJava (Thread[Daemon worker Thread 3,5,main]) completed. Took 0.433 secs.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':solr-hadoop-common:solr-hadoop-io:compileJava'.

Compilation failed; see the compiler error output for details

@acesar
Copy link
Contributor

acesar commented Aug 16, 2017

The problem is with the submodule.
You need to change it too.
use this commit for the solr-hadoop-common
lucidworks/solr-hadoop-common@b484c84

@sandeepkt
Copy link
Author

Thanks, once again, But Still failing with same exception.
For main project i used f39cd7b
For hadoop-common i used b484c84

Error:
4 errors
44 warnings
:solr-hadoop-common:solr-hadoop-io:compileJava FAILED
:solr-hadoop-common:solr-hadoop-io:compileJava (Thread[Daemon worker,5,main]) completed. Took 39.18 secs.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':solr-hadoop-common:solr-hadoop-io:compileJava'.

Compilation failed; see the compiler error output for details.

@sandeepkt
Copy link
Author

More information 👍 Error:
Download https://jcenter.bintray.com/commons-codec/commons-codec/1.9/commons-codec-1.9.jar
Executing task ':solr-hadoop-common:solr-hadoop-io:compileJava' (up-to-date check took 37.968 secs) due to:
No history is available.
All input files are considered out-of-date for incremental task ':solr-hadoop-common:solr-hadoop-io:compileJava'.
Compiling with JDK Java compiler API.
warning: /root/.gradle/caches/modules-2/files-2.1/org.apache.solr/solr-solrj/6.5.0/ed4ca06c007898374506cf3b0a493ffd738336ae/solr-solrj-6.5.0.jar(org/apache/solr/common/SolrInputDocument.class): major version 52 is newer than 51, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.

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

No branches or pull requests

2 participants