2

i just tried out the flink python api. When i try:

env = get_environment()

I get:

IOError: [Errno 2] No such file or directory: '/tmp/flink_data/output'

The error is because of a path handling in:

flink-staging/flink-language-binding/flink-python/src/main/python/org/apache/flink/languagebinding/api/python/flink/connection/Connection.py    line 44 

Instead of using:

open(tempfile.gettempdir() + "/flink_data/output", "rb+")

One could create the mapping file with:

open(tempfile.gettempdir() + "/flinkoutput", "rb+")

The same applies for the mmap input file. Would that be a fix?

4
  • 2
    If there's a bug in third-party software you should report it to the developers. Commented Jun 17, 2015 at 16:52
  • 2
    I'm voting to close this question as off-topic because this belongs to the issue tracker of related software Commented Jun 17, 2015 at 17:48
  • The JIRA issues.apache.org/jira/browse/FLINK-2173 got resolved recently. If you are using Flink 0.10-SNAPSHOT you can try if your problem is resolved or not. Commented Aug 5, 2015 at 8:07
  • @MatthiasJ.Sax, cool will try soon :-) Commented Aug 5, 2015 at 13:04

1 Answer 1

3

Please open a JIRA at https://issues.apache.org/jira/browse/FLINK/ Python API is quite new and still in beta state. There is another related JIRA, too: see https://issues.apache.org/jira/browse/FLINK-2173

Thanks for reporting the problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.