[
https://issues.apache.org/jira/browse/LIVY-790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Avesand updated LIVY-790:
--------------------------------
Description:
When executing fbprophet the Livy session gets corrupted and stops working
properly.
Code to reproduce:
{{import pandas as pd, fbprophet}}
{{df = pd.DataFrame({}}
{{ 'ds': ['2019-02-26','2019-02-27','2019-02-28','2019-03-01','2019-03-02'],}}
{{ 'y': [121,119,118,119,118]})}}
{{m = fbprophet.Prophet()}}
{{m.fit(df)}}
This issue seems to concern all cases when stdout is written to outside of
native Python, e.g. by running a subprocess:
{{import subprocess}}
{{subprocess.run(["pip", "install", "pyyaml"])}}
was:
When executing fbprophet the Livy session gets corrupted and stops working
properly.
Code to reproduce:
{{import io, pandas as pd, fbprophet}}
{{csv = io.StringIO('''}}
{{ds,y}}
{{2019-02-26,121}}
{{2019-02-27,119}}
{{2019-02-28,118}}
{{2019-03-01,119}}
{{2019-03-02,118}}
{{2019-03-03,117}}
{{2019-03-04,116}}
{{2019-03-05,118}}
{{2019-03-06,122}}
{{2019-03-07,124}}
{{''')}}
{{df = pd.read_csv(csv)}}
{{m = fbprophet.Prophet()}}
{{m.fit(df)}}
This issue seems to concern all cases when stdout is written to outside of
native Python, e.g. by running a subprocess:
{{import subprocess}}
{{subprocess.run(["pip", "install", "pyyaml"])}}
> Corrupted Livy session when using fbprophet
> -------------------------------------------
>
> Key: LIVY-790
> URL: https://issues.apache.org/jira/browse/LIVY-790
> Project: Livy
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: Using Livy on Google Dataproc from Jupyter with
> sparkmagic
> Reporter: Stefan Avesand
> Priority: Major
>
> When executing fbprophet the Livy session gets corrupted and stops working
> properly.
> Code to reproduce:
> {{import pandas as pd, fbprophet}}
> {{df = pd.DataFrame({}}
> {{ 'ds':
> ['2019-02-26','2019-02-27','2019-02-28','2019-03-01','2019-03-02'],}}
> {{ 'y': [121,119,118,119,118]})}}
> {{m = fbprophet.Prophet()}}
> {{m.fit(df)}}
> This issue seems to concern all cases when stdout is written to outside of
> native Python, e.g. by running a subprocess:
> {{import subprocess}}
> {{subprocess.run(["pip", "install", "pyyaml"])}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)