Vaibhav Gumashta created HIVE-8392:
--------------------------------------

             Summary: HiveServer2 Operation.close fails on windows
                 Key: HIVE-8392
                 URL: https://issues.apache.org/jira/browse/HIVE-8392
             Project: Hive
          Issue Type: Bug
          Components: HiveServer2
    Affects Versions: 0.14.0
            Reporter: Vaibhav Gumashta
            Assignee: Vaibhav Gumashta
            Priority: Critical


{code}
java.io.IOException: Unable to delete file: 
C:\Users\HADOOP~1.ONP\AppData\Local\Temp\hadoop\operation_logs\ac7d4f51-d9b9-4189-b248-6e8d5e3102af\4b1f1153-5c0c-4741-8f53-1f1b6ed9b190

        at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2279)

        at 
org.apache.hive.service.cli.operation.OperationLog$LogFile.remove(OperationLog.java:131)

        at 
org.apache.hive.service.cli.operation.OperationLog.close(OperationLog.java:95)

        at 
org.apache.hive.service.cli.operation.Operation.cleanupOperationLog(Operation.java:268)

        at 
org.apache.hive.service.cli.operation.SQLOperation.close(SQLOperation.java:307)

        at 
org.apache.hive.service.cli.operation.OperationManager.closeOperation(OperationManager.java:215)

        at 
org.apache.hive.service.cli.session.HiveSessionImpl.closeOperation(HiveSessionImpl.java:640)

        at 
org.apache.hive.service.cli.CLIService.closeOperation(CLIService.java:392)

        at 
org.apache.hive.service.cli.thrift.ThriftCLIService.CloseOperation(ThriftCLIService.java:573)

        at 
org.apache.hive.service.cli.thrift.TCLIService$Processor$CloseOperation.getResult(TCLIService.java:1513)

        at 
org.apache.hive.service.cli.thrift.TCLIService$Processor$CloseOperation.getResult(TCLIService.java:1498)

        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)

        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)

        at 
org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56)

        at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:206)

        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

        at java.lang.Thread.run(Thread.java:745)
{code}

On windows, close needs to be called before delete.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to