This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 336a658f9aa [Fix](test)Fixing  Kerberos Principal Not Mapping 
Correctly to a Local User (#40905) (#41128)
336a658f9aa is described below

commit 336a658f9aa60cff12b0bf29052bc2c912f66b44
Author: Calvin Kirs <[email protected]>
AuthorDate: Tue Sep 24 16:02:51 2024 +0800

    [Fix](test)Fixing  Kerberos Principal Not Mapping Correctly to a Local User 
(#40905) (#41128)
    
    ## Proposed changes
    error log
    
    
    
http://43.132.222.7:8111/buildConfiguration/Doris_External_Regression/529960?buildTab=tests&status=muted&focusLine=NaN&suite=&package=external_table_p0.kerberos&class=test_single_hive_kerberos&expandedTest=build%3A%28id%3A529960%29%2Cid%3A2000000060
    
    ## Changes
    - If there are multiple realms, it's best to configure
    hadoop.security.auth_to_local to correctly map Kerberos Principals to
    local users.
    - Thrift exceptions should use those from hive-shade, but to avoid
    future changes in hive-shade, I omitted part of the package name prefix.
    
    (cherry picked from commit 902cf1e913f1b01dccb5978e9c9d521a2e8c9350)
    
    #40905
---
 .../external_table_p0/kerberos/test_single_hive_kerberos.groovy     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/regression-test/suites/external_table_p0/kerberos/test_single_hive_kerberos.groovy
 
b/regression-test/suites/external_table_p0/kerberos/test_single_hive_kerberos.groovy
index 7a0864923f5..dfe5532fefd 100644
--- 
a/regression-test/suites/external_table_p0/kerberos/test_single_hive_kerberos.groovy
+++ 
b/regression-test/suites/external_table_p0/kerberos/test_single_hive_kerberos.groovy
@@ -29,6 +29,10 @@ suite("test_single_hive_kerberos", 
"p0,external,kerberos,external_docker,externa
                 "hadoop.security.authentication" = "kerberos",
                 
"hadoop.kerberos.principal"="presto-server/[email protected]",
                 "hadoop.kerberos.keytab" = "/keytabs/presto-server.keytab",
+                "hadoop.security.auth_to_local" = 
"RULE:[2:\$1@\$0](.*@LABS.TERADATA.COM)s/@.*//
+                                   
RULE:[2:\$1@\$0](.*@OTHERLABS.TERADATA.COM)s/@.*//
+                                   RULE:[2:\$1@\$0](.*@OTHERREALM.COM)s/@.*//
+                                   DEFAULT",
                 "hive.metastore.sasl.enabled " = "true",
                 "hive.metastore.kerberos.principal" = 
"hive/[email protected]"
             );
@@ -57,7 +61,7 @@ suite("test_single_hive_kerberos", 
"p0,external,kerberos,external_docker,externa
             logger.info(e.toString())
             // caused by a warning msg if enable sasl on hive but 
"hive.metastore.sasl.enabled" is not true:
             // "set_ugi() not successful, Likely cause: new client talking to 
old server. Continuing without it."
-            
assertTrue(e.toString().contains("org.apache.thrift.transport.TTransportException:
 null"))
+            
assertTrue(e.toString().contains("thrift.transport.TTransportException"))
         }
 
         try {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to