You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Navis (JIRA)" <ji...@apache.org> on 2012/09/05 13:59:07 UTC

[jira] [Created] (HIVE-3431) Resources on non-local file system should be downloaded to temporary directory sometimes

Navis created HIVE-3431:
---------------------------

             Summary: Resources on non-local file system should be downloaded to temporary directory sometimes
                 Key: HIVE-3431
                 URL: https://issues.apache.org/jira/browse/HIVE-3431
             Project: Hive
          Issue Type: Improvement
          Components: Configuration
    Affects Versions: 0.10.0
            Reporter: Navis
            Assignee: Navis
            Priority: Trivial


"add resource <remote-uri>" command downloads the resource file to location specified by conf "hive.downloaded.resources.dir" in local file system. But when the command above is executed concurrently to hive-server for same file, some client fails by VM crash, which is caused by overwritten file by other requests.

So there should be a configuration to provide per request location for add resource command, something like "set hiveconf:hive.downloaded.resources.dir=temporary"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HIVE-3431) Resources on non-local file system should be downloaded to temporary directory sometimes

Posted by "Phabricator (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495996#comment-13495996 ] 

Phabricator commented on HIVE-3431:
-----------------------------------

mgrover has commented on the revision "HIVE-3431 [jira] Resources on non-local file system should be downloaded to temporary directory sometimes".

INLINE COMMENTS
  ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java:605 Can location ever be null?

REVISION DETAIL
  https://reviews.facebook.net/D5199

To: JIRA, navis
Cc: mgrover

                
> Resources on non-local file system should be downloaded to temporary directory sometimes
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-3431
>                 URL: https://issues.apache.org/jira/browse/HIVE-3431
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>         Attachments: HIVE-3431.1.patch.txt
>
>
> "add resource <remote-uri>" command downloads the resource file to location specified by conf "hive.downloaded.resources.dir" in local file system. But when the command above is executed concurrently to hive-server for same file, some client fails by VM crash, which is caused by overwritten file by other requests.
> So there should be a configuration to provide per request location for add resource command, something like "set hiveconf:hive.downloaded.resources.dir=temporary"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HIVE-3431) Resources on non-local file system should be downloaded to temporary directory sometimes

Posted by "Mark Grover (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495992#comment-13495992 ] 

Mark Grover commented on HIVE-3431:
-----------------------------------

The patch looks good. However, would it be a bad idea to use temporary download location when the property is unset or set to empty string (instead of using the keyword "temporary")?
                
> Resources on non-local file system should be downloaded to temporary directory sometimes
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-3431
>                 URL: https://issues.apache.org/jira/browse/HIVE-3431
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>         Attachments: HIVE-3431.1.patch.txt
>
>
> "add resource <remote-uri>" command downloads the resource file to location specified by conf "hive.downloaded.resources.dir" in local file system. But when the command above is executed concurrently to hive-server for same file, some client fails by VM crash, which is caused by overwritten file by other requests.
> So there should be a configuration to provide per request location for add resource command, something like "set hiveconf:hive.downloaded.resources.dir=temporary"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HIVE-3431) Resources on non-local file system should be downloaded to temporary directory sometimes

Posted by "Phabricator (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phabricator updated HIVE-3431:
------------------------------

    Attachment: HIVE-3431.D5199.2.patch

navis updated the revision "HIVE-3431 [jira] Resources on non-local file system should be downloaded to temporary directory sometimes".
Reviewers: JIRA

  Addressed comments and rebased to trunk


REVISION DETAIL
  https://reviews.facebook.net/D5199

AFFECTED FILES
  common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
  conf/hive-default.xml.template
  ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java

To: JIRA, navis
Cc: mgrover

                
> Resources on non-local file system should be downloaded to temporary directory sometimes
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-3431
>                 URL: https://issues.apache.org/jira/browse/HIVE-3431
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>         Attachments: HIVE-3431.1.patch.txt, HIVE-3431.D5199.2.patch
>
>
> "add resource <remote-uri>" command downloads the resource file to location specified by conf "hive.downloaded.resources.dir" in local file system. But when the command above is executed concurrently to hive-server for same file, some client fails by VM crash, which is caused by overwritten file by other requests.
> So there should be a configuration to provide per request location for add resource command, something like "set hiveconf:hive.downloaded.resources.dir=temporary"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HIVE-3431) Resources on non-local file system should be downloaded to temporary directory sometimes

Posted by "Navis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Navis updated HIVE-3431:
------------------------

    Status: Patch Available  (was: Open)

https://reviews.facebook.net/D5199
                
> Resources on non-local file system should be downloaded to temporary directory sometimes
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-3431
>                 URL: https://issues.apache.org/jira/browse/HIVE-3431
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>
> "add resource <remote-uri>" command downloads the resource file to location specified by conf "hive.downloaded.resources.dir" in local file system. But when the command above is executed concurrently to hive-server for same file, some client fails by VM crash, which is caused by overwritten file by other requests.
> So there should be a configuration to provide per request location for add resource command, something like "set hiveconf:hive.downloaded.resources.dir=temporary"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HIVE-3431) Resources on non-local file system should be downloaded to temporary directory sometimes

Posted by "Phabricator (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495989#comment-13495989 ] 

