Skip to content

how to build #1

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

Open
scxwhite opened this issue Nov 19, 2020 · 2 comments
Open

how to build #1

scxwhite opened this issue Nov 19, 2020 · 2 comments

Comments

@scxwhite
Copy link
Owner

  1. install java 11 (set JAVA_HOME) and java 8 (set JAVA8_HOME)
  2. run ./gradlew -DskipTests=true build --info --stacktrace

the build jar path: ./spark/sql-30/build/libs/elasticsearch-spark-30_2.12-8.0.0-SNAPSHOT.jar

@scxwhite scxwhite pinned this issue Nov 19, 2020
@scxwhite
Copy link
Owner Author

see details : elastic/elasticsearch-hadoop#1498

@zjd-melo
Copy link

I follow your instructions, got some error, i am not good at java, have any idles?

 @ line 7, column 1.
   import org.elasticsearch.gradle.precommit.UpdateShasTask
   ^

/home/hdfs/elasticsearch-hadoop-spark3.0/buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/BuildPlugin.groovy: 5: unable to resolve class org.elasticsearch.gradle.precommit.DependencyLicensesTask
 @ line 5, column 1.
   import org.elasticsearch.gradle.precommit.DependencyLicensesTask
   ^

/home/hdfs/elasticsearch-hadoop-spark3.0/buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/BuildPlugin.groovy: 6: unable to resolve class org.elasticsearch.gradle.precommit.LicenseHeadersTask
 @ line 6, column 1.
   import org.elasticsearch.gradle.precommit.LicenseHeadersTask
   ^

3 errors

:buildSrc:compileGroovy (Thread[Execution worker for ':buildSrc',5,main]) completed. Took 1.845 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':buildSrc:compileGroovy'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':buildSrc:compileGroovy'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:207)
        at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)``` 

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

2 participants