diff --git a/.editorconfig b/.editorconfig
index 889bbb16d597c395efb86b6fc9b66f5b4f0347eb..b5d9caccbd240596a68f05f589771cf015182770 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,3 +1,18 @@
+# Copyright (c) 2015, 2017 YCSB contributors.
+# All rights reserved.
+#
+# 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. See accompanying
+# LICENSE file.
 # For more info, see: http://EditorConfig.org
 root = true
 
diff --git a/core/src/main/resources/project.properties b/core/src/main/resources/project.properties
index defbd48204e4784090fe0e17e28fe5bc395abf47..9c6df29b1e6a258f843021d2579371b8566f6778 100644
--- a/core/src/main/resources/project.properties
+++ b/core/src/main/resources/project.properties
@@ -1 +1,15 @@
+# Copyright (c) 2016 YCSB contributors. All rights reserved.
+#
+# 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. See accompanying
+# LICENSE file.
 version=${project.version}
diff --git a/elasticsearch5/src/main/resources/log4j2.properties b/elasticsearch5/src/main/resources/log4j2.properties
index dc3e1ceb5a1e6c8c65d392698126fda0300f8373..866654ae6553f5116c07733b9db1426a99c05f15 100644
--- a/elasticsearch5/src/main/resources/log4j2.properties
+++ b/elasticsearch5/src/main/resources/log4j2.properties
@@ -1,3 +1,18 @@
+# Copyright (c) 2017 YCSB contributors. All rights reserved.
+#
+# 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. See accompanying
+# LICENSE file.
+#
 appender.console.type = Console
 appender.console.name = console
 appender.console.layout.type = PatternLayout
diff --git a/elasticsearch5/src/test/java/com/yahoo/ycsb/db/elasticsearch5/ElasticsearchIntegTestBase.java b/elasticsearch5/src/test/java/com/yahoo/ycsb/db/elasticsearch5/ElasticsearchIntegTestBase.java
index dda766339d02cc2f96261f047d219bd6b4ac56e5..12ab50523b17d8c8b85074866fe4e32eaf691f48 100644
--- a/elasticsearch5/src/test/java/com/yahoo/ycsb/db/elasticsearch5/ElasticsearchIntegTestBase.java
+++ b/elasticsearch5/src/test/java/com/yahoo/ycsb/db/elasticsearch5/ElasticsearchIntegTestBase.java
@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2017 YCSB contributors. All rights reserved.
+ *
+ * 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. See accompanying
+ * LICENSE file.
+ */
 package com.yahoo.ycsb.db.elasticsearch5;
 
 import com.yahoo.ycsb.ByteIterator;
diff --git a/kudu/src/main/resources/log4j.properties b/kudu/src/main/resources/log4j.properties
index 7a754a8b5c3823070e8d6f85a6b4a7e12e608a0d..549fd4aec3f6e48fb192ddda91de10c7fab76817 100644
--- a/kudu/src/main/resources/log4j.properties
+++ b/kudu/src/main/resources/log4j.properties
@@ -1,3 +1,18 @@
+# Copyright (c) 2016 YCSB contributors. All rights reserved.
+#
+# 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. See accompanying
+# LICENSE file.
+#
 # Root logger option
 log4j.rootLogger=DEBUG, stderr
 
diff --git a/mapkeeper/README.md b/mapkeeper/README.md
index bc441ba69a900002b985e30db24a749f5105a66d..0f6076f47a9475d9647dbda3f16996d3cfc25af9 100644
--- a/mapkeeper/README.md
+++ b/mapkeeper/README.md
@@ -1,3 +1,19 @@
+<!--
+Copyright (c) 2012 YCSB contributors. All rights reserved.
+
+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. See accompanying
+LICENSE file.
+-->
 # MapKeeper-Specific Properties
 
 ## mapkeeper.host
diff --git a/nosqldb/README.md b/nosqldb/README.md
index 2b080d4a46c72d8749e44dc2bcea48d4073c2c4f..878a6a5b1716cbccd420575dd1e2bcc86043f5ad 100644
--- a/nosqldb/README.md
+++ b/nosqldb/README.md
@@ -1,3 +1,19 @@
+<!--
+Copyright (c) 2012 YCSB contributors. All rights reserved.
+
+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. See accompanying
+LICENSE file.
+-->
 CONFIGURE
 
 $KVHOME is Oracle NoSQL Database package files.
