[
https://issues.apache.org/jira/browse/RANGER-5424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ramesh Mani reassigned RANGER-5424:
-----------------------------------
Assignee: Ramesh Mani
> Hive Insert command failed in Ranger Docker setup due to authentication and
> authorization issue.
> ------------------------------------------------------------------------------------------------
>
> Key: RANGER-5424
> URL: https://issues.apache.org/jira/browse/RANGER-5424
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Affects Versions: 3.0.0
> Reporter: Ramesh Mani
> Assignee: Ramesh Mani
> Priority: Major
>
> Hive Insert command failed in Ranger Docker setup due to authentication and
> authorization issue.
> * apache-tez-0.10.4-bin.tar.gz failed to copy into /apps/tez due to lack of
> kerberos token present while copying.
> * user "hive" needs hdfs RWX permission to create folder and copy tez jar
> for insert to succeed.
>
> {code:java}
> Current hive insert into table in the docker setup failed with
> 8e7-43b2-b6ec-9ffe61d7e44c-resources; 0 additional files, 0 localized
> resources
> 2025-12-15T23:19:31,215 ERROR [HiveServer2-Background-Pool: Thread-157]
> tez.TezTask: Failed to execute tez graph.
> org.apache.tez.dag.api.TezException: java.io.FileNotFoundException: File does
> not exist: hdfs://ranger-hadoop:9000/apps/tez/apache-tez-0.10.4-bin.tar.gz
> at org.apache.tez.client.TezClient.start(TezClient.java:410)
> ~[tez-api-0.10.4.jar:0.10.4]
> at
> org.apache.hadoop.hive.ql.exec.tez.TezSessionState.startSessionAndContainers(TezSessionState.java:459)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at
> org.apache.hadoop.hive.ql.exec.tez.TezSessionState.openInternal(TezSessionState.java:377)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at
> org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolSession.openInternal(TezSessionPoolSession.java:124)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at
> org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:243)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at
> org.apache.hadoop.hive.ql.exec.tez.TezTask.ensureSessionHasResources(TezTask.java:453)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at org.apache.hadoop.hive.ql.exec.tez.TezTask.execute(TezTask.java:218)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:214)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at
> org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:105)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at org.apache.hadoop.hive.ql.Executor.launchTask(Executor.java:354)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at org.apache.hadoop.hive.ql.Executor.launchTasks(Executor.java:327)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at org.apache.hadoop.hive.ql.Executor.runTasks(Executor.java:244)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at org.apache.hadoop.hive.ql.Executor.execute(Executor.java:105)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:367)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:205)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at org.apache.hadoop.hive.ql.Driver.run(Driver.java:154)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at org.apache.hadoop.hive.ql.Driver.run(Driver.java:149)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:185)
> ~[hive-exec-4.0.1.jar:4.0.1]
> at
> org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:236)
> ~[hive-service-4.0.1.jar:4.0.1]
> at
> org.apache.hive.service.cli.operation.SQLOperation.access$500(SQLOperation.java:90)
> ~[hive-service-4.0.1.jar:4.0.1]
> at
> org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:336)
> ~[hive-service-4.0.1.jar:4.0.1]
> at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_462]
> at javax.security.auth.Subject.doAs(Subject.java:422) ~[?:1.8.0_462]
> at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1899)
> ~[hadoop-common-3.3.6.jar:?]
> at
> org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:356)
> ~[hive-service-4.0.1.jar:4.0.1]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> ~[?:1.8.0_462]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_462]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> ~[?:1.8.0_462]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> ~[?:1.8.0_462]
> at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_462]
> Caused by: java.io.FileNotFoundException: File does not exist:
> hdfs://ranger-hadoop:9000/apps/tez/apache-tez-0.10.4-bin.tar.gz
> at
> org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1833)
> ~[hadoop-hdfs-client-3.3.6.jar:?]
> at
> org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1826)
> ~[hadoop-hdfs-client-3.3.6.jar:?]
> at
> org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
> ~[hadoop-common-3.3.6.jar:?]
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)