You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Vaibhav Aggarwal (JIRA)" <ji...@apache.org> on 2011/07/27 23:17:34 UTC
[jira] [Created] (HIVE-2318) Support multiple file systems
Support multiple file systems
-----------------------------
Key: HIVE-2318
URL: https://issues.apache.org/jira/browse/HIVE-2318
Project: Hive
Issue Type: New Feature
Reporter: Vaibhav Aggarwal
Assignee: Vaibhav Aggarwal
Currently some of the Hive tasks like MoveTask, ConditionalMergeResolver assume that the data is being copied or moved on the same file system.
These operators file if the source table is in one filesystem (like HDFS) and destination table is in another file system (like s3).
This patch aims at:
1. Support moving data between different file systems.
2. Add support for file systems which do not support 'move' operation like s3.
3. Remove redundant operations like moving data from and to the same location.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2318) Support multiple file systems
Posted by "Vaibhav Aggarwal (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079604#comment-13079604 ]
Vaibhav Aggarwal commented on HIVE-2318:
----------------------------------------
@Carl
You would notice that 70% of the code deals with
1. Supporting reading with one file system and writing to another in the same query.
2. Writing directly to result directory if the file system does not support move.
S3FileSystem serves as a specific example in this case because of which I choose this title.
> Support multiple file systems
> -----------------------------
>
> Key: HIVE-2318
> URL: https://issues.apache.org/jira/browse/HIVE-2318
> Project: Hive
> Issue Type: New Feature
> Reporter: Vaibhav Aggarwal
> Assignee: Vaibhav Aggarwal
> Attachments: HIVE-2318.patch
>
>
> Currently some of the Hive tasks like MoveTask, ConditionalMergeResolver assume that the data is being copied or moved on the same file system.
> These operators file if the source table is in one filesystem (like HDFS) and destination table is in another file system (like s3).
> This patch aims at:
> 1. Support moving data between different file systems.
> 2. Add support for file systems which do not support 'move' operation like s3.
> 3. Remove redundant operations like moving data from and to the same location.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2318) Support multiple file systems
Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079233#comment-13079233 ]
Carl Steinbach commented on HIVE-2318:
--------------------------------------
@Vaibhav: It's going to take me a while to review this patch. In the meantime I think the biggest problem is that there are no test cases. I understand that adding test coverage for this particular feature is hard, but without tests I'm worried that it's going to be impossible to maintain this feature due to the significant differences in behavior between S3 and HDFS. Can you think of a way that we can run test queries against an S3 filesystem? Maybe we should think about adding a MockS3FileSystem? Does anything like that already exist at Amazon?
> Support multiple file systems
> -----------------------------
>
> Key: HIVE-2318
> URL: https://issues.apache.org/jira/browse/HIVE-2318
> Project: Hive
> Issue Type: New Feature
> Reporter: Vaibhav Aggarwal
> Assignee: Vaibhav Aggarwal
> Attachments: HIVE-2318.patch
>
>
> Currently some of the Hive tasks like MoveTask, ConditionalMergeResolver assume that the data is being copied or moved on the same file system.
> These operators file if the source table is in one filesystem (like HDFS) and destination table is in another file system (like s3).
> This patch aims at:
> 1. Support moving data between different file systems.
> 2. Add support for file systems which do not support 'move' operation like s3.
> 3. Remove redundant operations like moving data from and to the same location.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2318) Support multiple file systems
Posted by "Vaibhav Aggarwal (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079606#comment-13079606 ]
Vaibhav Aggarwal commented on HIVE-2318:
----------------------------------------
I am thinking of writing some unit tests testing individual methods in order to simplify testing.
What do you think?
> Support multiple file systems
> -----------------------------
>
> Key: HIVE-2318
> URL: https://issues.apache.org/jira/browse/HIVE-2318
> Project: Hive
> Issue Type: New Feature
> Reporter: Vaibhav Aggarwal
> Assignee: Vaibhav Aggarwal
> Attachments: HIVE-2318.patch
>
>
> Currently some of the Hive tasks like MoveTask, ConditionalMergeResolver assume that the data is being copied or moved on the same file system.
> These operators file if the source table is in one filesystem (like HDFS) and destination table is in another file system (like s3).
> This patch aims at:
> 1. Support moving data between different file systems.
> 2. Add support for file systems which do not support 'move' operation like s3.
> 3. Remove redundant operations like moving data from and to the same location.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2318) Support multiple file systems
Posted by "Vaibhav Aggarwal (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vaibhav Aggarwal updated HIVE-2318:
-----------------------------------
Status: Patch Available (was: Open)
> Support multiple file systems
> -----------------------------
>
> Key: HIVE-2318
> URL: https://issues.apache.org/jira/browse/HIVE-2318
> Project: Hive
> Issue Type: New Feature
> Reporter: Vaibhav Aggarwal
> Assignee: Vaibhav Aggarwal
> Attachments: HIVE-2318.patch
>
>
> Currently some of the Hive tasks like MoveTask, ConditionalMergeResolver assume that the data is being copied or moved on the same file system.
> These operators file if the source table is in one filesystem (like HDFS) and destination table is in another file system (like s3).
> This patch aims at:
> 1. Support moving data between different file systems.
> 2. Add support for file systems which do not support 'move' operation like s3.
> 3. Remove redundant operations like moving data from and to the same location.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2318) Support multiple file systems
Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079234#comment-13079234 ]
Carl Steinbach commented on HIVE-2318:
--------------------------------------
Should the title of this ticket be changed to "Support S3 Filesystem"?
> Support multiple file systems
> -----------------------------
>
> Key: HIVE-2318
> URL: https://issues.apache.org/jira/browse/HIVE-2318
> Project: Hive
> Issue Type: New Feature
> Reporter: Vaibhav Aggarwal
> Assignee: Vaibhav Aggarwal
> Attachments: HIVE-2318.patch
>
>
> Currently some of the Hive tasks like MoveTask, ConditionalMergeResolver assume that the data is being copied or moved on the same file system.
> These operators file if the source table is in one filesystem (like HDFS) and destination table is in another file system (like s3).
> This patch aims at:
> 1. Support moving data between different file systems.
> 2. Add support for file systems which do not support 'move' operation like s3.
> 3. Remove redundant operations like moving data from and to the same location.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2318) Support multiple file systems
Posted by "Vaibhav Aggarwal (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vaibhav Aggarwal updated HIVE-2318:
-----------------------------------
Attachment: HIVE-2318.patch
> Support multiple file systems
> -----------------------------
>
> Key: HIVE-2318
> URL: https://issues.apache.org/jira/browse/HIVE-2318
> Project: Hive
> Issue Type: New Feature
> Reporter: Vaibhav Aggarwal
> Assignee: Vaibhav Aggarwal
> Attachments: HIVE-2318.patch
>
>
> Currently some of the Hive tasks like MoveTask, ConditionalMergeResolver assume that the data is being copied or moved on the same file system.
> These operators file if the source table is in one filesystem (like HDFS) and destination table is in another file system (like s3).
> This patch aims at:
> 1. Support moving data between different file systems.
> 2. Add support for file systems which do not support 'move' operation like s3.
> 3. Remove redundant operations like moving data from and to the same location.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2318) Support multiple file systems
Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carl Steinbach updated HIVE-2318:
---------------------------------
Status: Open (was: Patch Available)
The patch causes several test failures:
* TestContribCliDriver fileformat_base64.q
* TestCliDriver escape1.q
* TestNegativeCliDriver fileformat_void_input.q
> Support multiple file systems
> -----------------------------
>
> Key: HIVE-2318
> URL: https://issues.apache.org/jira/browse/HIVE-2318
> Project: Hive
> Issue Type: New Feature
> Reporter: Vaibhav Aggarwal
> Assignee: Vaibhav Aggarwal
> Attachments: HIVE-2318.patch
>
>
> Currently some of the Hive tasks like MoveTask, ConditionalMergeResolver assume that the data is being copied or moved on the same file system.
> These operators file if the source table is in one filesystem (like HDFS) and destination table is in another file system (like s3).
> This patch aims at:
> 1. Support moving data between different file systems.
> 2. Add support for file systems which do not support 'move' operation like s3.
> 3. Remove redundant operations like moving data from and to the same location.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2318) Support multiple file systems
Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085362#comment-13085362 ]
Carl Steinbach commented on HIVE-2318:
--------------------------------------
@Vaibhav: I think John's suggestion for testing is the way to go. Can you please add this to the next version of the patch?
> Support multiple file systems
> -----------------------------
>
> Key: HIVE-2318
> URL: https://issues.apache.org/jira/browse/HIVE-2318
> Project: Hive
> Issue Type: New Feature
> Reporter: Vaibhav Aggarwal
> Assignee: Vaibhav Aggarwal
> Attachments: HIVE-2318.patch
>
>
> Currently some of the Hive tasks like MoveTask, ConditionalMergeResolver assume that the data is being copied or moved on the same file system.
> These operators file if the source table is in one filesystem (like HDFS) and destination table is in another file system (like s3).
> This patch aims at:
> 1. Support moving data between different file systems.
> 2. Add support for file systems which do not support 'move' operation like s3.
> 3. Remove redundant operations like moving data from and to the same location.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2318) Support multiple file systems
Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072544#comment-13072544 ]
Carl Steinbach commented on HIVE-2318:
--------------------------------------
@Vaibav: Is this patch ready for review? If so, please attach the patch to this ticket and click "Submit Patch". Thanks.
> Support multiple file systems
> -----------------------------
>
> Key: HIVE-2318
> URL: https://issues.apache.org/jira/browse/HIVE-2318
> Project: Hive
> Issue Type: New Feature
> Reporter: Vaibhav Aggarwal
> Assignee: Vaibhav Aggarwal
>
> Currently some of the Hive tasks like MoveTask, ConditionalMergeResolver assume that the data is being copied or moved on the same file system.
> These operators file if the source table is in one filesystem (like HDFS) and destination table is in another file system (like s3).
> This patch aims at:
> 1. Support moving data between different file systems.
> 2. Add support for file systems which do not support 'move' operation like s3.
> 3. Remove redundant operations like moving data from and to the same location.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2318) Support multiple file systems
Posted by "John Sichi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079694#comment-13079694 ]
John Sichi commented on HIVE-2318:
----------------------------------
Besides mock-based unit tests, it would also be useful to have a way to configure test runs against a real S3 filesystem. (By default that configuration would be disabled for running Hive unit tests.) That way, if we want to say that a particular Hive release has working S3 support, we would make that one of the release criteria and perform the system testing on release candidates.
> Support multiple file systems
> -----------------------------
>
> Key: HIVE-2318
> URL: https://issues.apache.org/jira/browse/HIVE-2318
> Project: Hive
> Issue Type: New Feature
> Reporter: Vaibhav Aggarwal
> Assignee: Vaibhav Aggarwal
> Attachments: HIVE-2318.patch
>
>
> Currently some of the Hive tasks like MoveTask, ConditionalMergeResolver assume that the data is being copied or moved on the same file system.
> These operators file if the source table is in one filesystem (like HDFS) and destination table is in another file system (like s3).
> This patch aims at:
> 1. Support moving data between different file systems.
> 2. Add support for file systems which do not support 'move' operation like s3.
> 3. Remove redundant operations like moving data from and to the same location.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2318) Support multiple file systems
Posted by "jiraposter@reviews.apache.org (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072036#comment-13072036 ]
jiraposter@reviews.apache.org commented on HIVE-2318:
-----------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/1210/
-----------------------------------------------------------
Review request for hive.
Summary
-------
Support multiple file systems
This addresses bug HIVE-2318.
https://issues.apache.org/jira/browse/HIVE-2318
Diffs
-----
ql/src/java/org/apache/hadoop/hive/ql/Context.java 1a1ffc5
ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java c031f40
ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java c9e61a1
ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java c6f6755
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java a57f9cf
ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMRFileSink1.java 092a5cd
ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java 337a8eb
ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java 3001575
ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java 6f311c6
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java e1febc3
ql/src/java/org/apache/hadoop/hive/ql/plan/ConditionalResolverMergeFiles.java 5c09789
ql/src/java/org/apache/hadoop/hive/ql/plan/DynamicPartitionCtx.java 29cfe9d
Diff: https://reviews.apache.org/r/1210/diff
Testing
-------
Thanks,
Vaibhav
> Support multiple file systems
> -----------------------------
>
> Key: HIVE-2318
> URL: https://issues.apache.org/jira/browse/HIVE-2318
> Project: Hive
> Issue Type: New Feature
> Reporter: Vaibhav Aggarwal
> Assignee: Vaibhav Aggarwal
>
> Currently some of the Hive tasks like MoveTask, ConditionalMergeResolver assume that the data is being copied or moved on the same file system.
> These operators file if the source table is in one filesystem (like HDFS) and destination table is in another file system (like s3).
> This patch aims at:
> 1. Support moving data between different file systems.
> 2. Add support for file systems which do not support 'move' operation like s3.
> 3. Remove redundant operations like moving data from and to the same location.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira