beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmet Altay (JIRA)" <>
Subject [jira] [Commented] (BEAM-3134) cannot write data to BigQuery with Dataflow
Date Wed, 01 Nov 2017 21:33:00 GMT


Ahmet Altay commented on BEAM-3134:

I am glad that the issue is resolved.

Save main session pickles the contents of the main session, and not everything is picklable.
Please also see for
strategies for managing dependencies.

I will close this issue.

> cannot write data to BigQuery with Dataflow
> -------------------------------------------
>                 Key: BEAM-3134
>                 URL:
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Zdenko Hrcek
>            Assignee: Ahmet Altay
>            Priority: Normal
> (sample code with description is here [])
> I was running for the first time Dataflow job (with version 2.1.1) to read data from
BigQuery, make some modifications, then write data to different table in BigQuery. When I
was running locally (on small subset) it was ok, but when I tried to run on Dataflow I get
following exception:
> apache_beam.runners.dataflow.dataflow_runner.DataflowRuntimeException: Dataflow pipeline
failed. State: FAILED, Error:
> (ade3180ffa878a6b): Traceback (most recent call last):
>   File "/usr/local/lib/python2.7/dist-packages/dataflow_worker/", line
706, in run
>     self._load_main_session(self.local_staging_directory)
>   File "/usr/local/lib/python2.7/dist-packages/dataflow_worker/", line
446, in _load_main_session
>     pickler.load_session(session_file)
>   File "/usr/local/lib/python2.7/dist-packages/apache_beam/internal/", line
247, in load_session
>     return dill.load_session(file_path)
>   File "/usr/local/lib/python2.7/dist-packages/dill/", line 363, in load_session
>     module = unpickler.load()
>   File "/usr/lib/python2.7/", line 858, in load
>     dispatch[key](self)
>   File "/usr/lib/python2.7/", line 1182, in load_append
>     list.append(value)
>   File "/usr/local/lib/python2.7/dist-packages/apitools/base/protorpclite/",
line 1142, in append
>     self.__field.validate_element(value)
> AttributeError: 'FieldList' object has no attribute '_FieldList__field'
> In my opinion, it looks like it has to do something with pickling schema definition for
output table.

This message was sent by Atlassian JIRA

View raw message