Ask Your Question
0

Building DataCollector Edge from master

asked 2020-05-21 15:58:25 -0500

jdomizio gravatar image

Hello - I am trying to follow the build instructions located here for datacollector edge on a mac using Catalina 10.15.4 with zsh: https://github.com/streamsets/datacol...

I have tried to both locally build with: ./gradlew goClean dist publishToMavenLocal and to build the docker image with docker build -t streamsets/datacollector-edge .

I published the gradle scan here https://scans.gradle.com/s/criusdqe6p...

Is there a dependency or step that I am missing here?

Example local error output

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':buildDarwinAmd64'.
> Build failed due to return code 2 of:
  Command:
   /Users/jason/.gradle/go/binary/1.13.5/go/bin/go build -tags kafka javascript aws -ldflags  -X github.com/streamsets/datacollector-edge/container/common.Version=3.17.0-SNAPSHOT -X github.com/streamsets/datacollector-edge/container/common.BuiltBy=jason -X github.com/streamsets/datacollector-edge/container/common.BuiltDate=2020-05-21T164649Z -X github.com/streamsets/datacollector-edge/container/common.BuiltRepoSha=6889ed1 -o build/bin/darwin-amd64/edge github.com/streamsets/datacollector-edge
  Env:
   GOEXE=
   GOPATH=/Users/jason/go/src/github.com/streamsets/datacollector-edge/.gogradle/project_gopath
   GOROOT=/Users/jason/.gradle/go/binary/1.13.5/go
   GOOS=darwin
   GOARCH=amd64

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.0/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 3m 5s
6 actionable tasks: 6 executed

Example docker error output

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':buildLinuxAmd64'.
> Build failed due to return code 2 of:
  Command:
   /root/.gradle/go/binary/1.13.5/go/bin/go build -tags kafka javascript aws -ldflags  -X github.com/streamsets/datacollector-edge/container/common.Version=3.17.0-SNAPSHOT -X github.com/streamsets/datacollector-edge/container/common.BuiltBy=root -X github.com/streamsets/datacollector-edge/container/common.BuiltDate=2020-05-21T195925Z -X github.com/streamsets/datacollector-edge/container/common.BuiltRepoSha=6889ed1 -s -w -o build/bin/linux-amd64/edge github.com/streamsets/datacollector-edge
  Env:
   GOEXE=
   GOPATH=/usr/src/datacollector-edge/.gogradle/project_gopath
   GOROOT=/root/.gradle/go/binary/1.13.5/go
   GOOS=linux
   GOARCH=amd64

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 11m 32s
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-05-26 13:02:56 -0500

jdomizio gravatar image

It turns out the build was just broken. the build was fixed with this commit:

https://github.com/streamsets/datacol...

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-05-21 15:58:25 -0500

Seen: 23 times

Last updated: May 26