has insufficient permissions to access it - Error

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

has insufficient permissions to access it - Error

Kaepke, Marc
Hi,

if I run my small Gelly application on IntelliJ (macOS and Ubuntu as well) I have this error:

Caused by: java.io.FileNotFoundException: File /org/apache/flink/gelly/gellyTutorials/out.munmun_twitter_social does not exist or the user running Flink ('marc') has insufficient permissions to access it.
        at org.apache.flink.core.fs.local.LocalFileSystem.getFileStatus(LocalFileSystem.java:102)
        at org.apache.flink.api.common.io.FileInputFormat.createInputSplits(FileInputFormat.java:473)
        at org.apache.flink.api.common.io.FileInputFormat.createInputSplits(FileInputFormat.java:62)
        at org.apache.flink.runtime.executiongraph.ExecutionJobVertex.<init>(ExecutionJobVertex.java:194)
        ... 26 more


How can I fix it?

Bests,
Marc
Reply | Threaded
Open this post in threaded view
|

Re: has insufficient permissions to access it - Error

Nico Kruber
Hi Marc,
the file path doesn't look quite right, unless you really have such an
(absolute!) file path.

Nico

On Saturday, 8 April 2017 17:41:28 CEST Kaepke, Marc wrote:

> Hi,
>
> if I run my small Gelly application on IntelliJ (macOS and Ubuntu as well) I
> have this error:
>
> Caused by: java.io.FileNotFoundException: File
> /org/apache/flink/gelly/gellyTutorials/out.munmun_twitter_social does not
> exist or the user running Flink ('marc') has insufficient permissions to
> access it. at
> org.apache.flink.core.fs.local.LocalFileSystem.getFileStatus(LocalFileSyste
> m.java:102) at
> org.apache.flink.api.common.io.FileInputFormat.createInputSplits(FileInputF
> ormat.java:473) at
> org.apache.flink.api.common.io.FileInputFormat.createInputSplits(FileInputF
> ormat.java:62) at
> org.apache.flink.runtime.executiongraph.ExecutionJobVertex.<init>(Execution
> JobVertex.java:194) ... 26 more
>
>
> How can I fix it?
>
> Bests,
> Marc


signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: has insufficient permissions to access it - Error

Kaepke, Marc
Hi Nico,

so I need an absolute file path? Because I moved the file into my project and IntelliJ did an autocomplete for the file path

How can I use a relative file path? Because I work on two different systems


Marc

> Am 11.04.2017 um 10:19 schrieb Nico Kruber <[hidden email]>:
>
> Hi Marc,
> the file path doesn't look quite right, unless you really have such an
> (absolute!) file path.
>
> Nico
>
> On Saturday, 8 April 2017 17:41:28 CEST Kaepke, Marc wrote:
>> Hi,
>>
>> if I run my small Gelly application on IntelliJ (macOS and Ubuntu as well) I
>> have this error:
>>
>> Caused by: java.io.FileNotFoundException: File
>> /org/apache/flink/gelly/gellyTutorials/out.munmun_twitter_social does not
>> exist or the user running Flink ('marc') has insufficient permissions to
>> access it. at
>> org.apache.flink.core.fs.local.LocalFileSystem.getFileStatus(LocalFileSyste
>> m.java:102) at
>> org.apache.flink.api.common.io.FileInputFormat.createInputSplits(FileInputF
>> ormat.java:473) at
>> org.apache.flink.api.common.io.FileInputFormat.createInputSplits(FileInputF
>> ormat.java:62) at
>> org.apache.flink.runtime.executiongraph.ExecutionJobVertex.<init>(Execution
>> JobVertex.java:194) ... 26 more
>>
>>
>> How can I fix it?
>>
>> Bests,
>> Marc
>

Reply | Threaded
Open this post in threaded view
|

Re: has insufficient permissions to access it - Error

Nico Kruber
I'm not sure whether it needs to be absolute, but you apparently gave it an
absolute file path (starting with "/") so that's where it is looking for the
file.


Nico

On Wednesday, 12 April 2017 18:04:36 CEST Kaepke, Marc wrote:

> Hi Nico,
>
> so I need an absolute file path? Because I moved the file into my project
> and IntelliJ did an autocomplete for the file path
>
> How can I use a relative file path? Because I work on two different systems
>
>
> Marc
>
> > Am 11.04.2017 um 10:19 schrieb Nico Kruber <[hidden email]>:
> >
> > Hi Marc,
> > the file path doesn't look quite right, unless you really have such an
> > (absolute!) file path.
> >
> > Nico
> >
> > On Saturday, 8 April 2017 17:41:28 CEST Kaepke, Marc wrote:
> >> Hi,
> >>
> >> if I run my small Gelly application on IntelliJ (macOS and Ubuntu as
> >> well) I have this error:
> >>
> >> Caused by: java.io.FileNotFoundException: File
> >> /org/apache/flink/gelly/gellyTutorials/out.munmun_twitter_social does not
> >> exist or the user running Flink ('marc') has insufficient permissions to
> >> access it. at
> >> org.apache.flink.core.fs.local.LocalFileSystem.getFileStatus(LocalFileSys
> >> te
> >> m.java:102) at
> >> org.apache.flink.api.common.io.FileInputFormat.createInputSplits(FileInpu
> >> tF
> >> ormat.java:473) at
> >> org.apache.flink.api.common.io.FileInputFormat.createInputSplits(FileInpu
> >> tF
> >> ormat.java:62) at
> >> org.apache.flink.runtime.executiongraph.ExecutionJobVertex.<init>(Executi
> >> on
> >> JobVertex.java:194) ... 26 more
> >>
> >>
> >> How can I fix it?
> >>
> >> Bests,
> >> Marc


signature.asc (201 bytes) Download Attachment