flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chesnay Schepler (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FLINK-4805) Stringify() crashes with Python3 (run with pyflink3)
Date Fri, 21 Oct 2016 09:04:58 GMT

     [ https://issues.apache.org/jira/browse/FLINK-4805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chesnay Schepler closed FLINK-4805.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.2.0

Fixed in 2ece925c49a62987d547c3441150d9e13bec4d16

> Stringify() crashes with Python3 (run with pyflink3)
> ----------------------------------------------------
>
>                 Key: FLINK-4805
>                 URL: https://issues.apache.org/jira/browse/FLINK-4805
>             Project: Flink
>          Issue Type: Bug
>          Components: Python API
>            Reporter: Yakov Goldberg
>            Assignee: Chesnay Schepler
>             Fix For: 1.2.0
>
>
> {code}
> Caused by: java.lang.RuntimeException: External process for task MapPartition (PythonMap)
terminated prematurely due to an error.
> Traceback (most recent call last):
>   File "/tmp/flink-dist-cache-299804c6-813a-44de-9f62-c5f4cf415990/1527bd1cc45d6f67695c180762c614ef/flink/plan.py",
line 548, in <module>
>     env.execute(local=True)
>   File "/tmp/flink-dist-cache-299804c6-813a-44de-9f62-c5f4cf415990/1527bd1cc45d6f67695c180762c614ef/flink/flink/plan/Environment.py",
line 181, in execute
>     operator._go()
>   File "/tmp/flink-dist-cache-299804c6-813a-44de-9f62-c5f4cf415990/1527bd1cc45d6f67695c180762c614ef/flink/flink/functions/Function.py",
line 64, in _go
>     self._run()
>   File "/tmp/flink-dist-cache-299804c6-813a-44de-9f62-c5f4cf415990/1527bd1cc45d6f67695c180762c614ef/flink/flink/functions/MapFunction.py",
line 29, in _run
>     collector.collect(function(value))
>   File "/tmp/flink-dist-cache-299804c6-813a-44de-9f62-c5f4cf415990/1527bd1cc45d6f67695c180762c614ef/flink/flink/plan/DataSet.py",
line 38, in map
>     return "(" + b", ".join([self.map(x) for x in value]) + ")"
>   File "/tmp/flink-dist-cache-299804c6-813a-44de-9f62-c5f4cf415990/1527bd1cc45d6f67695c180762c614ef/flink/flink/plan/DataSet.py",
line 38, in <listcomp>
>     return "(" + b", ".join([self.map(x) for x in value]) + ")"
>   File "/tmp/flink-dist-cache-299804c6-813a-44de-9f62-c5f4cf415990/1527bd1cc45d6f67695c180762c614ef/flink/flink/plan/DataSet.py",
line 38, in map
>     return "(" + b", ".join([self.map(x) for x in value]) + ")"
> TypeError: sequence item 0: expected bytes, bytearray, or an object with the buffer interface,
str found
> 	at org.apache.flink.python.api.streaming.data.PythonStreamer.streamBufferWithoutGroups(PythonStreamer.java:268)
> 	at org.apache.flink.python.api.functions.PythonMapPartition.mapPartition(PythonMapPartition.java:54)
> 	at org.apache.flink.runtime.operators.MapPartitionDriver.run(MapPartitionDriver.java:98)
> 	at org.apache.flink.runtime.operators.BatchTask.run(BatchTask.java:480)
> 	at org.apache.flink.runtime.operators.BatchTask.invoke(BatchTask.java:345)
> 	at org.apache.flink.runtime.taskmanager.Task.run(Task.java:559)
> 	at java.lang.Thread.run(Thread.java:745)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message