[ 
https://issues.apache.org/jira/browse/BEAM-7924?focusedWorklogId=296637&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-296637
 ]

ASF GitHub Bot logged work on BEAM-7924:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/Aug/19 22:41
            Start Date: 16/Aug/19 22:41
    Worklog Time Spent: 10m 
      Work Description: ibzib commented on issue #9365: [BEAM-7924] fix 
pipeline options error with main session
URL: https://github.com/apache/beam/pull/9365#issuecomment-522172714
 
 
   It turns out the issue was because I had saved `pipeline_options` as a 
global variable in my main session, and that was shadowing the 
`pipeline_options` module in the SDK worker.
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 296637)
    Time Spent: 4h  (was: 3h 50m)

> Failure in Python 2 postcommit: crossLanguagePythonJavaFlink
> ------------------------------------------------------------
>
>                 Key: BEAM-7924
>                 URL: https://issues.apache.org/jira/browse/BEAM-7924
>             Project: Beam
>          Issue Type: Bug
>          Components: test-failures
>            Reporter: Udi Meiri
>            Assignee: Heejong Lee
>            Priority: Major
>             Fix For: 2.15.0
>
>          Time Spent: 4h
>  Remaining Estimate: 0h
>
> This seems to be the root cause:
> {code}
> 11:32:59 [grpc-default-executor-1] WARN pipeline_options.get_all_options - 
> Discarding unparseable args: [u'--app_name=None', 
> u'--shutdown_sources_on_final_watermark', u'--flink_master=[auto]', 
> u'--direct_runner_use_stacked_bundle', u'--options_id=1', 
> u'--fail_on_checkpointing_errors', u'--enable_metrics', 
> u'--pipeline_type_check', u'--parallelism=2'] 
> 11:32:59 [grpc-default-executor-1] INFO sdk_worker_main.main - Python sdk 
> harness started with pipeline_options: {'runner': u'None', 'experiments': 
> [u'worker_threads=100', u'beam_fn_api'], 'environment_cache_millis': 
> u'10000', 'sdk_location': u'container', 'job_name': 
> u'BeamApp-root-0807183253-57a72c22', 'save_main_session': True, 'region': 
> u'us-central1', 'sdk_worker_parallelism': u'1'}
> 11:32:59 [grpc-default-executor-1] ERROR sdk_worker_main.main - Python sdk 
> harness failed: 
> 11:32:59 Traceback (most recent call last):
> 11:32:59   File 
> "/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/sdk_worker_main.py",
>  line 153, in main
> 11:32:59     sdk_pipeline_options.view_as(pipeline_options.ProfilingOptions))
> 11:32:59   File 
> "/usr/local/lib/python2.7/site-packages/apache_beam/options/pipeline_options.py",
>  line 334, in __getattr__
> 11:32:59     (type(self).__name__, name))
> 11:32:59 AttributeError: 'PipelineOptions' object has no attribute 
> 'ProfilingOptions' 
> {code}
> https://builds.apache.org/job/beam_PostCommit_Python2_PR/58/console



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to