You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/10/20 01:34:00 UTC

[jira] [Work logged] (HIVE-24288) Files created by CompileProcessor have incorrect permissions

     [ https://issues.apache.org/jira/browse/HIVE-24288?focusedWorklogId=502451&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-502451 ]

ASF GitHub Bot logged work on HIVE-24288:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Oct/20 01:33
            Start Date: 20/Oct/20 01:33
    Worklog Time Spent: 10m 
      Work Description: nrg4878 opened a new pull request #1590:
URL: https://github.com/apache/hive/pull/1590


   ### What changes were proposed in this pull request?
   When you run the "compile" query in Hive CLI, this creates some temp files in java.io.tmp directory that need to be cleaned up after the resource is added to the session.
   For example:
   compile `import org.apache.hadoop.hive.ql.exec.UDF \;
   public class Pyth extends UDF {
     public double evaluate(double a, double b){
       return Math.sqrt((a*a) + (b*b)) \;
     }
   } ` AS GROOVY NAMED Pyth.groovy;
   
   in /tmp,
   ./0_1603130653872in/Pyth.groovy
   ./0_1603130393407in/Pyth.groovy
   ./0_1603130541093in/Pyth.groovy
   
   ls -l *.jar
   -rw-r--r-- 1 root root 1578 Oct 19 17:59 0_1603130393407.jar
   -rw-r--r-- 1 hive hive 1578 Oct 19 18:02 0_1603130541093.jar
   -rw-r--r-- 1 hive hive 1578 Oct 19 18:04 0_1603130653872.jar
   
   ### Why are the changes needed?
   Cleanup needed
   
   ### Does this PR introduce _any_ user-facing change?
   NO
   
   ### How was this patch tested?
   Manually using Hive CLI.
   After the fix,
   ls -l in /tmp, shows no new .groovy files
   Also the jar file has lesser permissions for non-owners
   -rw------- 1 root root 1578 Oct 20 00:54 2_1603155248285.jar


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 502451)
    Remaining Estimate: 0h
            Time Spent: 10m

> Files created by CompileProcessor have incorrect permissions
> ------------------------------------------------------------
>
>                 Key: HIVE-24288
>                 URL: https://issues.apache.org/jira/browse/HIVE-24288
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 3.1.0
>            Reporter: Naveen Gangam
>            Assignee: Naveen Gangam
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Compile processor generates some temporary files as part of processing. These need to be cleaned up on exit from CLI.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)