You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Ashish Thusoo (JIRA)" <ji...@apache.org> on 2008/09/05 20:08:44 UTC

[jira] Created: (HADOOP-4089) Check if the tmp file used in the CLI exists before using it.

Check if the tmp file used in the CLI exists before using it.
-------------------------------------------------------------

                 Key: HADOOP-4089
                 URL: https://issues.apache.org/jira/browse/HADOOP-4089
             Project: Hadoop Core
          Issue Type: Bug
            Reporter: Ashish Thusoo


Currently the CLI needs /tmp/<user-name> directory to be present, otherwise it gives an error.

We should create it automatically when we launch the CLI.

This was reported by Chad.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HADOOP-4089) Check if the tmp file used in the CLI exists before using it.

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

Ashish Thusoo resolved HADOOP-4089.
-----------------------------------

    Resolution: Fixed

Fixed as part of JIRA-4230

> Check if the tmp file used in the CLI exists before using it.
> -------------------------------------------------------------
>
>                 Key: HADOOP-4089
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4089
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/hive
>            Reporter: Ashish Thusoo
>             Fix For: 0.19.0
>
>
> Currently the CLI needs /tmp/<user-name> directory to be present, otherwise it gives an error.
> We should create it automatically when we launch the CLI.
> This was reported by Chad.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-4089) Check if the tmp file used in the CLI exists before using it.

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

Ashish Thusoo updated HADOOP-4089:
----------------------------------

    Component/s: contrib/hive

> Check if the tmp file used in the CLI exists before using it.
> -------------------------------------------------------------
>
>                 Key: HADOOP-4089
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4089
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/hive
>            Reporter: Ashish Thusoo
>
> Currently the CLI needs /tmp/<user-name> directory to be present, otherwise it gives an error.
> We should create it automatically when we launch the CLI.
> This was reported by Chad.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-4089) Check if the tmp file used in the CLI exists before using it.

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-4089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628718#action_12628718 ] 

Doug Cutting commented on HADOOP-4089:
--------------------------------------

Elsewhere in Hadoop we have avoided the use of /tmp, since it is error-prone (it may not exist, it may not be large, etc.).  What's the justification for using it here?

> Check if the tmp file used in the CLI exists before using it.
> -------------------------------------------------------------
>
>                 Key: HADOOP-4089
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4089
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/hive
>            Reporter: Ashish Thusoo
>
> Currently the CLI needs /tmp/<user-name> directory to be present, otherwise it gives an error.
> We should create it automatically when we launch the CLI.
> This was reported by Chad.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-4089) Check if the tmp file used in the CLI exists before using it.

Posted by "Chad Whipkey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-4089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631075#action_12631075 ] 

Chad Whipkey commented on HADOOP-4089:
--------------------------------------

I think that rather than creating it, it would be fine to just print a nice error message if the directory does not exist.

> Check if the tmp file used in the CLI exists before using it.
> -------------------------------------------------------------
>
>                 Key: HADOOP-4089
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4089
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/hive
>            Reporter: Ashish Thusoo
>
> Currently the CLI needs /tmp/<user-name> directory to be present, otherwise it gives an error.
> We should create it automatically when we launch the CLI.
> This was reported by Chad.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-4089) Check if the tmp file used in the CLI exists before using it.

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

Ashish Thusoo updated HADOOP-4089:
----------------------------------

    Fix Version/s: 0.19.0

Fixed as part of JIRA-4230

> Check if the tmp file used in the CLI exists before using it.
> -------------------------------------------------------------
>
>                 Key: HADOOP-4089
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4089
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/hive
>            Reporter: Ashish Thusoo
>             Fix For: 0.19.0
>
>
> Currently the CLI needs /tmp/<user-name> directory to be present, otherwise it gives an error.
> We should create it automatically when we launch the CLI.
> This was reported by Chad.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-4089) Check if the tmp file used in the CLI exists before using it.

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-4089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628845#action_12628845 ] 

Ashish Thusoo commented on HADOOP-4089:
---------------------------------------

We have actually not hard coded this in the code. The scratch directory that the hive client side code uses is stored in the hive-default.xml and the hive-default.xml file contains /tmp/hive-${user.name} as the value of the 
hive.exec.scratchdir property.

This is completely modeled on how hadoop defines hadoop.tmp.dir in the hadoop-default.xml.



> Check if the tmp file used in the CLI exists before using it.
> -------------------------------------------------------------
>
>                 Key: HADOOP-4089
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4089
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/hive
>            Reporter: Ashish Thusoo
>
> Currently the CLI needs /tmp/<user-name> directory to be present, otherwise it gives an error.
> We should create it automatically when we launch the CLI.
> This was reported by Chad.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.