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

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

commit 5f9cb486e4de27129ab0428a71e9cbb0d49fd087
Author: Stamatis Zampetakis <zabe...@gmail.com>
AuthorDate: Wed Mar 27 10:47:13 2024 +0100

    HIVE-28155 HIVE-28157 HIVE-28158 HIVE-28159 HIVE-28160: LICENSE and source 
header improvements (Stamatis Zampetakis reviewed by Zhihua Deng)
    
    HIVE-28158: Add ASF license header in non-java files
    
    According to the a ASF policy all source files should contain an ASF 
header. Currently there are a lot of source files that do not contain the ASF 
header. The changes here aim to address the following categories:
    
    Must have:
    
    * Python files (.py)
    * Bash/Shell script files (.sh)
    * Javascript files (.js)
    
    Should have:
    
    * Maven files (pom.xml)
    * GitHub workflows and Docker files (.yml)
    
    Good to have:
    
    * Hive/Tez/Yarn and other configuration files (.xml)
    * Log4J property files (.properties)
    * Markdown files (.md)
    
    HIVE-28160: Improve LICENSE for jquery and glyphicons-halflings fonts/icons
    
    The following files do not have an ASF header and it unclear to reason 
about the license that applies to them and if it complies to the ASF policy.
    
    jquery.min.js (missing from LICENSE)
    jquery.sparkline.min.js (typo in LICENSE)
    glyphicons-halflings-regular.svg
    glyphicons-halflings-regular.woff
    glyphicons-halflings-regular.ttf
    glyphicons-halflings-regular.eot
    
    The Glyphicons are available under multiple licenses including commercial 
ones so additional clarifications are needed to ensure that the ones Hive is 
using are under AL2.
    
    HIVE-28159: Remove copyright notice from ASF headers
    
    Source files should not contain ASF copyright notice in the header as per 
https://www.apache.org/legal/src-headers.html#headers
    
    HIVE-28157: Drop unused Arcanist configuration file
    
    The Arcanist configuration file .arcconfig was last modified in 2011 
(HIVE-2588) and it has not been used for a very long time.
    
    The configuration points to Facebook instance of the Phabricator 
