From 028354eea8871f66dc5d0b446602fb6efa703d7e Mon Sep 17 00:00:00 2001 From: Slim Bouguerra Date: Tue, 18 Sep 2018 08:39:26 -0700 Subject: [PATCH] Adding licenses and enable apache-rat-plugin. (#6215) * Adding licenses and enable apache-rat-plugi. Change-Id: I4685a2d9f1e147855dba69329b286f2d5bee3c18 * restore the copywrite of demo_table and add it to the list of allowed ones Change-Id: I2a9efde6f4b984bc1ac90483e90d98e71f818a14 * revirew comments Change-Id: I0256c930b7f9a5bb09b44b5e7a149e6ec48cb0ca * more fixup Change-Id: I1355e8a2549e76cd44487abec142be79bec59de2 * align Change-Id: I70bc47ecb577bdf6b91639dd91b6f5642aa6b02f --- examples/bin/broker.sh | 14 +++ examples/bin/coordinator.sh | 14 +++ examples/bin/generate-example-metrics | 17 ++++ examples/bin/historical.sh | 14 +++ examples/bin/init | 14 +++ examples/bin/middleManager.sh | 14 +++ examples/bin/node.sh | 14 +++ examples/bin/overlord.sh | 14 +++ .../tutorial/hadoop/docker/Dockerfile | 16 ++++ .../tutorial/hadoop/docker/bootstrap.sh | 14 +++ .../hadoop/docker/core-site.xml.template | 20 +++- .../tutorial/hadoop/docker/hdfs-site.xml | 18 ++++ .../tutorial/hadoop/docker/mapred-site.xml | 18 ++++ .../tutorial/hadoop/docker/yarn-site.xml | 18 ++++ .../extendedset/intset/ConciseSetUtils.java | 20 ++++ .../druid/extendedset/utilities/IntList.java | 20 ++++ .../data/input/influx/InfluxLineProtocol.g4 | 18 ++++ .../indexer_static/js/console-0.0.1.js | 18 ++++ integration-tests/docker-base/Dockerfile | 16 ++++ integration-tests/docker-base/setup.sh | 14 +++ integration-tests/docker/Dockerfile | 15 +++ integration-tests/run_cluster.sh | 18 +++- integration-tests/stop_cluster.sh | 16 ++++ pom.xml | 93 +++++++++++++++++++ .../static/old-console/css/config.css | 18 ++++ .../static/old-console/css/enable.css | 18 ++++ .../static/old-console/css/index.css | 18 ++++ .../static/old-console/css/rules.css | 18 ++++ .../static/old-console/css/style.css | 18 ++++ .../static/old-console/js/config-0.0.2.js | 18 ++++ .../static/old-console/js/druidTable-0.0.1.js | 18 ++++ .../static/old-console/js/enable-0.0.1.js | 18 ++++ .../static/old-console/js/handlers-0.0.2.js | 18 ++++ .../static/old-console/js/init-0.0.2.js | 18 ++++ .../old-console/js/jquery.dataTables-1.8.2.js | 10 +- .../static/old-console/js/kill-0.0.1.js | 18 ++++ .../static/old-console/js/rules-0.0.2.js | 18 ++++ .../old-console/js/tablehelper-0.0.2.js | 18 ++++ services/src/bin/run.sh | 16 ++++ upload.sh | 14 +++ 40 files changed, 734 insertions(+), 7 deletions(-) diff --git a/examples/bin/broker.sh b/examples/bin/broker.sh index 5ad12ac4e4..188bf11862 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 d7425b1beb..8e105c8b62 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 57f78fe4c5..3bec6afeb6 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 cee469b6f2..dc2b9e2310 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 d849b44720..eba2b5a1cf 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 da20a19547..345d2fa623 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 cb5f7a7c7a..5ad974861e 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 a1fb0089c1..2980ef1815 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 31aeeb4fe8..1801da2bc1 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 4cf0e55b13..fc962157a9 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 00ab59528b..256de4f098 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 @@ - + + + fs.defaultFS hdfs://HOSTNAME:9000 diff --git a/examples/quickstart/tutorial/hadoop/docker/hdfs-site.xml b/examples/quickstart/tutorial/hadoop/docker/hdfs-site.xml index d29556190a..18758b97ff 100644 --- a/examples/quickstart/tutorial/hadoop/docker/hdfs-site.xml +++ b/examples/quickstart/tutorial/hadoop/docker/hdfs-site.xml @@ -1,3 +1,21 @@ + + dfs.replication diff --git a/examples/quickstart/tutorial/hadoop/docker/mapred-site.xml b/examples/quickstart/tutorial/hadoop/docker/mapred-site.xml index dba582f1c3..96aa1fa9ec 100644 --- a/examples/quickstart/tutorial/hadoop/docker/mapred-site.xml +++ b/examples/quickstart/tutorial/hadoop/docker/mapred-site.xml @@ -1,3 +1,21 @@ + + mapreduce.framework.name diff --git a/examples/quickstart/tutorial/hadoop/docker/yarn-site.xml b/examples/quickstart/tutorial/hadoop/docker/yarn-site.xml index becf69465f..68a0ecfa60 100644 --- a/examples/quickstart/tutorial/hadoop/docker/yarn-site.xml +++ b/examples/quickstart/tutorial/hadoop/docker/yarn-site.xml @@ -1,3 +1,21 @@ + + yarn.nodemanager.aux-services 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 d0c4a55ff1..8e72a3c15e 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 + * + * + * + * 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 6bdd288fe3..768de30844 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 + * + * + * + * 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 89b419f09a..40bdb095c7 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 a3bf8e6a3f..b4994f9c91 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 6309f06eb0..7be192f3b2 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 b9da52271c..9033a9de8f 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 c66ecfdf5b..e0f104f1d1 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 9ef0640ef1..e5d3a25900 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 d242cf47c6..fb09ec2067 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 f95fb58843..3419fcd460 100644 --- a/pom.xml +++ b/pom.xml @@ -1016,6 +1016,99 @@ + + org.apache.rat + apache-rat-plugin + 0.12 + + + verify + + check + + + + + ${project.basedir}/rat + + + MIT + MIT JQyery + + + Copyright 2012 jQuery Foundation and other contributors; Licensed MIT + jQuery Foundation, Inc. | jquery.org/license + + + + Underscore + Underscore + + + Underscore is freely distributable under the MIT license + + + + Allan Jardine + Allan Jardine + + + Copyright 2009 Allan Jardine. All Rights Reserved + + + + Allan Jardine + Allan Jardine + + + Copyright 2009 Allan Jardine. All Rights Reserved + Copyright 2008-2011 Allan Jardine + GPL v2 or BSD 3 point style + + + + + + + MIT JQyery + + + Underscore + + + Allan Jardine + + + + + **/*.md + publications/** + docs/** + + codestyle/* + eclipse.importorder + + **/javax.annotation.processing.Processor + **/org.apache.druid.initialization.DruidModule + **/org/apache/druid/math/expr/antlr/Expr.g4 + **/dependency-reduced-pom.xml + + **/target/** + **/build/** + **/test/resources/** + **/src/test/avro/** + **/src/test/thrift/** + .travis.yml + + **/*.json + **/jvm.config + **/quickstart/protobuf/** + **/tutorial/conf/** + **/derby.log + **/docker/** + + + 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 2c5f3e98b8..2f8c1f432c 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 4c1a4cdb9b..dfcc3eddec 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 d5843ca61e..cac06952de 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 dcd52e2706..fb798fabeb 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 f9e50c4941..18c4232033 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 3f6b3a918e..8c4c8cf77c 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 7b73f31537..a6264af9c2 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 eacc5d42bb..ba2c18b32a 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 139b1447db..bfae9c4577 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 fc6b07f01c..e39a2fdc36 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 42292c59dd..368b72f5f5 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: allan.jardine@sprymedia.co.uk - * + * * 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 9b7136bf71..f59f945879 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 6fdf6ae726..81e77af413 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 071e994b9d..9974c321af 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 5543a6b013..51274c866e 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 05a2404009..2b49df1a49 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 -- GitLab