You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by bo...@apache.org on 2015/11/06 16:45:01 UTC

[1/3] storm git commit: STORM-1161: Add License headers and add rat checks to builds

Repository: storm
Updated Branches:
  refs/heads/master d59eaac77 -> b24b0fece


STORM-1161: Add License headers and add rat checks to builds


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/0892f093
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/0892f093
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/0892f093

Branch: refs/heads/master
Commit: 0892f09358e158e9035480a0dfdcb486764e790d
Parents: 90edd94
Author: Aaron Dossett <aa...@target.com>
Authored: Thu Nov 5 16:03:31 2015 -0600
Committer: Aaron Dossett <aa...@target.com>
Committed: Thu Nov 5 16:03:31 2015 -0600

----------------------------------------------------------------------
 bin/flight.bash                                 |  15 +++
 dev-tools/travis/travis-script.sh               |   6 +
 .../starter/ResourceAwareExampleTopology.java   |  20 +++-
 .../storm/hdfs/bolt/AvroGenericRecordBolt.java  |  17 +++
 .../ha/codedistributor/HDFSCodeDistributor.java |  17 +++
 .../hdfs/bolt/AvroGenericRecordBoltTest.java    |  17 +++
 .../storm/hdfs/trident/HdfsStateTest.java       |  17 +++
 external/storm-solr/pom.xml                     |  17 +++
 pom.xml                                         | 118 ++++++++++---------
 .../storm/codedistributor/ICodeDistributor.java |  17 +++
 .../LocalFileSystemCodeDistributor.java         |  17 +++
 .../backtype/storm/metric/EventLoggerBolt.java  |  17 +++
 .../storm/metric/FileBasedEventLogger.java      |  17 +++
 .../jvm/backtype/storm/metric/IEventLogger.java |  17 +++
 .../DefaultRackDNSToSwitchMapping.java          |  17 +++
 .../backtype/storm/nimbus/ILeaderElector.java   |  17 +++
 .../jvm/backtype/storm/nimbus/NimbusInfo.java   |  17 +++
 .../security/auth/kerberos/NoOpTTrasport.java   |  20 +++-
 .../AlternateRackDNSToSwitchMapping.java        |  17 +++
 19 files changed, 357 insertions(+), 60 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/bin/flight.bash
----------------------------------------------------------------------
diff --git a/bin/flight.bash b/bin/flight.bash
index 05068b5..957c9ac 100755
--- a/bin/flight.bash
+++ b/bin/flight.bash
@@ -1,4 +1,19 @@
 #!/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.
 
 JDKPATH="/home/y/share/yjava_jdk/java"
 BINPATH="/usr/bin"

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/dev-tools/travis/travis-script.sh
----------------------------------------------------------------------
diff --git a/dev-tools/travis/travis-script.sh b/dev-tools/travis/travis-script.sh
index dd1a337..f388d4d 100755
--- a/dev-tools/travis/travis-script.sh
+++ b/dev-tools/travis/travis-script.sh
@@ -41,4 +41,10 @@ do
   python ${TRAVIS_SCRIPT_DIR}/print-errors-from-test-reports.py "${dir}"
 done
 
+echo "Looking for unapproved licenses"
+for rat in `find . -name rat.txt`;
+do
+  python ${TRAVIS_SCRIPT_DIR}/ratprint.py "${rat}"
+done
+
 exit ${BUILD_RET_VAL}

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/examples/storm-starter/src/jvm/storm/starter/ResourceAwareExampleTopology.java
----------------------------------------------------------------------
diff --git a/examples/storm-starter/src/jvm/storm/starter/ResourceAwareExampleTopology.java b/examples/storm-starter/src/jvm/storm/starter/ResourceAwareExampleTopology.java
index 96e300f..c43a1bc 100644
--- a/examples/storm-starter/src/jvm/storm/starter/ResourceAwareExampleTopology.java
+++ b/examples/storm-starter/src/jvm/storm/starter/ResourceAwareExampleTopology.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 storm.starter;
 
 import backtype.storm.Config;
@@ -18,9 +35,6 @@ import backtype.storm.utils.Utils;
 
 import java.util.Map;
 
