[jira] [Work logged] (BEAM-3786) Back FileSystem by VFS

2018-10-09 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-3786?focusedWorklogId=152932=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-152932
 ]

ASF GitHub Bot logged work on BEAM-3786:


Author: ASF GitHub Bot
Created on: 09/Oct/18 21:21
Start Date: 09/Oct/18 21:21
Worklog Time Spent: 10m 
  Work Description: akedin closed pull request #4803: [BEAM-3786] basic vfs 
filesystem boostrap
URL: https://github.com/apache/beam/pull/4803
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/sdks/java/io/pom.xml b/sdks/java/io/pom.xml
index 1bc93a13fe6..017f4bf6aa5 100644
--- a/sdks/java/io/pom.xml
+++ b/sdks/java/io/pom.xml
@@ -65,6 +65,7 @@
 solr
 tika
 xml
+vfs-file-system
   
 
   
diff --git a/sdks/java/io/vfs-file-system/pom.xml 
b/sdks/java/io/vfs-file-system/pom.xml
new file mode 100644
index 000..cc837f75f81
--- /dev/null
+++ b/sdks/java/io/vfs-file-system/pom.xml
@@ -0,0 +1,107 @@
+
+
+http://www.w3.org/2001/XMLSchema-instance;
+ xmlns="http://maven.apache.org/POM/4.0.0;
+ xsi:schemaLocation="
+  http://maven.apache.org/POM/4.0.0
+  http://maven.apache.org/xsd/maven-4.0.0.xsd;>
+  4.0.0
+
+  
+org.apache.beam
+beam-sdks-java-io-parent
+2.5.0-SNAPSHOT
+../pom.xml
+  
+
+  beam-sdks-java-io-vfs-file-system
+  Apache Beam :: SDKs :: Java :: IO :: [VFS] File System
+  Beam VFS filesystem implementation.
+
+  
+
+  org.slf4j
+  slf4j-api
+  ${slf4j.version}
+
+
+  org.apache.beam
+  beam-sdks-java-core
+
+ 
+  com.google.guava
+  guava
+
+
+  org.apache.commons
+  commons-vfs2
+  2.2
+
+
+
+  org.apache.beam
+  beam-runners-direct-java
+  test
+
+
+  junit
+  junit
+  test
+
+
+  org.hamcrest
+  hamcrest-library
+  test
+
+
+  org.hamcrest
+  hamcrest-core
+  test
+
+
+  org.slf4j
+  slf4j-simple
+  ${slf4j.version}
+  test
+
+
+  com.github.rmannibucau
+  rule-them-all
+  0.3
+  test
+
+
+  org.mockftpserver
+  MockFtpServer
+  2.4
+  test
+
+
+  commons-net
+  commons-net
+  3.6
+  test
+
+
+  log4j
+  log4j
+  1.2.17
+  test
+
+  
+
diff --git 
a/sdks/java/io/vfs-file-system/src/main/java/org/apache/beam/sdk/io/vfs/VfsFileSystem.java
 
b/sdks/java/io/vfs-file-system/src/main/java/org/apache/beam/sdk/io/vfs/VfsFileSystem.java
new file mode 100644
index 000..0a8e73d8269
--- /dev/null
+++ 
b/sdks/java/io/vfs-file-system/src/main/java/org/apache/beam/sdk/io/vfs/VfsFileSystem.java
@@ -0,0 +1,200 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beam.sdk.io.vfs;
+
+import static com.google.common.base.Preconditions.checkArgument;
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+import static java.util.stream.Collectors.toList;
+import static org.apache.commons.vfs2.Capability.RANDOM_ACCESS_READ;
+
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URI;
+import java.net.URL;
+import java.nio.channels.ReadableByteChannel;
+import java.nio.channels.WritableByteChannel;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Objects;
+import org.apache.beam.sdk.io.FileSystem;
+import org.apache.beam.sdk.io.fs.CreateOptions;
+import org.apache.beam.sdk.io.fs.MatchResult;
+import org.apache.commons.vfs2.AllFileSelector;
+import org.apache.commons.vfs2.FileObject;
+import org.apache.commons.vfs2.FileSystemException;
+import org.apache.commons.vfs2.FileSystemManager;
+
+/**
+ * A filesystem backed by a VFS filesystem.
+ */
+public class VfsFileSystem extends FileSystem {
+  private final FileSystemManager manager;
+  private 

[jira] [Work logged] (BEAM-3786) Back FileSystem by VFS

2018-10-09 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-3786?focusedWorklogId=152931=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-152931
 ]

ASF GitHub Bot logged work on BEAM-3786:


Author: ASF GitHub Bot
Created on: 09/Oct/18 21:19
Start Date: 09/Oct/18 21:19
Worklog Time Spent: 10m 
  Work Description: rmannibucau commented on issue #4803: [BEAM-3786] basic 
vfs filesystem boostrap
URL: https://github.com/apache/beam/pull/4803#issuecomment-428356261
 
 
   Works for me, i dont need beam anymore


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 152931)
Time Spent: 1h 10m  (was: 1h)

> Back FileSystem by VFS
> --
>
> Key: BEAM-3786
> URL: https://issues.apache.org/jira/browse/BEAM-3786
> Project: Beam
>  Issue Type: Task
>  Components: sdk-java-core
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
>Priority: Major
>  Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> A ticket to not forget the discussion about reusing commons-vfs to benefit 
> from its API and connectivity under the hood and automatically behind beam 
> file[system|io] API.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-3786) Back FileSystem by VFS

2018-10-09 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-3786?focusedWorklogId=152878=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-152878
 ]

ASF GitHub Bot logged work on BEAM-3786:


