gianm closed pull request #6215: Adding licenses and enable apache-rat-plugin. URL: https://github.com/apache/incubator-druid/pull/6215
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/examples/bin/broker.sh b/examples/bin/broker.sh index 5ad12ac4e47..188bf11862a 100644 --- a/examples/bin/broker.sh +++ b/examples/bin/broker.sh @@ -1,4 +1,18 @@ #!/bin/bash -eu +# 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="Usage: broker.sh (start|stop|status)" diff --git a/examples/bin/coordinator.sh b/examples/bin/coordinator.sh index d7425b1bebe..8e105c8b62e 100644 --- a/examples/bin/coordinator.sh +++ b/examples/bin/coordinator.sh @@ -1,4 +1,18 @@ #!/bin/bash -eu +# 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="Usage: coordinator.sh (start|stop|status)" diff --git a/examples/bin/generate-example-metrics b/examples/bin/generate-example-metrics index 57f78fe4c58..3bec6afeb61 100755 --- a/examples/bin/generate-example-metrics +++ b/examples/bin/generate-example-metrics @@ -1,5 +1,22 @@ #!/usr/bin/env 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 argparse import json import random diff --git a/examples/bin/historical.sh b/examples/bin/historical.sh index cee469b6f27..dc2b9e2310a 100644 --- a/examples/bin/historical.sh +++ b/examples/bin/historical.sh @@ -1,4 +1,18 @@ #!/bin/bash -eu +# 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="Usage: historical.sh (start|stop|status)" diff --git a/examples/bin/init b/examples/bin/init index d849b447207..eba2b5a1cf2 100644 --- a/examples/bin/init +++ b/examples/bin/init @@ -1,4 +1,18 @@ #!/bin/bash -eu +# 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. gzip -c -d quickstart/wikiticker-2015-09-12-sampled.json.gz > "quickstart/wikiticker-2015-09-12-sampled.json" diff --git a/examples/bin/middleManager.sh b/examples/bin/middleManager.sh index da20a195472..345d2fa6232 100644 --- a/examples/bin/middleManager.sh +++ b/examples/bin/middleManager.sh @@ -1,4 +1,18 @@ #!/bin/bash -eu +# 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="Usage: middleManager.sh (start|stop|status)" diff --git a/examples/bin/node.sh b/examples/bin/node.sh index cb5f7a7c7a6..5ad974861ed 100644 --- a/examples/bin/node.sh +++ b/examples/bin/node.sh @@ -1,4 +1,18 @@ #!/bin/bash -eu +# 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. ## Initialization script for druid nodes ## Runs druid nodes as a daemon diff --git a/examples/bin/overlord.sh b/examples/bin/overlord.sh index a1fb0089c13..2980ef18156 100644 --- a/examples/bin/overlord.sh +++ b/examples/bin/overlord.sh @@ -1,4 +1,18 @@ #!/bin/bash -eu +# 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="Usage: overlord.sh (start|stop|status)" diff --git a/examples/quickstart/tutorial/hadoop/docker/Dockerfile b/examples/quickstart/tutorial/hadoop/docker/Dockerfile index 31aeeb4fe8a..1801da2bc11 100644 --- a/examples/quickstart/tutorial/hadoop/docker/Dockerfile +++ b/examples/quickstart/tutorial/hadoop/docker/Dockerfile @@ -1,3 +1,19 @@ +# Based on the SequenceIQ hadoop-docker project hosted at +# https://github.com/sequenceiq/hadoop-docker, and modified at +# the Apache Software Foundation (ASF). +# +# 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. + # Creates pseudo distributed hadoop 2.8.3 with java 8 # # Modified from the SequenceIQ Dockerfiles at https://github.com/sequenceiq/hadoop-docker diff --git a/examples/quickstart/tutorial/hadoop/docker/bootstrap.sh b/examples/quickstart/tutorial/hadoop/docker/bootstrap.sh index 4cf0e55b135..fc962157a9d 100755 --- a/examples/quickstart/tutorial/hadoop/docker/bootstrap.sh +++ b/examples/quickstart/tutorial/hadoop/docker/bootstrap.sh @@ -1,4 +1,18 @@ #!/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. : ${HADOOP_PREFIX:=/usr/local/hadoop} diff --git a/examples/quickstart/tutorial/hadoop/docker/core-site.xml.template b/examples/quickstart/tutorial/hadoop/docker/core-site.xml.template index 00ab59528b8..256de4f0988 100644 --- a/examples/quickstart/tutorial/hadoop/docker/core-site.xml.template +++ b/examples/quickstart/tutorial/hadoop/docker/core-site.xml.template @@ -1,4 +1,22 @@ - <configuration> +<!-- + ~ 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>fs.defaultFS</name> <value>hdfs://HOSTNAME:9000</value> diff --git a/examples/quickstart/tutorial/hadoop/docker/hdfs-site.xml b/examples/quickstart/tutorial/hadoop/docker/hdfs-site.xml index d29556190ad..18758b97ff3 100644 --- a/examples/quickstart/tutorial/hadoop/docker/hdfs-site.xml +++ b/examples/quickstart/tutorial/hadoop/docker/hdfs-site.xml @@ -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. + --> + <configuration> <property> <name>dfs.replication</name> diff --git a/examples/quickstart/tutorial/hadoop/docker/mapred-site.xml b/examples/quickstart/tutorial/hadoop/docker/mapred-site.xml index dba582f1c31..96aa1fa9ec8 100644 --- a/examples/quickstart/tutorial/hadoop/docker/mapred-site.xml +++ b/examples/quickstart/tutorial/hadoop/docker/mapred-site.xml @@ -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. + --> + <configuration> <property> <name>mapreduce.framework.name</name> diff --git a/examples/quickstart/tutorial/hadoop/docker/yarn-site.xml b/examples/quickstart/tutorial/hadoop/docker/yarn-site.xml index becf69465f1..68a0ecfa60c 100644 --- a/examples/quickstart/tutorial/hadoop/docker/yarn-site.xml +++ b/examples/quickstart/tutorial/hadoop/docker/yarn-site.xml @@ -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. + --> + <configuration> <property> <name>yarn.nodemanager.aux-services</name> diff --git a/extendedset/src/main/java/org/apache/druid/extendedset/intset/ConciseSetUtils.java b/extendedset/src/main/java/org/apache/druid/extendedset/intset/ConciseSetUtils.java index d0c4a55ff13..8e72a3c15e9 100755 --- a/extendedset/src/main/java/org/apache/druid/extendedset/intset/ConciseSetUtils.java +++ b/extendedset/src/main/java/org/apache/druid/extendedset/intset/ConciseSetUtils.java @@ -1,3 +1,23 @@ +/* + * (c) 2010 Alessandro Colantonio + * <mailto:[email protected]> + * <http://ricerca.mat.uniroma3.it/users/colanton> + * + * Modified at the Apache Software Foundation (ASF). + * + * 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. + */ + package org.apache.druid.extendedset.intset; /** diff --git a/extendedset/src/main/java/org/apache/druid/extendedset/utilities/IntList.java b/extendedset/src/main/java/org/apache/druid/extendedset/utilities/IntList.java index 6bdd288fe3d..768de308442 100755 --- a/extendedset/src/main/java/org/apache/druid/extendedset/utilities/IntList.java +++ b/extendedset/src/main/java/org/apache/druid/extendedset/utilities/IntList.java @@ -1,3 +1,23 @@ +/* + * (c) 2010 Alessandro Colantonio + * <mailto:[email protected]> + * <http://ricerca.mat.uniroma3.it/users/colanton> + * + * Modified at the Apache Software Foundation (ASF). + * + * 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. + */ + package org.apache.druid.extendedset.utilities; import java.util.ArrayList; diff --git a/extensions-contrib/influx-extensions/src/main/antlr4/org/apache/druid/data/input/influx/InfluxLineProtocol.g4 b/extensions-contrib/influx-extensions/src/main/antlr4/org/apache/druid/data/input/influx/InfluxLineProtocol.g4 index 89b419f09a2..40bdb095c7d 100644 --- a/extensions-contrib/influx-extensions/src/main/antlr4/org/apache/druid/data/input/influx/InfluxLineProtocol.g4 +++ b/extensions-contrib/influx-extensions/src/main/antlr4/org/apache/druid/data/input/influx/InfluxLineProtocol.g4 @@ -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. + */ + /** Based on v1.4 from their docs at https://docs.influxdata.com/influxdb/v1.4/write_protocols/line_protocol_tutorial/ **/ diff --git a/indexing-service/src/main/resources/indexer_static/js/console-0.0.1.js b/indexing-service/src/main/resources/indexer_static/js/console-0.0.1.js index a3bf8e6a3f2..b4994f9c917 100644 --- a/indexing-service/src/main/resources/indexer_static/js/console-0.0.1.js +++ b/indexing-service/src/main/resources/indexer_static/js/console-0.0.1.js @@ -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. + */ + // requires tableHelper var oTable = []; diff --git a/integration-tests/docker-base/Dockerfile b/integration-tests/docker-base/Dockerfile index 6309f06eb07..7be192f3b2d 100644 --- a/integration-tests/docker-base/Dockerfile +++ b/integration-tests/docker-base/Dockerfile @@ -1,3 +1,19 @@ +# Based on the SequenceIQ hadoop-docker project hosted at +# https://github.com/sequenceiq/hadoop-docker, and modified at +# the Apache Software Foundation (ASF). +# +# 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. + FROM ubuntu:16.04 # Bundle everything into one script so cleanup can reduce image size. diff --git a/integration-tests/docker-base/setup.sh b/integration-tests/docker-base/setup.sh index b9da52271c0..9033a9de8f3 100644 --- a/integration-tests/docker-base/setup.sh +++ b/integration-tests/docker-base/setup.sh @@ -1,4 +1,18 @@ #!/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. set -e set -u diff --git a/integration-tests/docker/Dockerfile b/integration-tests/docker/Dockerfile index c66ecfdf5bb..e0f104f1d15 100644 --- a/integration-tests/docker/Dockerfile +++ b/integration-tests/docker/Dockerfile @@ -1,3 +1,18 @@ +# 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. + # Base image is built from integration-tests/docker-base in the Druid repo FROM imply/druiditbase diff --git a/integration-tests/run_cluster.sh b/integration-tests/run_cluster.sh index 9ef0640ef19..e5d3a259009 100755 --- a/integration-tests/run_cluster.sh +++ b/integration-tests/run_cluster.sh @@ -1,4 +1,20 @@ -# cleanup +#!/usr/bin/env 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. + +# cleanup for node in druid-historical druid-coordinator druid-overlord druid-router druid-broker druid-middlemanager druid-zookeeper-kafka druid-metadata-storage; do docker stop $node diff --git a/integration-tests/stop_cluster.sh b/integration-tests/stop_cluster.sh index d242cf47c6e..fb09ec2067b 100755 --- a/integration-tests/stop_cluster.sh +++ b/integration-tests/stop_cluster.sh @@ -1,3 +1,19 @@ +#!/usr/bin/env 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. + for node in druid-historical druid-coordinator druid-overlord druid-router druid-broker druid-middlemanager druid-zookeeper-kafka druid-metadata-storage; do docker stop $node diff --git a/pom.xml b/pom.xml index f95fb58843c..3419fcd4603 100644 --- a/pom.xml +++ b/pom.xml @@ -1016,6 +1016,99 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <version>0.12</version> + <executions> + <execution> + <phase>verify</phase> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + <configuration> + <outputDirectory>${project.basedir}/rat</outputDirectory> + <licenses> + <license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense"> + <licenseFamilyCategory>MIT</licenseFamilyCategory> + <licenseFamilyName>MIT JQyery</licenseFamilyName> + <notes></notes> + <patterns> + <pattern>Copyright 2012 jQuery Foundation and other contributors; Licensed MIT</pattern> + <pattern>jQuery Foundation, Inc. | jquery.org/license</pattern> + </patterns> + </license> + <license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense"> + <licenseFamilyCategory>Underscore</licenseFamilyCategory> + <licenseFamilyName>Underscore</licenseFamilyName> + <notes></notes> + <patterns> + <pattern>Underscore is freely distributable under the MIT license</pattern> + </patterns> + </license> + <license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense"> + <licenseFamilyCategory>Allan Jardine</licenseFamilyCategory> + <licenseFamilyName>Allan Jardine</licenseFamilyName> + <notes></notes> + <patterns> + <pattern>Copyright 2009 Allan Jardine. All Rights Reserved</pattern> + </patterns> + </license> + <license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense"> + <licenseFamilyCategory>Allan Jardine</licenseFamilyCategory> + <licenseFamilyName>Allan Jardine</licenseFamilyName> + <notes></notes> + <patterns> + <pattern>Copyright 2009 Allan Jardine. All Rights Reserved</pattern> + <pattern>Copyright 2008-2011 Allan Jardine</pattern> + <pattern>GPL v2 or BSD 3 point style</pattern> + </patterns> + </license> + </licenses> + + <licenseFamilies> + <licenseFamily implementation="org.apache.rat.license.SimpleLicenseFamily"> + <familyName>MIT JQyery</familyName> + </licenseFamily> + <licenseFamily implementation="org.apache.rat.license.SimpleLicenseFamily"> + <familyName>Underscore</familyName> + </licenseFamily> + <licenseFamily implementation="org.apache.rat.license.SimpleLicenseFamily"> + <familyName>Allan Jardine</familyName> + </licenseFamily> + </licenseFamilies> + <excludes> + <!--DOCS--> + <exclude>**/*.md</exclude> + <exclude>publications/**</exclude> + <exclude>docs/**</exclude> + <!--CODE STYLE--> + <exclude>codestyle/*</exclude> + <exclude>eclipse.importorder</exclude> + <!--CODE RESOURCES--> + <exclude>**/javax.annotation.processing.Processor</exclude> + <exclude>**/org.apache.druid.initialization.DruidModule</exclude> + <exclude>**/org/apache/druid/math/expr/antlr/Expr.g4</exclude> + <exclude>**/dependency-reduced-pom.xml</exclude> + <!--BUILD and TESTS--> + <exclude>**/target/**</exclude> + <exclude>**/build/**</exclude> + <exclude>**/test/resources/**</exclude> + <exclude>**/src/test/avro/**</exclude> + <exclude>**/src/test/thrift/**</exclude> + <exclude>.travis.yml</exclude> + <!--DEV and IT-TESTS--> + <exclude>**/*.json</exclude> + <exclude>**/jvm.config</exclude> + <exclude>**/quickstart/protobuf/**</exclude> + <exclude>**/tutorial/conf/**</exclude> + <exclude>**/derby.log</exclude> + <exclude>**/docker/**</exclude> + </excludes> + </configuration> + </plugin> </plugins> <pluginManagement> <plugins> diff --git a/server/src/main/resources/static/old-console/css/config.css b/server/src/main/resources/static/old-console/css/config.css index 2c5f3e98b83..2f8c1f432c2 100644 --- a/server/src/main/resources/static/old-console/css/config.css +++ b/server/src/main/resources/static/old-console/css/config.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. + */ + #config_list { margin: 20px 0px; } diff --git a/server/src/main/resources/static/old-console/css/enable.css b/server/src/main/resources/static/old-console/css/enable.css index 4c1a4cdb9b1..dfcc3eddec8 100644 --- a/server/src/main/resources/static/old-console/css/enable.css +++ b/server/src/main/resources/static/old-console/css/enable.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. + */ + #select_datasource { margin: 20px 0 20px 0; } \ No newline at end of file diff --git a/server/src/main/resources/static/old-console/css/index.css b/server/src/main/resources/static/old-console/css/index.css index d5843ca61e2..cac06952de6 100644 --- a/server/src/main/resources/static/old-console/css/index.css +++ b/server/src/main/resources/static/old-console/css/index.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. + */ + .loading { display: none; } diff --git a/server/src/main/resources/static/old-console/css/rules.css b/server/src/main/resources/static/old-console/css/rules.css index dcd52e2706e..fb798fabebc 100644 --- a/server/src/main/resources/static/old-console/css/rules.css +++ b/server/src/main/resources/static/old-console/css/rules.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. + */ + #datasources { width:200px; } diff --git a/server/src/main/resources/static/old-console/css/style.css b/server/src/main/resources/static/old-console/css/style.css index f9e50c49414..18c42320330 100644 --- a/server/src/main/resources/static/old-console/css/style.css +++ b/server/src/main/resources/static/old-console/css/style.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. + */ + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * HTML */ diff --git a/server/src/main/resources/static/old-console/js/config-0.0.2.js b/server/src/main/resources/static/old-console/js/config-0.0.2.js index 3f6b3a918e6..8c4c8cf77c9 100644 --- a/server/src/main/resources/static/old-console/js/config-0.0.2.js +++ b/server/src/main/resources/static/old-console/js/config-0.0.2.js @@ -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. + */ + var configs = []; function makeConfigDiv(key, value) { diff --git a/server/src/main/resources/static/old-console/js/druidTable-0.0.1.js b/server/src/main/resources/static/old-console/js/druidTable-0.0.1.js index 7b73f315375..a6264af9c28 100644 --- a/server/src/main/resources/static/old-console/js/druidTable-0.0.1.js +++ b/server/src/main/resources/static/old-console/js/druidTable-0.0.1.js @@ -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. + */ + var DruidTable = function() { var _private = { data: [] diff --git a/server/src/main/resources/static/old-console/js/enable-0.0.1.js b/server/src/main/resources/static/old-console/js/enable-0.0.1.js index eacc5d42bbe..ba2c18b32af 100644 --- a/server/src/main/resources/static/old-console/js/enable-0.0.1.js +++ b/server/src/main/resources/static/old-console/js/enable-0.0.1.js @@ -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. + */ + $(document).ready(function() { $("button").button(); diff --git a/server/src/main/resources/static/old-console/js/handlers-0.0.2.js b/server/src/main/resources/static/old-console/js/handlers-0.0.2.js index 139b1447dbc..bfae9c45775 100644 --- a/server/src/main/resources/static/old-console/js/handlers-0.0.2.js +++ b/server/src/main/resources/static/old-console/js/handlers-0.0.2.js @@ -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. + */ + // requires jQuery, druidTable, tablehelper $(document).ready(function() { diff --git a/server/src/main/resources/static/old-console/js/init-0.0.2.js b/server/src/main/resources/static/old-console/js/init-0.0.2.js index fc6b07f01c1..e39a2fdc363 100644 --- a/server/src/main/resources/static/old-console/js/init-0.0.2.js +++ b/server/src/main/resources/static/old-console/js/init-0.0.2.js @@ -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. + */ + var CONSOLE = {}; CONSOLE.selected_segments = []; diff --git a/server/src/main/resources/static/old-console/js/jquery.dataTables-1.8.2.js b/server/src/main/resources/static/old-console/js/jquery.dataTables-1.8.2.js index 42292c59dd1..368b72f5f56 100644 --- a/server/src/main/resources/static/old-console/js/jquery.dataTables-1.8.2.js +++ b/server/src/main/resources/static/old-console/js/jquery.dataTables-1.8.2.js @@ -8,16 +8,16 @@ * License: GPL v2 or BSD 3 point style * Project: Mtaala * Contact: [email protected] - * + * * Copyright 2008-2011 Allan Jardine, all rights reserved. * * This source file is free software, under either the GPL v2 license or a * BSD style license, as supplied with this software. - * - * This source file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * + * This source file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details. - * + * * For details please refer to: http://www.datatables.net */ diff --git a/server/src/main/resources/static/old-console/js/kill-0.0.1.js b/server/src/main/resources/static/old-console/js/kill-0.0.1.js index 9b7136bf715..f59f945879a 100644 --- a/server/src/main/resources/static/old-console/js/kill-0.0.1.js +++ b/server/src/main/resources/static/old-console/js/kill-0.0.1.js @@ -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. + */ + $(document).ready(function() { $("button").button(); diff --git a/server/src/main/resources/static/old-console/js/rules-0.0.2.js b/server/src/main/resources/static/old-console/js/rules-0.0.2.js index 6fdf6ae7262..81e77af4137 100644 --- a/server/src/main/resources/static/old-console/js/rules-0.0.2.js +++ b/server/src/main/resources/static/old-console/js/rules-0.0.2.js @@ -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. + */ + var tiers = []; var defaultDatasource = "_default"; diff --git a/server/src/main/resources/static/old-console/js/tablehelper-0.0.2.js b/server/src/main/resources/static/old-console/js/tablehelper-0.0.2.js index 071e994b9d7..9974c321af5 100644 --- a/server/src/main/resources/static/old-console/js/tablehelper-0.0.2.js +++ b/server/src/main/resources/static/old-console/js/tablehelper-0.0.2.js @@ -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. + */ + // requires jQuery, druidTable, dataTables var oTable = []; diff --git a/services/src/bin/run.sh b/services/src/bin/run.sh index 5543a6b0139..51274c866e7 100644 --- a/services/src/bin/run.sh +++ b/services/src/bin/run.sh @@ -1 +1,17 @@ +#!/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 "Hello World!" \ No newline at end of file diff --git a/upload.sh b/upload.sh index 05a24040099..2b49df1a495 100755 --- a/upload.sh +++ b/upload.sh @@ -1,4 +1,18 @@ #!/bin/bash -e +# 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. # # Script to upload tarball of assembly build to static.druid.io for serving ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