(https://reviews.facebook.net/) that is no longer in service.
    
    HIVE-28155: StringToDouble.java violates the ASF 3rd party license 
guidelines
    
    1. Remove ASF header since the original file is under BSD-3 license
    2. Add rat exclusion
    3. Add entry in LICENSE file
    
    Upgrade Rat plugin verion from 0.13 to 0.16.1 for better coverage and error 
messages
    
    Close apache/hive#5168
---
 .arcconfig                                         | 15 ---------
 .github/actions/spelling/README.md                 | 18 +++++++++++
 .github/actions/spelling/advice.md                 | 18 +++++++++++
 .github/assign-by-files.yml                        | 16 ++++++++++
 .github/workflows/auto-assign.yml                  | 16 ++++++++++
 .github/workflows/docker-GA-images.yml             | 16 ++++++++++
 .github/workflows/spelling.yml                     | 16 ++++++++++
 .github/workflows/stale.yml                        | 16 ++++++++++
 LICENSE                                            | 37 +++++++++++++++++++++-
 README.md                                          | 18 +++++++++++
 .../apache/hive/beeline/TestTableOutputFormat.java | 14 ++++----
 bin/ext/tokentool.sh                               | 17 ++++++++++
 data/conf/fair-scheduler-test.xml                  | 16 ++++++++++
 data/conf/iceberg/llap/tez-site.xml                | 17 ++++++++++
 data/conf/iceberg/tez/tez-site.xml                 | 17 ++++++++++
 data/conf/llap/tez-site.xml                        | 17 ++++++++++
 data/conf/tez/tez-site.xml                         | 17 ++++++++++
 druid-handler/README.md                            | 18 +++++++++++
 hbase-handler/README.md                            | 20 +++++++++++-
 iceberg/checkstyle/checkstyle-suppressions.xml     | 16 ++++++++++
 iceberg/checkstyle/checkstyle.xml                  | 17 ++++++++++
 iceberg/iceberg-catalog/pom.xml                    | 13 ++++++++
 iceberg/iceberg-handler/pom.xml                    | 13 ++++++++
 iceberg/patched-iceberg-api/pom.xml                | 13 ++++++++
 iceberg/patched-iceberg-core/pom.xml               | 13 ++++++++
 itests/bin/generate-cli-splits.sh                  | 17 ++++++++++
 itests/bin/validateTestConfiguration.sh            | 15 +++++++++
 .../TestDDLWithRemoteMetastoreSecondNamenode.java  | 13 ++++----
 .../hadoop/hive/ql/TestWarehouseExternalDir.java   | 13 ++++----
 itests/qtest-iceberg/pom.xml                       | 13 ++++++++
 kafka-handler/README.md                            | 18 +++++++++++
 llap-server/src/main/resources/package.py          | 16 ++++++++++
 llap-server/src/main/resources/templates.py        | 17 ++++++++++
 packaging/src/docker/README.md                     | 18 +++++++++++
 packaging/src/docker/docker-compose.yml            | 16 ++++++++++
 packaging/src/license/licenses.xml                 | 18 +++++++++++
 packaging/src/main/assembly/src.xml                |  1 -
 pom.xml                                            | 18 +++++++----
 .../hive/ql/exec/HiveTotalOrderPartitioner.java    |  3 --
 .../hadoop/hive/ql/exec/PartitionKeySampler.java   |  3 --
 .../hive/ql/exec/tez/TezTotalOrderPartitioner.java |  3 --
 .../ql/optimizer/physical/SamplingOptimizer.java   |  3 --
 .../io/orc/TestOrcFileStripeMergeRecordReader.java | 12 ++++---
 .../TestNegativePartitionPrunerCompactExpr.java    | 12 ++++---
 .../TestPositivePartitionPrunerCompactExpr.java    | 12 ++++---
 .../hadoop/hive/ql/parse/TestSplitSample.java      | 13 ++++----
 .../hadoop/hive/serde2/MultiDelimitSerDe.java      |  2 --
 .../hive/serde2/lazy/fast/StringToDouble.java      | 17 ----------
 .../src/resources/hive-webapps/static/js/llap.js   | 17 ++++++++++
 .../resources/hive-webapps/static/js/logconf.js    | 17 ++++++++++
 .../src/resources/hive-webapps/static/js/tab.js    |  2 --
 .../main/resources/datanucleus-log4j.properties    | 17 ++++++++++
 .../metastore-tools/metastore-benchmarks/README.md | 18 +++++++++++
 .../src/main/resources/log4j.properties            | 16 ++++++++++
 standalone-metastore/pom.xml                       |  1 -
 55 files changed, 687 insertions(+), 98 deletions(-)

diff --git a/.arcconfig b/.arcconfig
deleted file mode 100644
index a8b92414790..00000000000
--- a/.arcconfig
+++ /dev/null
@@ -1,15 +0,0 @@
-{
-  "project_id" : "hive",
-  "conduit_uri" : "https://reviews.facebook.net/";,
-  "copyright_holder" : "Apache Software Foundation",
-  "phutil_libraries" : {
-    "arc_jira_lib" : ".arc_jira_lib"
-  },
-  "arcanist_configuration" : "ArcJIRAConfiguration",
-  "events.listeners" : ["CommitListener"],
-  "jira_base_url" : "https://issues.apache.org/jira/secure/";,
-  "jira_api_url" : "https://issues.apache.org/jira/si/";,
-  "jira_project" : "HIVE",
-  "lint_engine" : "JavaLintEngine",
-  "max_line_length" : "100"
-}
diff --git a/.github/actions/spelling/README.md 
b/.github/actions/spelling/README.md
index 749294b33fb..ce0a2cc8c70 100644
--- a/.github/actions/spelling/README.md
+++ b/.github/actions/spelling/README.md
@@ -1,3 +1,21 @@
+<!--
+{% comment %}
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+-->
 # check-spelling/check-spelling configuration
 
 File | Purpose | Format | Info
diff --git a/.github/actions/spelling/advice.md 
b/.github/actions/spelling/advice.md
index c83423a8ef6..48dafab6fa9 100644
--- a/.github/actions/spelling/advice.md
+++ b/.github/actions/spelling/advice.md
@@ -1,3 +1,21 @@
+<!--
+{% comment %}
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+-->
 <!-- See 
https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-advice
 --> <!-- markdownlint-disable MD033 MD041 -->
 <details><summary>If the flagged items do not appear to be text</summary>
 
diff --git a/.github/assign-by-files.yml b/.github/assign-by-files.yml
index 30b8ec265b0..31c1f2d8e65 100644
--- a/.github/assign-by-files.yml
+++ b/.github/assign-by-files.yml
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 # Important!
 # Before adding yourself please make sure that your userid is listed at:
 # https://github.com/orgs/apache/teams/hive-committers/members
diff --git a/.github/workflows/auto-assign.yml 
b/.github/workflows/auto-assign.yml
index 4e6533a3c3d..4f3668f1dc7 100644
--- a/.github/workflows/auto-assign.yml
+++ b/.github/workflows/auto-assign.yml
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 name: "Auto Assign"
 on:
   - pull_request_target
diff --git a/.github/workflows/docker-GA-images.yml 
b/.github/workflows/docker-GA-images.yml
index 74053ea3b08..da789c3caf6 100644
--- a/.github/workflows/docker-GA-images.yml
+++ b/.github/workflows/docker-GA-images.yml
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 name: Build and Publish docker images for Hive GA
 
 on:
diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml
index 16f6f75333e..8fcd8325df9 100644
--- a/.github/workflows/spelling.yml
+++ b/.github/workflows/spelling.yml
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 name: Spell checking
 on:
   push:
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index a01246bdc51..f0cb33bea3b 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 name: "Close stale pull requests"
 on:
   schedule:
diff --git a/LICENSE b/LICENSE
index fea7ef6a45d..4be011216bc 100644
--- a/LICENSE
+++ b/LICENSE
@@ -241,8 +241,34 @@ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
(INCLUDING
 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
+For org.apache.hadoop.hive.serde2.lazy.fast.StringToDouble class:
 
-For jquery.sparkline.js:
+The file is under the BSD 3-Clause License
+
+For jquery.min.js:
+
+Copyright OpenJS Foundation and other contributors, https://openjsf.org/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+For jquery.sparkline.min.js:
 
 License: New BSD License (3-clause)
 
@@ -352,3 +378,12 @@ products or services of Licensee, or any third party.
 agrees to be bound by the terms and conditions of this License
 Agreement.
 
+For **/fonts/glyphicons-halflings*:
+
+GLYPHICONS Halflings in Bootstrap in previous version 1.9.2
+GLYPHICONS Halflings font is also released as an extension of a Bootstrap
+www.getbootstrap.com for free and it is released under the same license as 
Bootstrap.
+
+The Bootstrap version used in Hive is Licensed under the Apache License v2.0 
so does the glyphicons.
+
+For more: https://glyphicons.com/old/license.html#old-halfings-bootstrap
diff --git a/README.md b/README.md
index c5f1d18663f..a0cd47d9ebd 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,21 @@
+<!--
+{% comment %}
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+-->
 Apache Hive (TM)
 ================
 [![Master Build 
Status](https://travis-ci.org/apache/hive.svg?branch=master)](https://travis-ci.org/apache/hive/branches)
diff --git 
a/beeline/src/test/org/apache/hive/beeline/TestTableOutputFormat.java 
b/beeline/src/test/org/apache/hive/beeline/TestTableOutputFormat.java
index 59e94083735..f18fd445fff 100644
--- a/beeline/src/test/org/apache/hive/beeline/TestTableOutputFormat.java
+++ b/beeline/src/test/org/apache/hive/beeline/TestTableOutputFormat.java
@@ -1,11 +1,13 @@
 /*
- * Copyright 2016 The Apache Software Foundation.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
diff --git a/bin/ext/tokentool.sh b/bin/ext/tokentool.sh
index d97e5e19b03..dd486e1216b 100755
--- a/bin/ext/tokentool.sh
+++ b/bin/ext/tokentool.sh
@@ -1,5 +1,22 @@
 #!/bin/bash
 
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 THISSERVICE=tokentool
 export SERVICE_LIST="${SERVICE_LIST}${THISSERVICE} "
 
diff --git a/data/conf/fair-scheduler-test.xml 
b/data/conf/fair-scheduler-test.xml
index 96996a497f6..b8713f6a452 100644
--- a/data/conf/fair-scheduler-test.xml
+++ b/data/conf/fair-scheduler-test.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <allocations>
   <queue name="user2-test">
     <aclAdministerApps>*</aclAdministerApps>
diff --git a/data/conf/iceberg/llap/tez-site.xml 
b/data/conf/iceberg/llap/tez-site.xml
index b96019bb37f..75438046358 100644
--- a/data/conf/iceberg/llap/tez-site.xml
+++ b/data/conf/iceberg/llap/tez-site.xml
@@ -1,3 +1,20 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <configuration>
   <property>
     <name>tez.am.dag.scheduler.class</name>
diff --git a/data/conf/iceberg/tez/tez-site.xml 
b/data/conf/iceberg/tez/tez-site.xml
index 7b26d6aad3e..f0f77845279 100644
--- a/data/conf/iceberg/tez/tez-site.xml
+++ b/data/conf/iceberg/tez/tez-site.xml
@@ -1,3 +1,20 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <configuration>
   <property>
     <name>tez.am.dag.scheduler.class</name>
diff --git a/data/conf/llap/tez-site.xml b/data/conf/llap/tez-site.xml
index cc4177e3cbd..143d8a01292 100644
--- a/data/conf/llap/tez-site.xml
+++ b/data/conf/llap/tez-site.xml
@@ -1,3 +1,20 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <configuration>
 
   <property>
diff --git a/data/conf/tez/tez-site.xml b/data/conf/tez/tez-site.xml
index ff3b468fca3..104f40367b7 100644
--- a/data/conf/tez/tez-site.xml
+++ b/data/conf/tez/tez-site.xml
@@ -1,3 +1,20 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <configuration>
   <property>
     <name>tez.am.resource.memory.mb</name>
diff --git a/druid-handler/README.md b/druid-handler/README.md
index b5485678dd7..4db8002102a 100644
--- a/druid-handler/README.md
+++ b/druid-handler/README.md
@@ -1,3 +1,21 @@
+<!--
+{% comment %}
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+-->
 # Druid Storage Handler
 
 [Link for documentation]( 
https://cwiki.apache.org/confluence/display/Hive/Druid+Integration) 
diff --git a/hbase-handler/README.md b/hbase-handler/README.md
index 8c1676b58f3..83a8896f5b5 100644
--- a/hbase-handler/README.md
+++ b/hbase-handler/README.md
@@ -1,3 +1,21 @@
+<!--
+{% comment %}
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+-->
 # Hbase Storage Handler
 
-[Link for documentation]( 
https://cwiki.apache.org/confluence/display/Hive/HBaseIntegration)
\ No newline at end of file
+[Link for documentation]( 
https://cwiki.apache.org/confluence/display/Hive/HBaseIntegration)
diff --git a/iceberg/checkstyle/checkstyle-suppressions.xml 
b/iceberg/checkstyle/checkstyle-suppressions.xml
index f4395f5918b..1b261174986 100644
--- a/iceberg/checkstyle/checkstyle-suppressions.xml
+++ b/iceberg/checkstyle/checkstyle-suppressions.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <!DOCTYPE suppressions PUBLIC
     "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
     "https://checkstyle.org/dtds/suppressions_1_2.dtd";>
diff --git a/iceberg/checkstyle/checkstyle.xml 
b/iceberg/checkstyle/checkstyle.xml
index a288af5de90..7a595e6cbe1 100644
--- a/iceberg/checkstyle/checkstyle.xml
+++ b/iceberg/checkstyle/checkstyle.xml
@@ -1,4 +1,21 @@
 <?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+
 <!DOCTYPE module PUBLIC
         "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
         "https://checkstyle.org/dtds/configuration_1_3.dtd";>
diff --git a/iceberg/iceberg-catalog/pom.xml b/iceberg/iceberg-catalog/pom.xml
index acdcb8fc20a..d168744b345 100644
--- a/iceberg/iceberg-catalog/pom.xml
+++ b/iceberg/iceberg-catalog/pom.xml
@@ -1,4 +1,17 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
 <project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
   <parent>
     <groupId>org.apache.hive</groupId>
diff --git a/iceberg/iceberg-handler/pom.xml b/iceberg/iceberg-handler/pom.xml
index b639df56eb8..17f0ace1e77 100644
--- a/iceberg/iceberg-handler/pom.xml
+++ b/iceberg/iceberg-handler/pom.xml
@@ -1,4 +1,17 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
 <project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
   <parent>
     <groupId>org.apache.hive</groupId>
diff --git a/iceberg/patched-iceberg-api/pom.xml 
b/iceberg/patched-iceberg-api/pom.xml
index 35e305ded9f..0c6306183a3 100644
--- a/iceberg/patched-iceberg-api/pom.xml
+++ b/iceberg/patched-iceberg-api/pom.xml
@@ -1,4 +1,17 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
 <project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
   <parent>
     <groupId>org.apache.hive</groupId>
diff --git a/iceberg/patched-iceberg-core/pom.xml 
b/iceberg/patched-iceberg-core/pom.xml
index f3dfc5817d9..171eadabbeb 100644
--- a/iceberg/patched-iceberg-core/pom.xml
+++ b/iceberg/patched-iceberg-core/pom.xml
@@ -1,4 +1,17 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
 <project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
   <parent>
     <groupId>org.apache.hive</groupId>
diff --git a/itests/bin/generate-cli-splits.sh 
b/itests/bin/generate-cli-splits.sh
index c16d3691bb2..4957469258e 100755
--- a/itests/bin/generate-cli-splits.sh
+++ b/itests/bin/generate-cli-splits.sh
@@ -1,5 +1,22 @@
 #!/bin/bash
 
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 usage() {
        echo "$0 <from> <to>"
        exit 1
diff --git a/itests/bin/validateTestConfiguration.sh 
b/itests/bin/validateTestConfiguration.sh
index 6d57520aaad..fd7f97a9066 100755
--- a/itests/bin/validateTestConfiguration.sh
+++ b/itests/bin/validateTestConfiguration.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
 
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 echo "Validating testconfiguration.properties format"
 
 HIVE_ROOT=$1
diff --git 
a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/TestDDLWithRemoteMetastoreSecondNamenode.java
 
b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/TestDDLWithRemoteMetastoreSecondNamenode.java
index b22a3c0f3fd..4792ca8c948 100644
--- 
a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/TestDDLWithRemoteMetastoreSecondNamenode.java
+++ 
b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/TestDDLWithRemoteMetastoreSecondNamenode.java
@@ -1,9 +1,11 @@
 /*
- * Copyright 2014 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
@@ -13,7 +15,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.hadoop.hive.ql;
 
 import java.io.IOException;
diff --git 
a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/TestWarehouseExternalDir.java
 
b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/TestWarehouseExternalDir.java
index 2208c214fd9..33a3b6e96af 100644
--- 
a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/TestWarehouseExternalDir.java
+++ 
b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/TestWarehouseExternalDir.java
@@ -1,9 +1,11 @@
 /*
- * Copyright 2014 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
@@ -13,7 +15,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.hadoop.hive.ql;
 
 
diff --git a/itests/qtest-iceberg/pom.xml b/itests/qtest-iceberg/pom.xml
index d93ee09251e..c15684ab677 100644
--- a/itests/qtest-iceberg/pom.xml
+++ b/itests/qtest-iceberg/pom.xml
@@ -1,4 +1,17 @@
 <?xml version="1.0"?>
+<!--
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
 <project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
   <parent>
     <artifactId>hive-it</artifactId>
diff --git a/kafka-handler/README.md b/kafka-handler/README.md
index e02b5e9b81c..2a764907f58 100644
--- a/kafka-handler/README.md
+++ b/kafka-handler/README.md
@@ -1,3 +1,21 @@
+<!--
+{% comment %}
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+-->
 # Kafka Storage Handler Module
 
 Storage Handler that allows users to connect/analyze/transform Kafka topics.
diff --git a/llap-server/src/main/resources/package.py 
b/llap-server/src/main/resources/package.py
index 35d3805b970..e1ae45cc117 100644
--- a/llap-server/src/main/resources/package.py
+++ b/llap-server/src/main/resources/package.py
@@ -1,4 +1,20 @@
 #!/usr/bin/python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 import sys,os,stat
 import argparse
diff --git a/llap-server/src/main/resources/templates.py 
b/llap-server/src/main/resources/templates.py
index a21a4073a78..3e2bdf5e779 100644
--- a/llap-server/src/main/resources/templates.py
+++ b/llap-server/src/main/resources/templates.py
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 yarnfile = """
 {
   "name": "%(name)s",
diff --git a/packaging/src/docker/README.md b/packaging/src/docker/README.md
index e452013aac5..0e2d30697ee 100644
--- a/packaging/src/docker/README.md
+++ b/packaging/src/docker/README.md
@@ -1,3 +1,21 @@
+<!--
+{% comment %}
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+-->
 ### Introduction
 
 ---
diff --git a/packaging/src/docker/docker-compose.yml 
b/packaging/src/docker/docker-compose.yml
index a388c5b3e1b..f991568a164 100644
--- a/packaging/src/docker/docker-compose.yml
+++ b/packaging/src/docker/docker-compose.yml
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 version: '3.9'
 services:
   postgres:
diff --git a/packaging/src/license/licenses.xml 
b/packaging/src/license/licenses.xml
index 21b07156cab..70fc2830e7d 100644
--- a/packaging/src/license/licenses.xml
+++ b/packaging/src/license/licenses.xml
@@ -1,4 +1,22 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
 <licenseSummary>
   <dependencies>
     <dependency>
diff --git a/packaging/src/main/assembly/src.xml 
b/packaging/src/main/assembly/src.xml
index 4d4551798ac..18b80a6d64a 100644
--- a/packaging/src/main/assembly/src.xml
+++ b/packaging/src/main/assembly/src.xml
@@ -50,7 +50,6 @@
       </excludes>
 
       <includes>
-        <include>.arcconfig</include>
         <include>.checkstyle</include>
         <include>.gitattributes</include>
         <include>.gitignore</include>
diff --git a/pom.xml b/pom.xml
index a495e728888..b55a9c11e67 100644
--- a/pom.xml
+++ b/pom.xml
@@ -194,6 +194,7 @@
     <pig.version>0.16.0</pig.version>
     <plexus.version>1.5.6</plexus.version>
     <protobuf.version>3.24.4</protobuf.version>
+    <rat.version>0.16.1</rat.version>
     <stax.version>1.0.1</stax.version>
     <slf4j.version>1.7.30</slf4j.version>
     <ST4.version>4.0.4</ST4.version>
@@ -1487,6 +1488,11 @@
           <artifactId>maven-checkstyle-plugin</artifactId>
           <version>${maven.checkstyle.plugin.version}</version>
         </plugin>
+        <plugin>
+          <groupId>org.apache.rat</groupId>
+          <artifactId>apache-rat-plugin</artifactId>
+          <version>${rat.version}</version>
+        </plugin>
         <plugin>
           <groupId>org.codehaus.mojo</groupId>
           <artifactId>versions-maven-plugin</artifactId>
@@ -1783,15 +1789,13 @@
         </executions>
         <configuration>
           <excludes>
+            <eclude>.gitattributes</eclude>
             <exclude>*.patch</exclude>
-            <exclude>.github/**</exclude>
+            <exclude>**/pull_request_template.md</exclude>
             <exclude>data/**</exclude>
-            <exclude>conf/**</exclude>
             <exclude>checkstyle/**</exclude>
             <exclude>docs/Gemfile</exclude>
             <exclude>bin/**</exclude>
-            <exclude>itests/**</exclude>
-            <exclude>**/README.md</exclude>
             <exclude>**/*.iml</exclude>
             <exclude>**/*.txt</exclude>
             <exclude>**/*.log</exclude>
@@ -1799,14 +1803,13 @@
             <exclude>**/.classpath</exclude>
             <exclude>**/.project</exclude>
             <exclude>**/.settings/**</exclude>
-            <exclude>**/*.arcconfig</exclude>
             <exclude>**/package-info.java</exclude>
             <exclude>**/*.properties</exclude>
             <exclude>**/*.q</exclude>
             <exclude>**/*.q.out</exclude>
             <exclude>**/*.q.out_*</exclude>
-            <exclude>**/*.xml</exclude>
-            <exclude>**/*.yml</exclude>
+            <exclude>**/test/**/*.xml</exclude>
+            <exclude>**/dependency-reduced-pom.xml</exclude>
             <exclude>**/*json</exclude>
             <exclude>**/gen/**</exclude>
             <exclude>**/target/**</exclude>
@@ -1832,6 +1835,7 @@
             <exclude>hcatalog/core/mapred/**/part-m*</exclude>
             <exclude>hcatalog/core/mapred/**/*_SUCCESS*</exclude>
             <exclude>**/PriorityBlockingDeque.java</exclude>
+            <exclude>**/StringToDouble.java</exclude>
             <exclude>LICENSE-binary</exclude>
           </excludes>
         </configuration>
diff --git 
a/ql/src/java/org/apache/hadoop/hive/ql/exec/HiveTotalOrderPartitioner.java 
b/ql/src/java/org/apache/hadoop/hive/ql/exec/HiveTotalOrderPartitioner.java
index aabb9f8e844..0214adde8d8 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/HiveTotalOrderPartitioner.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/HiveTotalOrderPartitioner.java
@@ -1,6 +1,4 @@
 /*
- * Copyright 2010 The Apache Software Foundation
- *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -17,7 +15,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.hadoop.hive.ql.exec;
 
 import org.slf4j.Logger;
diff --git 
a/ql/src/java/org/apache/hadoop/hive/ql/exec/PartitionKeySampler.java 
b/ql/src/java/org/apache/hadoop/hive/ql/exec/PartitionKeySampler.java
index bad296e3850..7b349b5ef9b 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/PartitionKeySampler.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/PartitionKeySampler.java
@@ -1,6 +1,4 @@
 /*
- * Copyright 2010 The Apache Software Foundation
- *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -17,7 +15,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.hadoop.hive.ql.exec;
 
 import java.io.IOException;
diff --git 
a/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezTotalOrderPartitioner.java 
b/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezTotalOrderPartitioner.java
index 4596c02806b..17b5dacb809 100644
--- 
a/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezTotalOrderPartitioner.java
+++ 
b/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezTotalOrderPartitioner.java
@@ -1,6 +1,4 @@
 /*
- * Copyright 2010 The Apache Software Foundation
- *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -17,7 +15,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.hadoop.hive.ql.exec.tez;
 
 import org.slf4j.Logger;
diff --git 
a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/SamplingOptimizer.java
 
b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/SamplingOptimizer.java
index fc02811953d..33a063a944c 100644
--- 
a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/SamplingOptimizer.java
+++ 
b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/SamplingOptimizer.java
@@ -1,6 +1,4 @@
 /*
- * Copyright 2010 The Apache Software Foundation
- *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -17,7 +15,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.hadoop.hive.ql.optimizer.physical;
 
 import org.apache.hadoop.hive.ql.exec.GroupByOperator;
diff --git 
a/ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestOrcFileStripeMergeRecordReader.java
 
b/ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestOrcFileStripeMergeRecordReader.java
index af1a54f0767..3b81f1e68d4 100644
--- 
a/ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestOrcFileStripeMergeRecordReader.java
+++ 
b/ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestOrcFileStripeMergeRecordReader.java
@@ -1,9 +1,11 @@
 /*
- * Copyright 2015 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
diff --git 
a/ql/src/test/org/apache/hadoop/hive/ql/optimizer/ppr/TestNegativePartitionPrunerCompactExpr.java
 
b/ql/src/test/org/apache/hadoop/hive/ql/optimizer/ppr/TestNegativePartitionPrunerCompactExpr.java
index 36a8e63bb1a..b00a6e8853c 100644
--- 
a/ql/src/test/org/apache/hadoop/hive/ql/optimizer/ppr/TestNegativePartitionPrunerCompactExpr.java
+++ 
b/ql/src/test/org/apache/hadoop/hive/ql/optimizer/ppr/TestNegativePartitionPrunerCompactExpr.java
@@ -1,9 +1,11 @@
 /*
- * Copyright 2015 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
diff --git 
a/ql/src/test/org/apache/hadoop/hive/ql/optimizer/ppr/TestPositivePartitionPrunerCompactExpr.java
 
b/ql/src/test/org/apache/hadoop/hive/ql/optimizer/ppr/TestPositivePartitionPrunerCompactExpr.java
index 6830ea478ca..198d693acf0 100644
--- 
a/ql/src/test/org/apache/hadoop/hive/ql/optimizer/ppr/TestPositivePartitionPrunerCompactExpr.java
+++ 
b/ql/src/test/org/apache/hadoop/hive/ql/optimizer/ppr/TestPositivePartitionPrunerCompactExpr.java
@@ -1,9 +1,11 @@
 /*
- * Copyright 2015 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
diff --git a/ql/src/test/org/apache/hadoop/hive/ql/parse/TestSplitSample.java 
b/ql/src/test/org/apache/hadoop/hive/ql/parse/TestSplitSample.java
index 121d9ec4d9b..560f008dcb3 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/parse/TestSplitSample.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/parse/TestSplitSample.java
@@ -1,9 +1,11 @@
 /*
- * Copyright 2015 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
@@ -13,7 +15,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.hadoop.hive.ql.parse;
 
 import org.junit.Test;
diff --git 
a/serde/src/java/org/apache/hadoop/hive/serde2/MultiDelimitSerDe.java 
b/serde/src/java/org/apache/hadoop/hive/serde2/MultiDelimitSerDe.java
index 46a48fb2e88..c168eb99fb0 100644
--- a/serde/src/java/org/apache/hadoop/hive/serde2/MultiDelimitSerDe.java
+++ b/serde/src/java/org/apache/hadoop/hive/serde2/MultiDelimitSerDe.java
@@ -1,6 +1,4 @@
 /*
- * Copyright 2010 The Apache Software Foundation
- *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
diff --git 
a/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/StringToDouble.java 
b/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/StringToDouble.java
index 816a98ff284..7ad095165be 100644
--- a/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/StringToDouble.java
+++ b/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/StringToDouble.java
@@ -1,20 +1,3 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 /*
  *     Source code for the "strtod" library procedure.
  *
diff --git a/service/src/resources/hive-webapps/static/js/llap.js 
b/service/src/resources/hive-webapps/static/js/llap.js
index e84fd0394d1..436e2442884 100644
--- a/service/src/resources/hive-webapps/static/js/llap.js
+++ b/service/src/resources/hive-webapps/static/js/llap.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 window.options = {
     showArrayAsFlatTable: true,
     flatTableKeys: ['containerId','webUrl'],
diff --git a/service/src/resources/hive-webapps/static/js/logconf.js 
b/service/src/resources/hive-webapps/static/js/logconf.js
index 338db21ab5f..5531670325a 100644
--- a/service/src/resources/hive-webapps/static/js/logconf.js
+++ b/service/src/resources/hive-webapps/static/js/logconf.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 $(document).ready(function () {
 
     // init the table with the current loggers
diff --git a/service/src/resources/hive-webapps/static/js/tab.js 
b/service/src/resources/hive-webapps/static/js/tab.js
index de87dabc7d4..83b90d30d81 100644
--- a/service/src/resources/hive-webapps/static/js/tab.js
+++ b/service/src/resources/hive-webapps/static/js/tab.js
@@ -1,6 +1,4 @@
 /*
- * Copyright The Apache Software Foundation
- *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
diff --git 
a/standalone-metastore/metastore-server/src/main/resources/datanucleus-log4j.properties
 
b/standalone-metastore/metastore-server/src/main/resources/datanucleus-log4j.properties
index 80f17e8a53c..47aeba2058e 100644
--- 
a/standalone-metastore/metastore-server/src/main/resources/datanucleus-log4j.properties
+++ 
b/standalone-metastore/metastore-server/src/main/resources/datanucleus-log4j.properties
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 # Define the destination and format of our logging
 log4j.appender.A1=org.apache.log4j.FileAppender
 log4j.appender.A1.File=target/datanucleus.log
diff --git 
a/standalone-metastore/metastore-tools/metastore-benchmarks/README.md 
b/standalone-metastore/metastore-tools/metastore-benchmarks/README.md
index 2510b1e2442..2b1f10724bd 100644
--- a/standalone-metastore/metastore-tools/metastore-benchmarks/README.md
+++ b/standalone-metastore/metastore-tools/metastore-benchmarks/README.md
@@ -1,3 +1,21 @@
+<!--
+{% comment %}
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+-->
 ## Hive Metastore micro-benchmarks
 
 ## Installation
diff --git 
a/standalone-metastore/metastore-tools/metastore-benchmarks/src/main/resources/log4j.properties
 
b/standalone-metastore/metastore-tools/metastore-benchmarks/src/main/resources/log4j.properties
index 3abc88706fa..095435dc81f 100644
--- 
a/standalone-metastore/metastore-tools/metastore-benchmarks/src/main/resources/log4j.properties
+++ 
b/standalone-metastore/metastore-tools/metastore-benchmarks/src/main/resources/log4j.properties
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 log4j.rootLogger=INFO, CA
 
 log4j.appender.CA=org.apache.log4j.ConsoleAppender
diff --git a/standalone-metastore/pom.xml b/standalone-metastore/pom.xml
index b124873b11b..e30987c133d 100644
--- a/standalone-metastore/pom.xml
+++ b/standalone-metastore/pom.xml
@@ -575,7 +575,6 @@
             <exclude>**/*.iml</exclude>
             <exclude>**/*.txt</exclude>
             <exclude>**/*.log</exclude>
-            <exclude>**/*.arcconfig</exclude>
             <exclude>**/package-info.java</exclude>
             <exclude>**/*.properties</exclude>
             <exclude>**/*.q</exclude>

Reply via email to