[ 
https://issues.apache.org/jira/browse/FLINK-8182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16274168#comment-16274168
 ] 

Fabian Hueske commented on FLINK-8182:
--------------------------------------

There is no built-in shortcut for that but the {{TextInputFormat}} provides an 
option to enable reading of nested fields.

Please try if the following works for you and close the issue if it does.

{code}
TextInputFormat textIF = new TextInputFormat(new Path("/my/path"));
textIF.setNestedFileEnumeration(true);

DataStream<String> lines = env.createInput(textIF);
{code}

Thanks

> Unable to read hdfs file system directory(which contains sub directories) 
> recursively  
> ---------------------------------------------------------------------------------------
>
>                 Key: FLINK-8182
>                 URL: https://issues.apache.org/jira/browse/FLINK-8182
>             Project: Flink
>          Issue Type: Improvement
>          Components: Streaming
>    Affects Versions: 1.3.2
>            Reporter: Shashank Agarwal
>
> Unable to read hdfs file system directory(which contains subdirectories) 
> recursively, It works fine when a single directory contains only files but 
> when the directory contains subdirectories it dosesn't read subdirectory 
> files.
> {code}
> streamExecutionEnvironment.readTextFile("HDFS path")
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to