diff --git a/orientdb/src/main/resources/log4j.properties b/orientdb/src/main/resources/log4j.properties
index 0ede1d4c141192a2de7e00461b3cb9998a8e8a68..86345ce7019825d273ff7b546af8ca30eb9c19da 100644
--- a/orientdb/src/main/resources/log4j.properties
+++ b/orientdb/src/main/resources/log4j.properties
@@ -1,3 +1,17 @@
+# Copyright (c) 2016 YCSB contributors. All rights reserved.
+#
+# 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. See accompanying
+# LICENSE file.
 # Root logger option
 log4j.rootLogger=INFO, stderr
 
diff --git a/rest/pom.xml b/rest/pom.xml
index c980b04f8031788968696184d37161919b8ce800..1bfe2f5157814ec89589e1f0a6c68dbd2f7fe3f3 100644
--- a/rest/pom.xml
+++ b/rest/pom.xml
@@ -115,4 +115,19 @@
     </dependency>
   </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.rat</groupId>
+        <artifactId>apache-rat-plugin</artifactId>
+        <configuration>
+          <excludes>
+            <exclude>src/test/resources/error_trace.txt</exclude>
+            <exclude>src/test/resources/trace.txt</exclude>
+          </excludes>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
 </project>
diff --git a/rest/src/test/resources/WebContent/index.html b/rest/src/test/resources/WebContent/index.html
index ded87fc20c405fe6bb44e26afccf754eaacb462a..73634eac89f43df6ba3febf4513b57cddc8dd97a 100644
--- a/rest/src/test/resources/WebContent/index.html
+++ b/rest/src/test/resources/WebContent/index.html
@@ -1,5 +1,21 @@
 <!DOCTYPE html>
 <html>
+<!--
+Copyright (c) 2016 YCSB contributors. All rights reserved.
+
+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. See accompanying
+LICENSE file.
+-->
  
  <head>
   <meta charset="ISO-8859-1">
@@ -10,4 +26,4 @@
   Welcome to the rest-binding integration test cases!
  </body>
 
-</html>
\ No newline at end of file
+</html>
diff --git a/s3/src/main/conf/s3.properties b/s3/src/main/conf/s3.properties
index f36c7745e617e200cd72f170de4a183b548bd92d..5fa6451ebfb338a312466dd42f8cfec4763ce3c7 100644
--- a/s3/src/main/conf/s3.properties
+++ b/s3/src/main/conf/s3.properties
@@ -1,3 +1,17 @@
+# Copyright (c) 2015 YCSB contributors. All rights reserved.
+#
+# 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. See accompanying
+# LICENSE file.
 #
 # Sample S3 configuration properties
 #
diff --git a/solr/src/main/resources/log4j.properties b/solr/src/main/resources/log4j.properties
index 0ede1d4c141192a2de7e00461b3cb9998a8e8a68..86345ce7019825d273ff7b546af8ca30eb9c19da 100644
--- a/solr/src/main/resources/log4j.properties
+++ b/solr/src/main/resources/log4j.properties
@@ -1,3 +1,17 @@
+# Copyright (c) 2016 YCSB contributors. All rights reserved.
+#
+# 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. See accompanying
+# LICENSE file.
 # Root logger option
 log4j.rootLogger=INFO, stderr
 
diff --git a/solr6/src/main/resources/log4j.properties b/solr6/src/main/resources/log4j.properties
index 0ede1d4c141192a2de7e00461b3cb9998a8e8a68..86345ce7019825d273ff7b546af8ca30eb9c19da 100644
--- a/solr6/src/main/resources/log4j.properties
+++ b/solr6/src/main/resources/log4j.properties
@@ -1,3 +1,17 @@
+# Copyright (c) 2016 YCSB contributors. All rights reserved.
+#
+# 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. See accompanying
+# LICENSE file.
 # Root logger option
 log4j.rootLogger=INFO, stderr