Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Building DataCollector Edge from master

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/datacollector-edge/blob/master/BUILD.md

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/criusdqe6pchq/failure

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