haffar commented on issue #28034:
URL: https://github.com/apache/beam/issues/28034#issuecomment-1693933122

   @rafaelsms Ignore what I said before. I too was seeing the same error as 
you. After spending a few hours banging my head on the wall, I discovered it 
has to do with the way I am building and deploying my Beam application on GCP 
Dataflow.
   I was building a fat executable jar and executing it via java -jar, and that 
method gives me the error. If you execute the main class instead, it works! So 
the solution is, dont build a fat jar, and execute the main class via mvn or 
gradle directly.
   Take a look at the GCP documentation here:
   https://cloud.google.com/dataflow/docs/guides/deploying-a-pipeline


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to