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

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

                Author: ASF GitHub Bot
            Created on: 12/May/22 13:04
            Start Date: 12/May/22 13:04
    Worklog Time Spent: 10m 
      Work Description: ayushtkn commented on code in PR #3279:
URL: https://github.com/apache/hive/pull/3279#discussion_r871355509


##########
ql/src/java/org/apache/hadoop/hive/ql/io/RecordReaderWrapper.java:
##########
@@ -69,7 +70,14 @@ static RecordReader create(InputFormat inputFormat, 
HiveInputFormat.HiveInputSpl
       JobConf jobConf, Reporter reporter) throws IOException {
     int headerCount = Utilities.getHeaderCount(tableDesc);
     int footerCount = Utilities.getFooterCount(tableDesc, jobConf);
-    RecordReader innerReader = 
inputFormat.getRecordReader(split.getInputSplit(), jobConf, reporter);
+
+    RecordReader innerReader = null;
+    try {
+     innerReader = inputFormat.getRecordReader(split.getInputSplit(), jobConf, 
reporter);
+    } catch (InterruptedIOException iioe) {
+      // If reading from the underlying record reader is interrupted, return a 
no-op record reader

Review Comment:
   Answer is here & this does fixes a couple of test so I picked it:
   https://github.com/apache/hive/pull/1742/files#r674896581



##########
itests/pom.xml:
##########
@@ -352,6 +352,12 @@
         <groupId>org.apache.hadoop</groupId>
         <artifactId>hadoop-yarn-client</artifactId>
         <version>${hadoop.version}</version>
+        <exclusions>
+          <exclusion>
+            <groupId>org.jline</groupId>
+            <artifactId>jline</artifactId>
+          </exclusion>

Review Comment:
   Just tried. Started a Hive cluster with derby, init hive db, started HS2, 
then beeline.
   show databases;
   show tables;
   create table emp(id int)
    insert into emp values (1),(2),(3),(4);
   select * from emp;
   show create table emp;
   
   Jline was used in Beeline, I think it should have broken that. Let me know 
what else can be tested.



##########
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/StorageBasedAuthorizationProvider.java:
##########
@@ -178,8 +178,7 @@ public void authorize(Database db, Privilege[] 
readRequiredPriv, Privilege[] wri
 
   private static boolean userHasProxyPrivilege(String user, Configuration 
conf) {
     try {
-      if (MetaStoreServerUtils.checkUserHasHostProxyPrivileges(user, conf,
-              HMSHandler.getIPAddress())) {
+      if (MetaStoreServerUtils.checkUserHasHostProxyPrivileges(user, conf, 
HMSHandler.getIPAddress())) {

Review Comment:
   Max LineLength allowed I guess is 120?
   
https://github.com/apache/hive/blob/master/checkstyle/checkstyle.xml#L159-L160





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

    Worklog Id:     (was: 769619)
    Time Spent: 8h 53m  (was: 8h 43m)

> Upgrade Hadoop to 3.3.1
> -----------------------
>
>                 Key: HIVE-24484
>                 URL: https://issues.apache.org/jira/browse/HIVE-24484
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: David Mollitor
>            Assignee: David Mollitor
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 8h 53m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to