diff --git a/.build/build-rat.xml b/.build/build-rat.xml
new file mode 100644
index 0000000000..2194686018
--- /dev/null
+++ b/.build/build-rat.xml
@@ -0,0 +1,95 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.circleci/config-2_1.yml b/.circleci/config-2_1.yml
index 572ed694c1..ff01446cc5 100644
--- a/.circleci/config-2_1.yml
+++ b/.circleci/config-2_1.yml
@@ -1,3 +1,21 @@
+#
+# 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: 2.1
default_env_vars: &default_env_vars
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 53ee44c139..86ed028d10 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,3 +1,21 @@
+#
+# 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: 2
jobs:
j8_jvm_upgrade_dtests:
diff --git a/.circleci/generate.sh b/.circleci/generate.sh
index f3f4361b15..0ba497b2d1 100755
--- a/.circleci/generate.sh
+++ b/.circleci/generate.sh
@@ -1,4 +1,21 @@
#!/bin/sh
+#
+# 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.
+#
BASEDIR=`dirname $0`
diff --git a/.circleci/readme.md b/.circleci/readme.md
index 965eaf7450..b3d5ab009d 100644
--- a/.circleci/readme.md
+++ b/.circleci/readme.md
@@ -1,3 +1,23 @@
+
+
# CircleCI config files
## Switching to high resource settings
diff --git a/.gitignore b/.gitignore
index b6fd0097e0..4353d4fcee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,6 +8,7 @@ logs/
data/
conf/hotspot_compiler
doc/cql3/CQL.html
+doc/build/
# C* debs
build-stamp
@@ -76,3 +77,10 @@ lib/jsr223/scala/*.jar
# Generated files from the documentation
doc/source/configuration/cassandra_config_file.rst
+
+# Python virtual environment
+venv/
+
+# build-scripts will put cassandra-builds and cassandra-dtest into the directory
+cassandra-builds/
+cassandra-dtest/
diff --git a/.rat-excludes b/.rat-excludes
deleted file mode 100644
index 6df36a5e6a..0000000000
--- a/.rat-excludes
+++ /dev/null
@@ -1,33 +0,0 @@
-**/*.avpr
-debian/**
-.classpath
-.rat-excludes
-**/.project
-**/.pydevproject
-CHANGES.txt
-README.asc
-.git/**
-**/*.json
-**/*.patch
-interface/*/gen-*/**
-src/gen-java/**
-build/**
-lib/licenses/*.txt
-.settings/**
-**/cassandra.yaml
-**/cassandra-topology.yaml
-**/metrics-reporter-config-sample.yaml
-**/*.db
-.externalToolBuilders/**
-test/data/serialization/*/*
-**/*.wpr
-doc/**
-build.properties.default
-test/data/**
-examples/triggers/build.xml
-examples/triggers/conf/*
-examples/hadoop_word_count/conf/log4j.properties
-pylib/cqlshlib/test/**
-src/resources/org/apache/cassandra/config/version.properties
-conf/hotspot_compiler
-**/*-example.yaml
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 8366579ad2..2251fdf5db 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,3 +1,23 @@
+
+
# Apache Cassandra and Pull Requests
Apache Cassandra doesn't use GitHub pull requests as part of the development process.
diff --git a/build.xml b/build.xml
index b773f0fd3f..0f2f42590d 100644
--- a/build.xml
+++ b/build.xml
@@ -796,20 +796,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
Generating Thrift Python code from ${basedir}/interface/cassandra.thrift...
@@ -853,7 +839,7 @@
depends="maven-ant-tasks-retrieve-build,build-project" description="Compile Cassandra classes"/>
-
@@ -1196,43 +1182,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1674,42 +1623,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Unknown licenses: See build/rat-report.log.
-
-
-
- RAT: invoking addLicense to write missing headers
-
-
-
-
-
-
-
-
@@ -2105,4 +2018,5 @@
+
diff --git a/conf/cassandra.yaml b/conf/cassandra.yaml
index 29442f5387..bb37e056aa 100644
--- a/conf/cassandra.yaml
+++ b/conf/cassandra.yaml
@@ -1,3 +1,4 @@
+
# Cassandra storage config YAML
# NOTE:
@@ -1276,4 +1277,4 @@ enable_materialized_views: true
# Enables SASI index creation on this node.
# SASI indexes are considered experimental and are not recommended for production use.
-enable_sasi_indexes: true
\ No newline at end of file
+enable_sasi_indexes: true
diff --git a/debian/cassandra.in.sh b/debian/cassandra.in.sh
index 8fcaf9cc9e..f98d430c52 100644
--- a/debian/cassandra.in.sh
+++ b/debian/cassandra.in.sh
@@ -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.
+#
# The directory where Cassandra's configs live (required)
CASSANDRA_CONF=/etc/cassandra
diff --git a/doc/README.md b/doc/README.md
index 9ba47a1a68..931db7d8b6 100644
--- a/doc/README.md
+++ b/doc/README.md
@@ -1,3 +1,23 @@
+
+
Apache Cassandra documentation directory
========================================
diff --git a/doc/SASI.md b/doc/SASI.md
index a4762c96e5..a2fa717628 100644
--- a/doc/SASI.md
+++ b/doc/SASI.md
@@ -1,3 +1,23 @@
+
+
# SASIIndex
[`SASIIndex`](https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/index/sasi/SASIIndex.java),
diff --git a/doc/cql3/CQL.textile b/doc/cql3/CQL.textile
index 735cfe19b5..8c7c3ab1b5 100644
--- a/doc/cql3/CQL.textile
+++ b/doc/cql3/CQL.textile
@@ -1,3 +1,22 @@
+
h1. Cassandra Query Language (CQL) v3.4.3
diff --git a/doc/make.bat b/doc/make.bat
index 93671fc251..cbd1d1dbbc 100644
--- a/doc/make.bat
+++ b/doc/make.bat
@@ -1,5 +1,23 @@
@ECHO OFF
+REM
+REM Licensed to the Apache Software Foundation (ASF) under one
+REM or more contributor license agreements. See the NOTICE file
+REM distributed with this work for additional information
+REM regarding copyright ownership. The ASF licenses this file
+REM to you under the Apache License, Version 2.0 (the
+REM "License"); you may not use this file except in compliance
+REM with the License. You may obtain a copy of the License at
+REM
+REM http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing, software
+REM distributed under the License is distributed on an "AS IS" BASIS,
+REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM See the License for the specific language governing permissions and
+REM limitations under the License.
+REM
+
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
diff --git a/doc/native_protocol_v3.spec b/doc/native_protocol_v3.spec
index 9b1084ba1a..8187ca0b27 100644
--- a/doc/native_protocol_v3.spec
+++ b/doc/native_protocol_v3.spec
@@ -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.
+#
CQL BINARY PROTOCOL v3
diff --git a/doc/native_protocol_v4.spec b/doc/native_protocol_v4.spec
index e18b4ed162..2220000ffb 100644
--- a/doc/native_protocol_v4.spec
+++ b/doc/native_protocol_v4.spec
@@ -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.
+#
CQL BINARY PROTOCOL v4
diff --git a/doc/native_protocol_v5.spec b/doc/native_protocol_v5.spec
index 5cda1f1470..69ad7c35da 100644
--- a/doc/native_protocol_v5.spec
+++ b/doc/native_protocol_v5.spec
@@ -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.
+#
CQL BINARY PROTOCOL v5
diff --git a/doc/source/_static/extra.css b/doc/source/_static/extra.css
index 715e2a850e..c2972bd09a 100644
--- a/doc/source/_static/extra.css
+++ b/doc/source/_static/extra.css
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
+
div:not(.highlight) > pre {
background: #fff;
border: 1px solid #e1e4e5;
diff --git a/doc/source/development/index.rst b/doc/source/development/index.rst
index aefc5999cd..be3d2542c6 100644
--- a/doc/source/development/index.rst
+++ b/doc/source/development/index.rst
@@ -24,5 +24,6 @@ Cassandra Development
testing
patches
code_style
+ license_compliance
how_to_review
how_to_commit
diff --git a/doc/source/development/license_compliance.rst b/doc/source/development/license_compliance.rst
new file mode 100644
index 0000000000..e2eba2ab82
--- /dev/null
+++ b/doc/source/development/license_compliance.rst
@@ -0,0 +1,37 @@
+.. 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.
+
+.. _license_compliance:
+
+License Compliance
+******************
+
+
+The target of this document is to provide an overview and guidance how the Apache Cassandra project's source code and
+artifacts maintain compliance with the `ASF Licensing policy `.
+
+The repository contains a LICENSE file, and a NOTICE file.
+
+The Apache Cassandra project enforces and verifies ASF License header conformance on all source files using the Apache RAT tool.
+
+With a few exceptions, source files consisting of works submitted directly to the ASF by the copyright owner or owner's
+agent must contain the appropriate ASF license header. Files without any degree of creativity don't require a license header.
+
+Currently, RAT checks all .bat, .btm, .cql, .css, .g, .hmtl, .iml, .java, .jflex, .jks, .md, .mod, .name, .pom, .py, .sh, .spec, .textile, .yml, .yaml, .xml files for a LICENSE header.
+
+If there is an incompliance, the build will fail with the following warning:
+
+ Some files have missing or incorrect license information. Check RAT report in build/rat.txt for more details!
diff --git a/pylib/cqlshlib/test/test_keyspace_init.cql b/pylib/cqlshlib/test/test_keyspace_init.cql
index c64163a8ef..06f087b8b2 100644
--- a/pylib/cqlshlib/test/test_keyspace_init.cql
+++ b/pylib/cqlshlib/test/test_keyspace_init.cql
@@ -1,3 +1,21 @@
+/*
+# 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.
+*/
+
CREATE TABLE has_all_types (
num int PRIMARY KEY,
intcol int,
diff --git a/redhat/README.md b/redhat/README.md
index cab42a752e..a1f6f15e7e 100644
--- a/redhat/README.md
+++ b/redhat/README.md
@@ -1,3 +1,23 @@
+
+
# Apache Cassandra rpmbuild
### Requirements:
diff --git a/redhat/cassandra.in.sh b/redhat/cassandra.in.sh
index ca71782093..d4cf3d6d25 100644
--- a/redhat/cassandra.in.sh
+++ b/redhat/cassandra.in.sh
@@ -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.
+#
# The directory where Cassandra's configs live (required)
CASSANDRA_CONF=/etc/cassandra/conf
diff --git a/redhat/cassandra.spec b/redhat/cassandra.spec
index 19cbdf5b28..82a9507d06 100644
--- a/redhat/cassandra.spec
+++ b/redhat/cassandra.spec
@@ -1,3 +1,21 @@
+#
+# 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 __jar_repack %{nil}
# Turn off the brp-python-bytecompile script
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
diff --git a/test/conf/commitlog_compression.yaml b/test/conf/commitlog_compression.yaml
index 9849d7b15c..d909904477 100644
--- a/test/conf/commitlog_compression.yaml
+++ b/test/conf/commitlog_compression.yaml
@@ -1,2 +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.
+#
+
commitlog_compression:
- class_name: LZ4Compressor
diff --git a/test/data/bloom-filter/ka/foo.cql b/test/data/bloom-filter/ka/foo.cql
index 4926e3a2db..6b662fb17a 100644
--- a/test/data/bloom-filter/ka/foo.cql
+++ b/test/data/bloom-filter/ka/foo.cql
@@ -1,3 +1,21 @@
+/*
+# 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.
+*/
+
create keyspace foo with replication = {'class':'SimpleStrategy', 'replication_factor':1};
use foo ;
create table atable ( pk int primary key, val int);
diff --git a/test/resources/blogpost.yaml b/test/resources/blogpost.yaml
index 13987e0abf..3aea5c8b2a 100644
--- a/test/resources/blogpost.yaml
+++ b/test/resources/blogpost.yaml
@@ -1,3 +1,21 @@
+#
+# 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.
+#
+
# Copied from https://gist.github.com/tjake/8995058fed11d9921e31
### DML ###
diff --git a/test/resources/byteman/mutation_limiter.btm b/test/resources/byteman/mutation_limiter.btm
index ca936fcf54..fb33b284d7 100644
--- a/test/resources/byteman/mutation_limiter.btm
+++ b/test/resources/byteman/mutation_limiter.btm
@@ -1,3 +1,21 @@
+#
+# 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.
+#
+
RULE mutation_limiter
CLASS org.apache.cassandra.db.MutationVerbHandler
METHOD doVerb
@@ -5,4 +23,4 @@ HELPER org.apache.cassandra.utils.TestRateLimiter
AT ENTRY
IF TRUE
DO acquire(1000.0)
-ENDRULE
+ENDRULE
\ No newline at end of file
diff --git a/test/resources/byteman/stream_failure.btm b/test/resources/byteman/stream_failure.btm
index e40f7fe25e..be4f0e58e6 100644
--- a/test/resources/byteman/stream_failure.btm
+++ b/test/resources/byteman/stream_failure.btm
@@ -1,4 +1,21 @@
#
+# 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.
+#
+#
# Inject streaming failure
#
# Before start streaming files in `StreamSession#prepare()` method,
diff --git a/tools/stress/src/org/apache/cassandra/stress/WorkManager.java b/tools/stress/src/org/apache/cassandra/stress/WorkManager.java
index 78d4176128..749ca44591 100644
--- a/tools/stress/src/org/apache/cassandra/stress/WorkManager.java
+++ b/tools/stress/src/org/apache/cassandra/stress/WorkManager.java
@@ -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.
+ */
package org.apache.cassandra.stress;
import java.util.concurrent.atomic.AtomicLong;