Author: ASF GitHub Bot
Created on: 09/Oct/18 19:26
Start Date: 09/Oct/18 19:26
Worklog Time Spent: 10m 
  Work Description: akedin commented on issue #4803: [BEAM-3786] basic vfs 
filesystem boostrap
URL: https://github.com/apache/beam/pull/4803#issuecomment-428319543
 
 
   I think we should close this, and re-open if progress is made later.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 152878)
Time Spent: 1h  (was: 50m)

> Back FileSystem by VFS
> --
>
> Key: BEAM-3786
> URL: https://issues.apache.org/jira/browse/BEAM-3786
> Project: Beam
>  Issue Type: Task
>  Components: sdk-java-core
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
>Priority: Major
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> A ticket to not forget the discussion about reusing commons-vfs to benefit 
> from its API and connectivity under the hood and automatically behind beam 
> file[system|io] API.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-3786) Back FileSystem by VFS

2018-08-10 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-3786?focusedWorklogId=133839=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-133839
 ]

ASF GitHub Bot logged work on BEAM-3786:


Author: ASF GitHub Bot
Created on: 10/Aug/18 22:20
Start Date: 10/Aug/18 22:20
Worklog Time Spent: 10m 
  Work Description: iemejia commented on issue #4803: [BEAM-3786] basic vfs 
filesystem boostrap
URL: https://github.com/apache/beam/pull/4803#issuecomment-412221397
 
 
   Staleness on this PR is totally in my camp. I will try to get it back to 
track in the following weeks.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 133839)
Time Spent: 50m  (was: 40m)

> Back FileSystem by VFS
> --
>
> Key: BEAM-3786
> URL: https://issues.apache.org/jira/browse/BEAM-3786
> Project: Beam
>  Issue Type: Task
>  Components: sdk-java-core
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
>Priority: Major
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> A ticket to not forget the discussion about reusing commons-vfs to benefit 
> from its API and connectivity under the hood and automatically behind beam 
> file[system|io] API.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-3786) Back FileSystem by VFS

2018-08-09 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-3786?focusedWorklogId=132934=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-132934
 ]

ASF GitHub Bot logged work on BEAM-3786:


Author: ASF GitHub Bot
Created on: 09/Aug/18 13:29
Start Date: 09/Aug/18 13:29
Worklog Time Spent: 10m 
  Work Description: stale[bot] commented on issue #4803: [BEAM-3786] basic 
vfs filesystem boostrap
URL: https://github.com/apache/beam/pull/4803#issuecomment-411757422
 
 
   This pull request has been marked as stale due to 60 days of inactivity. It 
will be closed in 1 week if no further activity occurs. If you think that’s 
incorrect or this pull request requires a review, please simply write any 
comment. If closed, you can revive the PR at any time and @mention a reviewer 
or discuss it on the d...@beam.apache.org list. Thank you for your 
contributions.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 132934)
Time Spent: 40m  (was: 0.5h)

> Back FileSystem by VFS
> --
>
> Key: BEAM-3786
> URL: https://issues.apache.org/jira/browse/BEAM-3786
> Project: Beam
>  Issue Type: Task
>  Components: sdk-java-core
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
>Priority: Major
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> A ticket to not forget the discussion about reusing commons-vfs to benefit 
> from its API and connectivity under the hood and automatically behind beam 
> file[system|io] API.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-3786) Back FileSystem by VFS

2018-06-10 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-3786?focusedWorklogId=110478=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-110478
 ]

ASF GitHub Bot logged work on BEAM-3786:


Author: ASF GitHub Bot
Created on: 10/Jun/18 13:14
Start Date: 10/Jun/18 13:14
Worklog Time Spent: 10m 
  Work Description: iemejia commented on issue #4803: [BEAM-3786] basic vfs 
filesystem boostrap
URL: https://github.com/apache/beam/pull/4803#issuecomment-396048352
 
 
   This is not 100% stale, it is really worth just for the support of FTP, 
however more technical details have to be addressed (e.g. is it possible to 
split files? among others).


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 110478)
Time Spent: 0.5h  (was: 20m)

> Back FileSystem by VFS
> --
>
> Key: BEAM-3786
> URL: https://issues.apache.org/jira/browse/BEAM-3786
> Project: Beam
>  Issue Type: Task
>  Components: sdk-java-core
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
>Priority: Major
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> A ticket to not forget the discussion about reusing commons-vfs to benefit 
> from its API and connectivity under the hood and automatically behind beam 
> file[system|io] API.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-3786) Back FileSystem by VFS

2018-06-06 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-3786?focusedWorklogId=109617=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-109617
 ]

ASF GitHub Bot logged work on BEAM-3786:


Author: ASF GitHub Bot
Created on: 07/Jun/18 04:01
Start Date: 07/Jun/18 04:01
Worklog Time Spent: 10m 
  Work Description: stale[bot] commented on issue #4803: [BEAM-3786] basic 
vfs filesystem boostrap
URL: https://github.com/apache/beam/pull/4803#issuecomment-395285668
 
 
   This pull request has been marked as stale due to 60 days of inactivity. It 
will be closed in 1 week if no further activity occurs. If you think that’s 
incorrect or this pull request requires a review, please simply write any 
comment. If closed, you can revive the PR at any time and @mention a reviewer 
or discuss it on the d...@beam.apache.org list. Thank you for your 
contributions.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 109617)
Time Spent: 20m  (was: 10m)

> Back FileSystem by VFS
> --
>
> Key: BEAM-3786
> URL: https://issues.apache.org/jira/browse/BEAM-3786
> Project: Beam
>  Issue Type: Task
>  Components: sdk-java-core
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
>Priority: Major
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> A ticket to not forget the discussion about reusing commons-vfs to benefit 
> from its API and connectivity under the hood and automatically behind beam 
> file[system|io] API.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)