You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/04/26 04:51:04 UTC

[jira] [Commented] (BEAM-59) Switch from IOChannelFactory to FileSystems

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

ASF GitHub Bot commented on BEAM-59:
------------------------------------

GitHub user dhalperi opened a pull request:

    https://github.com/apache/beam/pull/2697

    [BEAM-59] Some low hanging fruit in FileSystems/LocalFileSystem/LocalResource

    Pulling out from ongoing work to convert `FileBasedSink`.
    
    R: @ssisk or @peihe or @reuvenlax as available

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dhalperi/beam low-hanging-fruit

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/beam/pull/2697.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2697
    
----
commit b7b38379f34b50496d962b8ef6badb4181073a53
Author: Dan Halperin <dh...@google.com>
Date:   2017-04-26T03:48:52Z

    LocalResourceId: make toString end in '/' for directories

commit aea01295a5b71b159870126c17d0a8878d8d16bc
Author: Dan Halperin <dh...@google.com>
Date:   2017-04-26T03:48:23Z

    FileSystems: make tolerant of and more efficient for empty lists

commit 4e6c31d99ba87682431e6ab658aae8a85e968877
Author: Dan Halperin <dh...@google.com>
Date:   2017-04-26T03:48:02Z

    LocalFileSystem: create parent directories if needed
    
    And improve testing to confirm.

----


> Switch from IOChannelFactory to FileSystems
> -------------------------------------------
>
>                 Key: BEAM-59
>                 URL: https://issues.apache.org/jira/browse/BEAM-59
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-java-core, sdk-java-gcp
>            Reporter: Daniel Halperin
>            Assignee: Daniel Halperin
>             Fix For: First stable release
>
>
> Right now, FileBasedSource and FileBasedSink communication is mediated by IOChannelFactory. There are a number of issues:
> * Global configuration -- e.g., all 'gs://' URIs use the same credentials. This should be per-source/per-sink/etc.
> * Supported APIs -- currently IOChannelFactory is in the "non-public API" util package and subject to change. We need users to be able to add new backends ('s3://', 'hdfs://', etc.) directly, without fear that they will be broken.
> * Per-backend features: e.g., creating buckets in GCS/s3, setting expiration time, etc.
> Updates:
> Design docs posted on dev@ list:
> Part 1: IOChannelFactory Redesign: 
> https://docs.google.com/document/d/11TdPyZ9_zmjokhNWM3Id-XJsVG3qel2lhdKTknmZ_7M/edit#
> Part 2: Configurable BeamFileSystem:
> https://docs.google.com/document/d/1-7vo9nLRsEEzDGnb562PuL4q9mUiq_ZVpCAiyyJw8p8/edit#heading=h.p3gc3colc2cs



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