Phabricator commented on HIVE-3431:
-----------------------------------

mgrover has commented on the revision "HIVE-3431 [jira] Resources on non-local file system should be downloaded to temporary directory sometimes".

  Please add to the documentation of the property DOWNLOADED_RESOURCES_DIR about the special use of keyword "temporary".

INLINE COMMENTS
  ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java:609 "temporary" seems too normal of a name. Could we perhaps make it a little more uncommon. Something like "@temporary@"?

  I don't feel too strongly about this so if feel strongly that "temporary" is good enough, no need to change anything.

REVISION DETAIL
  https://reviews.facebook.net/D5199

To: JIRA, navis
Cc: mgrover

                
> Resources on non-local file system should be downloaded to temporary directory sometimes
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-3431
>                 URL: https://issues.apache.org/jira/browse/HIVE-3431
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>         Attachments: HIVE-3431.1.patch.txt
>
>
> "add resource <remote-uri>" command downloads the resource file to location specified by conf "hive.downloaded.resources.dir" in local file system. But when the command above is executed concurrently to hive-server for same file, some client fails by VM crash, which is caused by overwritten file by other requests.
> So there should be a configuration to provide per request location for add resource command, something like "set hiveconf:hive.downloaded.resources.dir=temporary"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HIVE-3431) Resources on non-local file system should be downloaded to temporary directory sometimes

Posted by "Phabricator (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497767#comment-13497767 ] 

Phabricator commented on HIVE-3431:
-----------------------------------

mgrover has commented on the revision "HIVE-3431 [jira] Resources on non-local file system should be downloaded to temporary directory sometimes".

  Navis, thanks for the changes. They look good to me, thanks!

  I think you raise an interesting question about magic words convention, one that's beyond the scope of this review. Would you please raise that question on the dev mailing list to see people have some opinion. Perhaps, someone could point out how other projects (e.g. hadoop) deal with it (I haven't checked myself yet). A couple of conventions I can think of would be:
  1. $temporary
  2. @temporary@
  3. @temporary

  Anyways, if you don't mind, post on the dev mailing list and we can take it on from there.

  Thanks again!

REVISION DETAIL
  https://reviews.facebook.net/D5199

To: JIRA, navis
Cc: mgrover

                
> Resources on non-local file system should be downloaded to temporary directory sometimes
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-3431
>                 URL: https://issues.apache.org/jira/browse/HIVE-3431
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>         Attachments: HIVE-3431.1.patch.txt, HIVE-3431.D5199.2.patch
>
>
> "add resource <remote-uri>" command downloads the resource file to location specified by conf "hive.downloaded.resources.dir" in local file system. But when the command above is executed concurrently to hive-server for same file, some client fails by VM crash, which is caused by overwritten file by other requests.
> So there should be a configuration to provide per request location for add resource command, something like "set hiveconf:hive.downloaded.resources.dir=temporary"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HIVE-3431) Resources on non-local file system should be downloaded to temporary directory sometimes

Posted by "Navis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Navis updated HIVE-3431:
------------------------

    Attachment: HIVE-3431.1.patch.txt
    
> Resources on non-local file system should be downloaded to temporary directory sometimes
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-3431
>                 URL: https://issues.apache.org/jira/browse/HIVE-3431
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>         Attachments: HIVE-3431.1.patch.txt
>
>
> "add resource <remote-uri>" command downloads the resource file to location specified by conf "hive.downloaded.resources.dir" in local file system. But when the command above is executed concurrently to hive-server for same file, some client fails by VM crash, which is caused by overwritten file by other requests.
> So there should be a configuration to provide per request location for add resource command, something like "set hiveconf:hive.downloaded.resources.dir=temporary"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HIVE-3431) Resources on non-local file system should be downloaded to temporary directory sometimes

Posted by "Phabricator (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497681#comment-13497681 ] 

Phabricator commented on HIVE-3431:
-----------------------------------

navis has commented on the revision "HIVE-3431 [jira] Resources on non-local file system should be downloaded to temporary directory sometimes".

  hive-default.xml.template will be updated. I always forget that.

INLINE COMMENTS
  ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java:605 DOWNLOADED_RESOURCES_DIR has default value and I think it's meaningless to set the value as null. But.. I'll check it.
  ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java:609 Agree on your thoughts. It seemed possible to specify 'temporary' for implying $WORKING_HOME/temporary.

  This would be a good chance to making a convention for hive internal magic words something like "@hive_<value>". Have some idea?

REVISION DETAIL
  https://reviews.facebook.net/D5199

To: JIRA, navis
Cc: mgrover

                
> Resources on non-local file system should be downloaded to temporary directory sometimes
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-3431
>                 URL: https://issues.apache.org/jira/browse/HIVE-3431
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>         Attachments: HIVE-3431.1.patch.txt
>
>
> "add resource <remote-uri>" command downloads the resource file to location specified by conf "hive.downloaded.resources.dir" in local file system. But when the command above is executed concurrently to hive-server for same file, some client fails by VM crash, which is caused by overwritten file by other requests.
> So there should be a configuration to provide per request location for add resource command, something like "set hiveconf:hive.downloaded.resources.dir=temporary"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira