You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Luke Cwik (JIRA)" <ji...@apache.org> on 2017/05/04 15:57:04 UTC

[jira] [Resolved] (BEAM-1491) HadoopFileSystemOptions should be able to read the HADOOP_CONF_DIR(YARN_CONF_DIR) environment variable

     [ https://issues.apache.org/jira/browse/BEAM-1491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luke Cwik resolved BEAM-1491.
-----------------------------
       Resolution: Fixed
         Assignee: wyp  (was: Jean-Baptiste Onofré)
    Fix Version/s: First stable release

> HadoopFileSystemOptions should be able to read the HADOOP_CONF_DIR(YARN_CONF_DIR) environment variable
> ------------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-1491
>                 URL: https://issues.apache.org/jira/browse/BEAM-1491
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>    Affects Versions: 0.6.0
>            Reporter: wyp
>            Assignee: wyp
>             Fix For: First stable release
>
>
> Currently, if we want to read file store on HDFS, we will do it as follow:
> {code}
> Configuration conf = new Configuration();
> conf.set("fs.default.name", "hdfs://hadoopserver:8020");
> HadoopFileSystemOptions options = ...
> options.setHdfsConfiguration(ImmutableList.of(conf));
> Pipeline p = Pipeline.create(options);
> PCollection<String> data = p.apply(TextIO.read().from("hdfs://hadoopserver:8020/tmp/data.txt"));
> {code}
> As we have seen above, we must be load/build the configuration and set it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)