flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maximilian Michels (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FLINK-2885) Path to Python resources is not constructed correctly
Date Wed, 21 Oct 2015 08:47:27 GMT

     [ 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)

Mime
View raw message