[
https://issues.apache.org/jira/browse/HIVE-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098488#comment-13098488
]
[email protected] commented on HIVE-2428:
-----------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/1731/
-----------------------------------------------------------
Review request for hive, Scott Chen and Ning Zhang.
Summary
-------
Added the -archives flag to the command run when a map reduce task is run
locally. It runs essentially exactly as it does for the -files flag.
This addresses bug HIVE-2428.
https://issues.apache.org/jira/browse/HIVE-2428
Diffs
-----
trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/MapRedTask.java 1164711
Diff: https://reviews.apache.org/r/1731/diff
Testing
-------
I run the unit test queries to verify nothing was broken.
I also ran the query specified in the issues description and verified that
information was returned for both files and archives in both local and
non-local mode.
Thanks,
Kevin
> ADD ARCHIVE has no effect when query runs in local mode
> -------------------------------------------------------
>
> Key: HIVE-2428
> URL: https://issues.apache.org/jira/browse/HIVE-2428
> Project: Hive
> Issue Type: Bug
> Reporter: Kevin Wilfong
> Assignee: Kevin Wilfong
> Attachments: HIVE-2428.1.patch.txt
>
>
> When you ADD ARCHIVE a file and the query runs in local mode, the file is not
> available at all.
> For example running the commands
> echo '#!/bin/bash\nls -l 1>&2;read' > foo.sh
> hive -e 'ADD FILE foo.sh; ADD ARCHIVE /tmp/mapreduce_test.zip; SELECT
> TRANSFORM(*) USING "sh foo.sh" FROM src'
> when the query is allowed to run in local mode, only information for foo.sh
> is returned.
> However, if the query is not allowed to run in local mode, information for
> both foo.sh and mapreduce_test.zip is returned.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira