[ https://issues.apache.org/jira/browse/HIVE-25401?focusedWorklogId=631013&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-631013 ]
ASF GitHub Bot logged work on HIVE-25401: ----------------------------------------- Author: ASF GitHub Bot Created on: 29/Jul/21 06:43 Start Date: 29/Jul/21 06:43 Worklog Time Spent: 10m Work Description: Neilxzn opened a new pull request #2544: URL: https://github.com/apache/hive/pull/2544 ### What changes were proposed in this pull request? obtaine delegation tokens for hive scratchDirs before hive submit mapreduce job. ### Why are the changes needed? https://issues.apache.org/jira/browse/HIVE-25401 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? no test -- 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. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 631013) Remaining Estimate: 0h Time Spent: 10m > Insert overwrite a table which location is on other cluster fail in > kerberos cluster > -------------------------------------------------------------------------------------- > > Key: HIVE-25401 > URL: https://issues.apache.org/jira/browse/HIVE-25401 > Project: Hive > Issue Type: Bug > Components: Hive > Affects Versions: 2.3.0, 3.1.2 > Environment: hive 2.3 > hadoop3 cluster with kerberos > Reporter: Max Xie > Priority: Minor > Attachments: image-2021-07-29-14-25-23-418.png > > Time Spent: 10m > Remaining Estimate: 0h > > we have tow hdfs clusters with kerberos security, it means that mapreduce > task need delegation tokens to authenticate namenode when hive on mapreduce > run. > Insert overwrite a table which location is on other cluster fail in kerberos > cluster. For example, > # yarn cluster's default fs is hdfs://cluster1 > # tb1's location is hdfs://cluster1/tb1 > # tb2's location is hdfs://cluster2/tb2 > # sql `INSERT OVERWRITE TABLE tb2 SELECT * from tb1` run on yarn cluster > will fail > > reduce task error log: > !image-2021-07-29-14-25-23-418.png! > How to fix: > After dig it, web found mapreduce job just obtain delegation tokens for input > files in FileInputFormat. But Hive context get extendal scratchDir base on > table's location, If the table 's location is on other cluster, the > delegation token will not be obtained. > So we need to obtaine delegation tokens for hive scratchDirs before hive > submit mapreduce job. > > How to test: > no test > > -- This message was sent by Atlassian Jira (v8.3.4#803005)