You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "HaeSe0ng (via GitHub)" <gi...@apache.org> on 2023/07/05 15:52:14 UTC

[GitHub] [beam] HaeSe0ng opened a new issue, #27355: [Bug]: FileNotFoundError while launching Dataflow Template using Bigquery Storage API

HaeSe0ng opened a new issue, #27355:
URL: https://github.com/apache/beam/issues/27355

   ### What happened?
   
   I tried to launch Dataflow Flex Template which uses Python SDK and Bigquery Storage API (with expansion service), but it failed to launch with this error message.
   ```
   2023-07-05 07:53:14.788 UTC
   INFO:apache_beam.runners.portability.stager:Executing command: ['/usr/bin/python', '-m', 'pip', 'download', '--dest', '/tmp/dataflow-requirements-cache', '-r', '/tmp/tmpt1085nc7/tmp_requirements.txt', '--exists-action', 'i', '--no-deps', '--implementation', 'cp', '--abi', 'cp39', '--platform', 'manylinux2014_x86_64']
   2023-07-05 07:53:16.730 UTC
   INFO:apache_beam.runners.portability.stager:Executing command: ['/usr/bin/python', 'setup.py', 'sdist', '--dist-dir', '/tmp/tmpf1cqqvp4']
   2023-07-05 07:53:16.942 UTC
   warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md
   2023-07-05 07:53:16.943 UTC
   warning: check: missing required meta-data: url
   2023-07-05 07:53:17.058 UTC
   INFO:apache_beam.runners.dataflow.dataflow_runner:Pipeline has additional dependencies to be installed in SDK worker container, consider using the SDK container image pre-building workflow to avoid repetitive installations. Learn more on https://cloud.google.com/dataflow/docs/guides/using-custom-containers#prebuild
   2023-07-05 07:53:17.059 UTC
   INFO:root:Default Python SDK image for environment is apache/beam_python3.9_sdk:2.47.0
   2023-07-05 07:53:17.059 UTC
   INFO:root:Using provided Python SDK container image: us-central1-docker.pkg.dev/prex-data/dataflow-images/test/:latest
   2023-07-05 07:53:17.059 UTC
   INFO:root:Python SDK container image set to "us-central1-docker.pkg.dev/prex-data/dataflow-images/test/:latest" for Docker environment
   2023-07-05 07:53:21.441 UTC
   WARNING:apache_beam.utils.retry:Retry with exponential backoff: waiting for 4.8348830646277605 seconds before retrying _uncached_gcs_file_copy because we caught exception: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/beam-pipeline-tempq_1isprv/tmp5dwo7v0w'
   2023-07-05 07:53:21.441 UTC
   Traceback for above exception (most recent call last):
   2023-07-05 07:53:21.441 UTC
   File "/usr/local/lib/python3.9/dist-packages/apache_beam/utils/retry.py", line 275, in wrapper
   2023-07-05 07:53:21.441 UTC
   return fun(*args, **kwargs)
   2023-07-05 07:53:21.441 UTC
   File "/usr/local/lib/python3.9/dist-packages/apache_beam/runners/dataflow/internal/apiclient.py", line 631, in _uncached_gcs_file_copy
   2023-07-05 07:53:21.441 UTC
   total_size = os.path.getsize(from_path)
   2023-07-05 07:53:21.441 UTC
   File "/usr/lib/python3.9/genericpath.py", line 50, in getsize
   2023-07-05 07:53:21.441 UTC
   return os.stat(filename).st_size
   .
   .
   .
   2023-07-05 07:58:22.797 UTC
   Shutting down the Sandbox, launcher-202307050045541181417250398770681 of type GCE Instance, used for launching.
   2023-07-05 07:58:48.250 UTC
   Sandbox, launcher-202307050045541181417250398770681, stopped.
   2023-07-05 07:58:48.586 UTC
   Timeout in polling result file: gs://prex-tmp/dataflow/staging/engine-kafka-streaming-test/template_launches/2023-07-05_00_45_54-1181417250398770681/operation_result. Service account: dataflow@prex-data.iam.gserviceaccount.com Image URL: us-central1-docker.pkg.dev/prex-data/dataflow-images/test/dataflow:latest Troubleshooting guide at https://cloud.google.com/dataflow/docs/guides/troubleshoot-templates#timeout-polling
   ```
   
   ### Issue Priority
   
   Priority: 3 (minor)
   
   ### Issue Components
   
   - [X] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [X] Component: IO connector
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [X] Component: Google Cloud Dataflow Runner


-- 
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: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] HaeSe0ng commented on issue #27355: [Bug]: FileNotFoundError while launching Dataflow Template using Bigquery Storage API

Posted by "HaeSe0ng (via GitHub)" <gi...@apache.org>.
HaeSe0ng commented on issue #27355:
URL: https://github.com/apache/beam/issues/27355#issuecomment-1622230912

   ```
           result = pipeline.run()
           result.wait_until_finish()
   ```
   was the problem. It worked after I removed those lines.


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] HaeSe0ng closed issue #27355: [Bug]: FileNotFoundError while launching Dataflow Template using Bigquery Storage API

Posted by "HaeSe0ng (via GitHub)" <gi...@apache.org>.
HaeSe0ng closed issue #27355: [Bug]: FileNotFoundError while launching Dataflow Template using Bigquery Storage API
URL: https://github.com/apache/beam/issues/27355


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] HaeSe0ng closed issue #27355: [Bug]: FileNotFoundError while launching Dataflow Template using Bigquery Storage API

Posted by "HaeSe0ng (via GitHub)" <gi...@apache.org>.
HaeSe0ng closed issue #27355: [Bug]: FileNotFoundError while launching Dataflow Template using Bigquery Storage API
URL: https://github.com/apache/beam/issues/27355


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] HaeSe0ng commented on issue #27355: [Bug]: FileNotFoundError during Dataflow Template launching with Expansion service

Posted by "HaeSe0ng (via GitHub)" <gi...@apache.org>.
HaeSe0ng commented on issue #27355:
URL: https://github.com/apache/beam/issues/27355#issuecomment-1621360265

   This is my pipeline code
   ```
       LogicalType.register_logical_type(MillisInstant)
       with beam.Pipeline(options=options) as pipeline:
           table_pcollection_list = (
               pipeline
               | "Read from Pub/Sub" >> beam.io.ReadFromPubSub(subscription=subscription, with_attributes=True)
               | "Get object URI" >> GetObjectUriFromMessage()
               | "Read gzip from GCS"
               >> beam.io.ReadAllFromText(compression_type="gzip")
               | "Parse JSON" >> beam.Map(
                   parse_json
               )
               | "Write to BigQuery"
               >> beam.io.WriteToBigQuery(
                   table=table_name,
                   dataset=dataset_id,
                   project=project_id,
                   schema=schema,
                   create_disposition=beam.io.BigQueryDisposition.CREATE_NEVER,
                   write_disposition=beam.io.BigQueryDisposition.WRITE_APPEND,
                   method=beam.io.WriteToBigQuery.Method.STORAGE_WRITE_API,
                   use_at_least_once=True,
                   with_auto_sharding=True,
               )
           )
           result = pipeline.run()
           result.wait_until_finish()
   ```


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org