-/**
- * Created by jerrypeng on 8/19/15.
- */
 public class ResourceAwareExampleTopology {
   public static class ExclamationBolt extends BaseRichBolt {
     OutputCollector _collector;

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBolt.java
----------------------------------------------------------------------
diff --git a/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBolt.java b/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBolt.java
index 2a83a44..d2bfba8 100644
--- a/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBolt.java
+++ b/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBolt.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.storm.hdfs.bolt;
 
 import backtype.storm.Config;

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/ha/codedistributor/HDFSCodeDistributor.java
----------------------------------------------------------------------
diff --git a/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/ha/codedistributor/HDFSCodeDistributor.java b/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/ha/codedistributor/HDFSCodeDistributor.java
index f6736bd..1e38051 100644
--- a/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/ha/codedistributor/HDFSCodeDistributor.java
+++ b/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/ha/codedistributor/HDFSCodeDistributor.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.storm.hdfs.ha.codedistributor;
 
 import backtype.storm.codedistributor.ICodeDistributor;

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBoltTest.java
----------------------------------------------------------------------
diff --git a/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBoltTest.java b/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBoltTest.java
index 4b447aa..37ba27a 100644
--- a/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBoltTest.java
+++ b/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBoltTest.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.storm.hdfs.bolt;
 
 import backtype.storm.Config;

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/trident/HdfsStateTest.java
----------------------------------------------------------------------
diff --git a/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/trident/HdfsStateTest.java b/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/trident/HdfsStateTest.java
index e1f45df..51869d2 100644
--- a/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/trident/HdfsStateTest.java
+++ b/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/trident/HdfsStateTest.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.storm.hdfs.trident;
 
 import backtype.storm.Config;

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/external/storm-solr/pom.xml
----------------------------------------------------------------------
diff --git a/external/storm-solr/pom.xml b/external/storm-solr/pom.xml
index 5e7caa4..d5b7622 100644
--- a/external/storm-solr/pom.xml
+++ b/external/storm-solr/pom.xml
@@ -1,4 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--/**
+        * 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.
+        */-->
 <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">

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 008a988..a8475aa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -783,6 +783,70 @@
                 <artifactId>clojure-maven-plugin</artifactId>
                 <extensions>true</extensions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.rat</groupId>
+                <artifactId>apache-rat-plugin</artifactId>
+                <version>0.11</version>
+                <executions>
+                    <execution>
+                        <phase>verify</phase>
+                        <goals>
+                            <goal>check</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <excludeSubProjects>false</excludeSubProjects>
+                    <excludes>
+                        <!-- exclude maven artifacts -->
+                        <exclude>**/target/**</exclude>
+                        <!-- exclude intellij projects -->
+                        <exclude>**/*.iml</exclude>
+                        <!-- module specific testing artifacts -->
+                        <exclude>**/metastore_db/**</exclude>
+
+                        <!-- exclude CHANGELOG, VERSION, AND TODO files -->
+                        <exclude>**/CHANGELOG.md</exclude>
+                        <exclude>**/README.md</exclude>
+                        <exclude>**/README.markdown</exclude>
+                        <exclude>**/DEVELOPER.md</exclude>
+                        <exclude>**/BYLAWS.md</exclude>
+                        <exclude>**/STORM-UI-REST-API.md</exclude>
+                        <exclude>SECURITY.md</exclude>
+                        <exclude>VERSION</exclude>
+                        <exclude>TODO</exclude>
+                        <!-- thrift-generated code -->
+                        <exclude>**/src/py/**</exclude>
+
+                        <!-- the following are in the LICENSE file -->
+                        <exclude>**/src/ui/public/js/jquery.dataTables.1.10.4.min.js</exclude>
+                        <exclude>**/src/ui/public/css/jquery.dataTables.1.10.4.min.css</exclude>
+                        <exclude>**/src/ui/public/images/*</exclude>
+                        <exclude>**/src/ui/public/js/bootstrap-3.3.1.min.js</exclude>
+                        <exclude>**/src/ui/public/css/bootstrap-3.3.1.min.css</exclude>
+                        <exclude>**/src/ui/public/js/dataTables.bootstrap.min.js</exclude>
+                        <exclude>**/src/ui/public/css/dataTables.bootstrap.css</exclude>
+                        <exclude>**/src/ui/public/js/jsonFormatter.min.js</exclude>
+                        <exclude>**/src/ui/public/css/jsonFormatter.min.css</exclude>
+                        <exclude>**/src/ui/public/js/jquery-1.11.1.min.js</exclude>
+                        <exclude>**/src/ui/public/js/jquery.cookies.2.2.0.min.js</exclude>
+                        <exclude>**/src/ui/public/js/moment.min.js</exclude>
+                        <exclude>**/src/ui/public/js/jquery.blockUI.min.js</exclude>
+                        <exclude>**/src/ui/public/js/url.min.js</exclude>
+                        <exclude>**/src/ui/public/js/arbor.js</exclude>
+                        <exclude>**/src/ui/public/js/arbor-graphics.js</exclude>
+                        <exclude>**/src/ui/public/js/arbor-tween.js</exclude>
+                        <exclude>**/src/ui/public/js/jquery.mustache.js</exclude>
+
+                        <!-- generated by shade plugin -->
+                        <exclude>**/dependency-reduced-pom.xml</exclude>
+
+                        <exclude>**/docs/**</exclude>
+                        <exclude>**/.git/**</exclude>
+                        <exclude>**/derby.log</exclude>
+                    </excludes>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 
@@ -843,60 +907,6 @@
                     </tagListOptions>
                 </configuration>
             </plugin>
-            <plugin>
-                <groupId>org.apache.rat</groupId>
-                <artifactId>apache-rat-plugin</artifactId>
-                <version>0.11</version>
-                <configuration>
-                    <excludeSubProjects>false</excludeSubProjects>
-                    <excludes>
-                        <!-- exclude maven artifacts -->
-                        <exclude>**/target/**</exclude>
-                        <!-- exclude intellij projects -->
-                        <exclude>**/*.iml</exclude>
-
-                        <!-- exclude CHANGELOG, VERSION, AND TODO files -->
-                        <exclude>**/CHANGELOG.md</exclude>
-                        <exclude>**/README.md</exclude>
-                        <exclude>**/README.markdown</exclude>
-                        <exclude>**/DEVELOPER.md</exclude>
-                        <exclude>**/BYLAWS.md</exclude>
-                        <exclude>**/STORM-UI-REST-API.md</exclude>
-                        <exclude>SECURITY.md</exclude>
-                        <exclude>VERSION</exclude>
-                        <exclude>TODO</exclude>
-                        <!-- thrift-generated code -->
-                        <exclude>**/src/py/**</exclude>
-
-                        <!-- the following are in the LICENSE file -->
-                        <exclude>**/src/ui/public/js/jquery.dataTables.1.10.4.min.js</exclude>
-                        <exclude>**/src/ui/public/css/jquery.dataTables.1.10.4.min.css</exclude>
-                        <exclude>**/src/ui/public/images/*</exclude>
-                        <exclude>**/src/ui/public/js/bootstrap-3.3.1.min.js</exclude>
-                        <exclude>**/src/ui/public/css/bootstrap-3.3.1.min.css</exclude>
-                        <exclude>**/src/ui/public/js/dataTables.bootstrap.min.js</exclude>
-                        <exclude>**/src/ui/public/css/dataTables.bootstrap.css</exclude>
-                        <exclude>**/src/ui/public/js/jsonFormatter.min.js</exclude>
-                        <exclude>**/src/ui/public/css/jsonFormatter.min.css</exclude>
-                        <exclude>**/src/ui/public/js/jquery-1.11.1.min.js</exclude>
-                        <exclude>**/src/ui/public/js/jquery.cookies.2.2.0.min.js</exclude>
-                        <exclude>**/src/ui/public/js/moment.min.js</exclude>
-                        <exclude>**/src/ui/public/js/jquery.blockUI.min.js</exclude>
-                        <exclude>**/src/ui/public/js/url.min.js</exclude>
-                        <exclude>**/src/ui/public/js/arbor.js</exclude>
-                        <exclude>**/src/ui/public/js/arbor-graphics.js</exclude>
-                        <exclude>**/src/ui/public/js/arbor-tween.js</exclude>
-                        <exclude>**/src/ui/public/js/jquery.mustache.js</exclude>
-
-                        <!-- generated by shade plugin -->
-                        <exclude>**/dependency-reduced-pom.xml</exclude>
-
-                        <exclude>**/docs/**</exclude>
-                        <exclude>**/.git/**</exclude>
-                        <exclude>**/derby.log</exclude>
-                    </excludes>
-                </configuration>
-            </plugin>
         </plugins>
     </reporting>
 </project>

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/codedistributor/ICodeDistributor.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/codedistributor/ICodeDistributor.java b/storm-core/src/jvm/backtype/storm/codedistributor/ICodeDistributor.java
index 25e578b..c46688f 100644
--- a/storm-core/src/jvm/backtype/storm/codedistributor/ICodeDistributor.java
+++ b/storm-core/src/jvm/backtype/storm/codedistributor/ICodeDistributor.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 backtype.storm.codedistributor;
 
 

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/codedistributor/LocalFileSystemCodeDistributor.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/codedistributor/LocalFileSystemCodeDistributor.java b/storm-core/src/jvm/backtype/storm/codedistributor/LocalFileSystemCodeDistributor.java
index 02d5e2d..76993e2 100644
--- a/storm-core/src/jvm/backtype/storm/codedistributor/LocalFileSystemCodeDistributor.java
+++ b/storm-core/src/jvm/backtype/storm/codedistributor/LocalFileSystemCodeDistributor.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 backtype.storm.codedistributor;
 
 import backtype.storm.nimbus.NimbusInfo;

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/metric/EventLoggerBolt.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/metric/EventLoggerBolt.java b/storm-core/src/jvm/backtype/storm/metric/EventLoggerBolt.java
index 17ebbd1..6324237 100644
--- a/storm-core/src/jvm/backtype/storm/metric/EventLoggerBolt.java
+++ b/storm-core/src/jvm/backtype/storm/metric/EventLoggerBolt.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 backtype.storm.metric;
 
 import backtype.storm.task.IBolt;

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/metric/FileBasedEventLogger.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/metric/FileBasedEventLogger.java b/storm-core/src/jvm/backtype/storm/metric/FileBasedEventLogger.java
index 3abb940..27aa9d9 100644
--- a/storm-core/src/jvm/backtype/storm/metric/FileBasedEventLogger.java
+++ b/storm-core/src/jvm/backtype/storm/metric/FileBasedEventLogger.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 backtype.storm.metric;
 
 import backtype.storm.task.TopologyContext;

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/metric/IEventLogger.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/metric/IEventLogger.java b/storm-core/src/jvm/backtype/storm/metric/IEventLogger.java
index 9d0e7e9..4f0b34e 100644
--- a/storm-core/src/jvm/backtype/storm/metric/IEventLogger.java
+++ b/storm-core/src/jvm/backtype/storm/metric/IEventLogger.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 backtype.storm.metric;
 
 import backtype.storm.task.OutputCollector;

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/networktopography/DefaultRackDNSToSwitchMapping.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/networktopography/DefaultRackDNSToSwitchMapping.java b/storm-core/src/jvm/backtype/storm/networktopography/DefaultRackDNSToSwitchMapping.java
index f3f6152..8e1e521 100644
--- a/storm-core/src/jvm/backtype/storm/networktopography/DefaultRackDNSToSwitchMapping.java
+++ b/storm-core/src/jvm/backtype/storm/networktopography/DefaultRackDNSToSwitchMapping.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 backtype.storm.networktopography;
 
 import java.util.HashMap;

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/nimbus/ILeaderElector.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/nimbus/ILeaderElector.java b/storm-core/src/jvm/backtype/storm/nimbus/ILeaderElector.java
index a54ae7e..1148be2 100644
--- a/storm-core/src/jvm/backtype/storm/nimbus/ILeaderElector.java
+++ b/storm-core/src/jvm/backtype/storm/nimbus/ILeaderElector.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 backtype.storm.nimbus;
 
 import org.apache.curator.framework.CuratorFramework;

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/nimbus/NimbusInfo.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/nimbus/NimbusInfo.java b/storm-core/src/jvm/backtype/storm/nimbus/NimbusInfo.java
index d9af2a4..77c0d7a 100644
--- a/storm-core/src/jvm/backtype/storm/nimbus/NimbusInfo.java
+++ b/storm-core/src/jvm/backtype/storm/nimbus/NimbusInfo.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 backtype.storm.nimbus;
 
 import backtype.storm.Config;

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/security/auth/kerberos/NoOpTTrasport.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/security/auth/kerberos/NoOpTTrasport.java b/storm-core/src/jvm/backtype/storm/security/auth/kerberos/NoOpTTrasport.java
index 074930d..c0721fc 100644
--- a/storm-core/src/jvm/backtype/storm/security/auth/kerberos/NoOpTTrasport.java
+++ b/storm-core/src/jvm/backtype/storm/security/auth/kerberos/NoOpTTrasport.java
@@ -1,12 +1,26 @@
+/**
+ * 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 backtype.storm.security.auth.kerberos;
 
 import org.apache.thrift.transport.TSaslServerTransport;
 import org.apache.thrift.transport.TTransport;
 import org.apache.thrift.transport.TTransportException;
 
-/**
- * Created by pshah on 8/12/15.
- */
 public class NoOpTTrasport extends TSaslServerTransport {
 
     public NoOpTTrasport(TTransport transport) {

http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/testing/AlternateRackDNSToSwitchMapping.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/testing/AlternateRackDNSToSwitchMapping.java b/storm-core/src/jvm/backtype/storm/testing/AlternateRackDNSToSwitchMapping.java
index 8ed5f7b..f885056 100644
--- a/storm-core/src/jvm/backtype/storm/testing/AlternateRackDNSToSwitchMapping.java
+++ b/storm-core/src/jvm/backtype/storm/testing/AlternateRackDNSToSwitchMapping.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 backtype.storm.testing;
 
 import backtype.storm.networktopography.AbstractDNSToSwitchMapping;


[2/3] storm git commit: Merge branch 'STORM-1161' of https://github.com/dossett/storm into STORM-1161

Posted by bo...@apache.org.
Merge branch 'STORM-1161' of https://github.com/dossett/storm into STORM-1161

STORM-1161: Add License headers and add rat checks to builds


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/6e76d4b2
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/6e76d4b2
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/6e76d4b2

Branch: refs/heads/master
Commit: 6e76d4b2f4c6eb788b0d04f4ac40e5fc0600c837
Parents: d59eaac 0892f09
Author: Robert (Bobby) Evans <ev...@yahoo-inc.com>
Authored: Fri Nov 6 09:41:09 2015 -0600
Committer: Robert (Bobby) Evans <ev...@yahoo-inc.com>
Committed: Fri Nov 6 09:41:09 2015 -0600

----------------------------------------------------------------------
 bin/flight.bash                                 |  15 +++
 dev-tools/travis/travis-script.sh               |   6 +
 .../starter/ResourceAwareExampleTopology.java   |  20 +++-
 .../storm/hdfs/bolt/AvroGenericRecordBolt.java  |  17 +++
 .../ha/codedistributor/HDFSCodeDistributor.java |  17 +++
 .../hdfs/bolt/AvroGenericRecordBoltTest.java    |  17 +++
 .../storm/hdfs/trident/HdfsStateTest.java       |  17 +++
 external/storm-solr/pom.xml                     |  17 +++
 pom.xml                                         | 118 ++++++++++---------
 .../storm/codedistributor/ICodeDistributor.java |  17 +++
 .../LocalFileSystemCodeDistributor.java         |  17 +++
 .../backtype/storm/metric/EventLoggerBolt.java  |  17 +++
 .../storm/metric/FileBasedEventLogger.java      |  17 +++
 .../jvm/backtype/storm/metric/IEventLogger.java |  17 +++
 .../DefaultRackDNSToSwitchMapping.java          |  17 +++
 .../backtype/storm/nimbus/ILeaderElector.java   |  17 +++
 .../jvm/backtype/storm/nimbus/NimbusInfo.java   |  17 +++
 .../security/auth/kerberos/NoOpTTrasport.java   |  20 +++-
 .../AlternateRackDNSToSwitchMapping.java        |  17 +++
 19 files changed, 357 insertions(+), 60 deletions(-)
----------------------------------------------------------------------



[3/3] storm git commit: Added STORM-1161 to Changelog

Posted by bo...@apache.org.
Added STORM-1161 to Changelog


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/b24b0fec
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/b24b0fec
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/b24b0fec

Branch: refs/heads/master
Commit: b24b0fece6962e1b455ec2fc3499ded2c4c7f7e5
Parents: 6e76d4b
Author: Robert (Bobby) Evans <ev...@yahoo-inc.com>
Authored: Fri Nov 6 09:41:45 2015 -0600
Committer: Robert (Bobby) Evans <ev...@yahoo-inc.com>
Committed: Fri Nov 6 09:41:45 2015 -0600

----------------------------------------------------------------------
 CHANGELOG.md | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/b24b0fec/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 36f5ddf..4325d99 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
 ## 0.11.0
+ * STORM-1161: Add License headers and add rat checks to builds
  * STORM-1165: normalize the scales of CPU/Mem/Net when choosing the best node for Resource Aware Scheduler
  * STORM-1163: use rmr rather than rmpath for remove worker-root
  * STORM-1170: Fix the producer alive issue in DisruptorQueueTest