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

[jira] [Created] (FLINK-6592) RawLocalFileSystem created even if fs.hdfs.hadoopconf specified

Andrey created FLINK-6592:
-----------------------------

             Summary: RawLocalFileSystem created even if fs.hdfs.hadoopconf specified
                 Key: FLINK-6592
                 URL: https://issues.apache.org/jira/browse/FLINK-6592
             Project: Flink
          Issue Type: Bug
    Affects Versions: 1.2.0
            Reporter: Andrey


This issue affects only BucketingSink.

Steps to reproduce:
* configure "fs.hdfs.hadoopconf" to point to the existing directory with core-site.xml and hdfs-site.xml:
** core-site.xml contains valid "fs.defaultFS" entry which points to "hdfs://<some hostname>"
* configure bucketing sink: 
{code}
new BucketingSink<T>("/some/path/within/defaultFS")
{code}
* Run the job
* In the logs:
{code}
Mkdirs failed to create /some/path/within/defaultFS
{code}
* hdfs filesystem implementation determined based on "basePath" and its schema: 
{code}
new Path(basePath).getFileSystem(hadoopConf);
{code}

Expected:
* BucketingSink detect filesystem type based on "org.apache.hadoop.conf.Configuration" rather than "basePath".




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