[
https://issues.apache.org/jira/browse/HIVE-24288?focusedWorklogId=505392&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-505392
]
ASF GitHub Bot logged work on HIVE-24288:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 27/Oct/20 19:58
Start Date: 27/Oct/20 19:58
Worklog Time Spent: 10m
Work Description: nrg4878 commented on a change in pull request #1590:
URL: https://github.com/apache/hive/pull/1590#discussion_r512992042
##########
File path:
ql/src/java/org/apache/hadoop/hive/ql/processors/CompileProcessor.java
##########
@@ -254,6 +276,9 @@ CommandProcessorResponse compile(SessionState ss) throws
CommandProcessorExcepti
if (ss != null){
ss.add_resource(ResourceType.JAR, testArchive.getAbsolutePath());
+ try {
+ testArchive.deleteOnExit();
Review comment:
So each time a compile query is run, it creates new source and new jar
files and that are added as resources. I was not certain at what point these
resources get distributed to the cluster, (is it when add jar is run or when
you create a function using the resource, or when you run a query using the
UDF). so I thought deleting on exit is safe enough because the permissions are
already very narrow on this 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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 505392)
Time Spent: 50m (was: 40m)
> 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
> Labels: pull-request-available
> Time Spent: 50m
> 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)