[hive] branch master updated (bfaaad4 -> 3f3d210)

2021-11-18 Thread kgyrtkirk
This is an automated email from the ASF dual-hosted git repository.

kgyrtkirk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git.


from bfaaad4  HIVE-25531: Remove the core classified hive-exec artifact 
(Zoltan Haindrich, reviewed by Stamatis Zampetakis)
 add 3f3d210  HIVE-24390: Spelling fixes (#1674) (Josh Soref reviewed by 
Zoltan Haindrich)

No new revisions were added by this update.

Summary of changes:
 RELEASE_NOTES.txt  |  6 ++--
 .../hive/accumulo/AccumuloHiveConstants.java   |  2 +-
 .../hadoop/hive/accumulo/HiveAccumuloHelper.java   |  2 +-
 .../accumulo/columns/ColumnMappingFactory.java |  2 +-
 .../accumulo/mr/HiveAccumuloTableInputFormat.java  |  2 +-
 .../predicate/AccumuloPredicateHandler.java|  2 +-
 bin/hive   |  2 +-
 .../java/org/apache/hadoop/hive/conf/HiveConf.java |  8 ++---
 .../hive/common/metrics/TestLegacyMetrics.java |  6 ++--
 hcatalog/bin/hcat  |  2 +-
 hcatalog/src/docs/src/documentation/conf/cli.xconf |  2 +-
 .../docs/src/documentation/content/locationmap.xml |  2 +-
 .../src/documentation/content/xdocs/example.xml|  2 +-
 .../hive/hcatalog/api/repl/ReplicationTask.java|  2 +-
 .../hive/hcatalog/templeton/ExecServiceImpl.java   |  8 ++---
 itests/hive-minikdc/pom.xml|  2 +-
 .../hive/minikdc/JdbcWithMiniKdcSQLAuthTest.java   |  2 +-
 .../parse/BaseReplicationScenariosAcidTables.java  |  2 +-
 .../parse/TestReplicationScenariosAcidTables.java  | 16 -
 ...estReplicationScenariosAcidTablesBootstrap.java |  2 +-
 .../parse/TestTableLevelReplicationScenarios.java  |  4 +--
 .../TestMultiAuthorizationPreEventListener.java|  2 +-
 .../TestJdbcWithSQLAuthorization.java  |  6 ++--
 .../hive/jdbc/miniHS2/StartMiniHS2Cluster.java |  2 +-
 itests/qtest-druid/pom.xml |  2 +-
 .../control/AbstractCoreBlobstoreCliDriver.java|  2 +-
 .../java/org/apache/hadoop/hive/ql/QTestUtil.java  |  2 +-
 .../hadoop/hive/ql/hooks/CheckTableAccessHook.java |  2 +-
 .../java/org/apache/hive/jdbc/miniHS2/MiniHS2.java |  4 +--
 .../llap/metrics/TestReadWriteLockMetrics.java |  2 +-
 .../hive/llap/shufflehandler/DirWatcher.java   |  4 +--
 .../llap/shufflehandler/FadvisedFileRegion.java|  2 +-
 .../hive/llap/shufflehandler/ShuffleHandler.java   |  2 +-
 .../comparator/TestFirstInFirstOutComparator.java  |  2 +-
 .../llap/shufflehandler/TestShuffleHandler.java|  6 ++--
 .../hive/llap/tezplugins/LlapTaskCommunicator.java |  2 +-
 .../llap/tezplugins/LlapTaskSchedulerService.java  |  6 ++--
 parser/pom.xml |  4 +--
 .../UDAFTemplates/VectorUDAFMinMax.txt | 42 +++---
 .../UDAFTemplates/VectorUDAFMinMaxDecimal.txt  | 42 +++---
 .../VectorUDAFMinMaxIntervalDayTime.txt| 42 +++---
 .../UDAFTemplates/VectorUDAFMinMaxString.txt   | 42 +++---
 .../UDAFTemplates/VectorUDAFMinMaxTimestamp.txt| 42 +++---
 .../hive/llap/WritableByteChannelAdapter.java  |  2 +-
 .../hadoop/hive/ql/ddl/table/AlterTableType.java   |  4 +--
 .../hadoop/hive/ql/exec/ReduceSinkOperator.java|  2 +-
 .../org/apache/hadoop/hive/ql/exec/TopNHash.java   |  6 ++--
 .../org/apache/hadoop/hive/ql/exec/Utilities.java  | 10 +++---
 .../apache/hadoop/hive/ql/exec/mr/MapRedTask.java  |  2 +-
 .../ql/exec/persistence/HybridHashTableConf.java   |  2 +-
 .../aggregates/VectorUDAFBloomFilter.java  | 24 ++---
 .../aggregates/VectorUDAFBloomFilterMerge.java | 24 ++---
 .../optimized/VectorMapJoinOptimizedHashTable.java | 12 +++
 .../org/apache/hadoop/hive/ql/io/AcidUtils.java|  2 +-
 .../hadoop/hive/ql/io/FlatFileInputFormat.java |  2 +-
 .../apache/hadoop/hive/ql/lock/CompileLock.java| 14 
 .../zookeeper/ZooKeeperHiveLockManager.java|  2 +-
 .../DynamicPartitionPruningOptimization.java   |  2 +-
 .../hadoop/hive/ql/optimizer/GenMapRedUtils.java   |  2 +-
 .../hadoop/hive/ql/optimizer/MapJoinProcessor.java |  2 +-
 .../calcite/CalciteSemanticException.java  |  2 +-
 .../calcite/rules/HiveRelColumnsAlignment.java |  2 +-
 .../calcite/rules/HiveSubQueryRemoveRule.java  |  2 +-
 .../optimizer/calcite/translator/ASTConverter.java |  2 +-
 .../calcite/translator/RexNodeConverter.java   |  4 +--
 .../correlation/ReduceSinkDeDuplication.java   |  8 ++---
 .../BucketingSortingInferenceOptimizer.java|  2 +-
 .../optimizer/physical/GenMRSkewJoinProcessor.java |  2 +-
 .../hadoop/hive/ql/parse/CalcitePlanner.java   |  6 ++--
 .../hive/ql/parse/ImportSemanticAnalyzer.java  |  2 +-
 .../apache/hadoop/hive/ql/parse/QBSubQuery.java|  6 ++--
 .../apache/hadoop/hive/ql/parse/RowResolver.java   |  4 +--
 

