You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Maximilian Michels (JIRA)" <ji...@apache.org> on 2015/10/21 10:47:27 UTC
[jira] [Closed] (FLINK-2885) Path to Python resources is not
constructed correctly
[ https://issues.apache.org/jira/browse/FLINK-2885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maximilian Michels closed FLINK-2885.
-------------------------------------
Resolution: Fixed
Fixed in {{42a3d8c}} (0.10) and {{b3429ed}} (0.9).
> Path to Python resources is not constructed correctly
> -----------------------------------------------------
>
> Key: FLINK-2885
> URL: https://issues.apache.org/jira/browse/FLINK-2885
> Project: Flink
> Issue Type: Bug
> Components: Python API
> Affects Versions: 0.9.1, 0.10
> Reporter: Maximilian Michels
> Assignee: Maximilian Michels
> Priority: Blocker
> Fix For: 0.9.2, 0.10
>
>
> The paths set in {{config.sh}} changed, leading to a wrong path construction of the Python API resources. Executing even the most trivial Python programs fails:
> {{./bin/pyflink2.sh wordcount.py}}
> {noformat}
> org.apache.flink.client.program.ProgramInvocationException: The main method caused an error.
> at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:452)
> at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:353)
> at org.apache.flink.client.program.Client.run(Client.java:315)
> at org.apache.flink.client.CliFrontend.executeProgram(CliFrontend.java:582)
> at org.apache.flink.client.CliFrontend.run(CliFrontend.java:288)
> at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:878)
> at org.apache.flink.client.CliFrontend.main(CliFrontend.java:920)
> Caused by: java.io.FileNotFoundException: File /Users/max/Downloads/flin/resources/python does not exist or the user running Flink ('max') has insufficient permissions to access it.
> at org.apache.flink.core.fs.local.LocalFileSystem.getFileStatus(LocalFileSystem.java:107)
> at org.apache.flink.runtime.filecache.FileCache.copy(FileCache.java:242)
> at org.apache.flink.languagebinding.api.java.python.PythonPlanBinder.prepareFiles(PythonPlanBinder.java:138)
> at org.apache.flink.languagebinding.api.java.python.PythonPlanBinder.runPlan(PythonPlanBinder.java:108)
> at org.apache.flink.languagebinding.api.java.python.PythonPlanBinder.main(PythonPlanBinder.java:84)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:437)
> ... 6 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)