GoogleCloudPlatform / golang-samples

Sample apps and code written for Google Cloud in the Go programming language.
Apache License 2.0
4.29k stars 1.73k forks source link

GLIB not found error when running Go Dataflow Flex template example #4405

Open damondouglas opened 1 week ago

damondouglas commented 1 week ago

The Dataflow Job fails when following the example at https://cloud.google.com/dataflow/docs/guides/templates/using-flex-templates for the Go SDK which runs dataflow/flex-templates/wordcount. Inspecting the logs reveals an error related to not finding the glibc library. Adding CGO_ENABLED=0 resolves the issue. Note that the corresponding https://cloud.google.com/dataflow/docs/guides/templates/using-flex-templates documentation has been fixed.