[hive] branch master updated: HIVE-25531: Remove the core classified hive-exec artifact (Zoltan Haindrich, reviewed by Stamatis Zampetakis)

2021-11-18 Thread kgyrtkirk
This is an automated email from the ASF dual-hosted git repository.

kgyrtkirk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
 new bfaaad4  HIVE-25531: Remove the core classified hive-exec artifact 
(Zoltan Haindrich, reviewed by Stamatis Zampetakis)
bfaaad4 is described below

commit bfaaad4aa433963947d2a40020a432f19fc2b959
Author: Zoltan Haindrich 
AuthorDate: Thu Nov 18 16:17:58 2021 +

HIVE-25531: Remove the core classified hive-exec artifact (Zoltan 
Haindrich, reviewed by Stamatis Zampetakis)

Closes #2648
---
 itests/qtest-accumulo/pom.xml |  6 --
 itests/qtest-kudu/pom.xml |  6 --
 ql/pom.xml| 21 -
 3 files changed, 33 deletions(-)

diff --git a/itests/qtest-accumulo/pom.xml b/itests/qtest-accumulo/pom.xml
index 7c03159..41c125f 100644
--- a/itests/qtest-accumulo/pom.xml
+++ b/itests/qtest-accumulo/pom.xml
@@ -61,12 +61,6 @@
   org.apache.hive
   hive-exec
   test
-  core
-
-
-  org.apache.hive
-  hive-exec
-  test
   tests
 
 
diff --git a/itests/qtest-kudu/pom.xml b/itests/qtest-kudu/pom.xml
index 5a894bd..c83369b 100644
--- a/itests/qtest-kudu/pom.xml
+++ b/itests/qtest-kudu/pom.xml
@@ -50,12 +50,6 @@
   org.apache.hive
   hive-exec
   test
-  core
-
-
-  org.apache.hive
-  hive-exec
-  test
   tests
 
 
diff --git a/ql/pom.xml b/ql/pom.xml
index c82f965..4054bb3 100644
--- a/ql/pom.xml
+++ b/ql/pom.xml
@@ -1037,26 +1037,6 @@
 
   
   
-
-core-jar
-package
-
-  jar
-
-
-  core
-
-  
-  
 fallbackauthorizer-jar
 package
 
@@ -1082,7 +1062,6 @@
   shade
 
 
-
   
 
   


[hive] branch master updated: HIVE-25702: Upgrade Iceberg dependency to 0.12.1 (Adam Szita, reviewed by Marton Bod)

2021-11-18 Thread szita
This is an automated email from the ASF dual-hosted git repository.

szita pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
 new 450a348  HIVE-25702: Upgrade Iceberg dependency to 0.12.1 (Adam Szita, 
reviewed by Marton Bod)
450a348 is described below

commit 450a348bb9b3f3ceafad8039126d78e6c3bdf154
Author: Adam Szita <40628386+sz...@users.noreply.github.com>
AuthorDate: Thu Nov 18 17:21:16 2021 +0100

HIVE-25702: Upgrade Iceberg dependency to 0.12.1 (Adam Szita, reviewed by 
Marton Bod)
---
 iceberg/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iceberg/pom.xml b/iceberg/pom.xml
index 547baaf..216b72c 100644
--- a/iceberg/pom.xml
+++ b/iceberg/pom.xml
@@ -29,7 +29,7 @@
 
 ..
 .
-0.12.0
+0.12.1
 4.0.2
 3.4.4
 1.9.2


[hive] branch master updated: HIVE-25349: Skip password auth when trusted header is present in the http request(Saihemanth via Naveen Gangam)

2021-11-18 Thread ngangam
This is an automated email from the ASF dual-hosted git repository.

ngangam pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
 new 280632d  HIVE-25349: Skip password auth when trusted header is present 
in the http request(Saihemanth via Naveen Gangam)
280632d is described below

commit 280632d47f764507b4dcccd524ef8640cc1537b5
Author: saihemanth 
AuthorDate: Mon Jul 19 11:33:03 2021 -0700

HIVE-25349: Skip password auth when trusted header is present in the http 
request(Saihemanth via Naveen Gangam)
---
 common/src/java/org/apache/hadoop/hive/conf/HiveConf.java| 5 +
 .../org/apache/hive/service/cli/thrift/ThriftHttpServlet.java| 9 +++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java 
b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
index ad60447..ff54593 100644
--- a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
+++ b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
@@ -3737,6 +3737,11 @@ public class HiveConf extends Configuration {
 "The parent node in ZooKeeper used by HiveServer2 when supporting 
dynamic service discovery."),
 
HIVE_SERVER2_ZOOKEEPER_PUBLISH_CONFIGS("hive.server2.zookeeper.publish.configs",
 true,
 "Whether we should publish HiveServer2's configs to ZooKeeper."),
+HIVE_SERVER2_TRUSTED_PROXY_TRUSTHEADER("hive.server2.proxy.trustheader", 
"", "This config " +
+"indicates whether the connection is authenticated before the 
requests lands on HiveServer2, So that we can" +
+"avoid the authentication is again in HS2. Default value is empty, 
if it's value is set to some header say " +
+"'X-Trusted-Proxy-Auth-Header' then we need to look for this 
header in the connection string, if present " +
+"we directly extarct the client name from header."),
 
 // HiveServer2 global init file location
 
HIVE_SERVER2_GLOBAL_INIT_FILE_LOCATION("hive.server2.global.init.file.location",
 "${env:HIVE_CONF_DIR}",
diff --git 
a/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java 
b/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
index f734c40..20274ff 100644
--- a/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
+++ b/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
@@ -222,8 +222,13 @@ public class ThriftHttpServlet extends TServlet {
   clientUserName = doSamlAuth(request, response);
 }
   } else {
-// For password based authentication
-clientUserName = doPasswdAuth(request, authType);
+String proxyHeader = HiveConf.getVar(hiveConf, 
ConfVars.HIVE_SERVER2_TRUSTED_PROXY_TRUSTHEADER).trim();
+if (!proxyHeader.equals("") && request.getHeader(proxyHeader) != 
null) { //Trusted header is present, which means the user is already authorized.
+  clientUserName = getUsername(request, authType);
+} else {
+  // For password based authentication
+  clientUserName = doPasswdAuth(request, authType);
+}
   }
 }
   }