diff --git a/.build/build-rat.xml b/.build/build-rat.xml new file mode 100644 index 0000000000..81f2b94a31 --- /dev/null +++ b/.build/build-rat.xml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.circleci/config-2_1.yml b/.circleci/config-2_1.yml index 51e357aa8c..29ebd5e907 100644 --- a/.circleci/config-2_1.yml +++ b/.circleci/config-2_1.yml @@ -1,3 +1,21 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + version: 2.1 default_env_vars: &default_env_vars diff --git a/.circleci/config.yml b/.circleci/config.yml index 43e0f346bb..d5fc879dc6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,3 +1,21 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + version: 2 jobs: j8_jvm_upgrade_dtests: diff --git a/.circleci/generate.sh b/.circleci/generate.sh index f3f4361b15..0ba497b2d1 100755 --- a/.circleci/generate.sh +++ b/.circleci/generate.sh @@ -1,4 +1,21 @@ #!/bin/sh +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# BASEDIR=`dirname $0` diff --git a/.circleci/readme.md b/.circleci/readme.md index 965eaf7450..b3d5ab009d 100644 --- a/.circleci/readme.md +++ b/.circleci/readme.md @@ -1,3 +1,23 @@ + + # CircleCI config files ## Switching to high resource settings diff --git a/.gitignore b/.gitignore index 895483160c..cc25cbc77f 100644 --- a/.gitignore +++ b/.gitignore @@ -71,4 +71,11 @@ lib/jsr223/jython/*.jar lib/jsr223/jython/cachedir lib/jsr223/scala/*.jar -.ant_targets \ No newline at end of file +.ant_targets + +# Python virtual environment +venv/ + +# build-scripts will put cassandra-builds and cassandra-dtest into the directory +cassandra-builds/ +cassandra-dtest/ diff --git a/.rat-excludes b/.rat-excludes deleted file mode 100644 index 6df36a5e6a..0000000000 --- a/.rat-excludes +++ /dev/null @@ -1,33 +0,0 @@ -**/*.avpr -debian/** -.classpath -.rat-excludes -**/.project -**/.pydevproject -CHANGES.txt -README.asc -.git/** -**/*.json -**/*.patch -interface/*/gen-*/** -src/gen-java/** -build/** -lib/licenses/*.txt -.settings/** -**/cassandra.yaml -**/cassandra-topology.yaml -**/metrics-reporter-config-sample.yaml -**/*.db -.externalToolBuilders/** -test/data/serialization/*/* -**/*.wpr -doc/** -build.properties.default -test/data/** -examples/triggers/build.xml -examples/triggers/conf/* -examples/hadoop_word_count/conf/log4j.properties -pylib/cqlshlib/test/** -src/resources/org/apache/cassandra/config/version.properties -conf/hotspot_compiler -**/*-example.yaml diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8366579ad2..2251fdf5db 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,23 @@ + + # Apache Cassandra and Pull Requests Apache Cassandra doesn't use GitHub pull requests as part of the development process. diff --git a/build.xml b/build.xml index c6603a0651..a50e9afe43 100644 --- a/build.xml +++ b/build.xml @@ -739,20 +739,6 @@ - - - - - - - - - - - - - Generating Thrift Python code from ${basedir}/interface/cassandra.thrift... @@ -796,7 +782,7 @@ depends="maven-ant-tasks-retrieve-build,build-project" description="Compile Cassandra classes"/> - @@ -1161,43 +1147,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unknown licenses: See build/rat-report.log. - - - - RAT: invoking addLicense to write missing headers - - - - - - - - @@ -2070,4 +1983,5 @@ + diff --git a/debian/cassandra.in.sh b/debian/cassandra.in.sh index 8fcaf9cc9e..f98d430c52 100644 --- a/debian/cassandra.in.sh +++ b/debian/cassandra.in.sh @@ -1,3 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # The directory where Cassandra's configs live (required) CASSANDRA_CONF=/etc/cassandra diff --git a/doc/cql3/CQL.textile b/doc/cql3/CQL.textile index 6a05c4f40d..de25edbf0c 100644 --- a/doc/cql3/CQL.textile +++ b/doc/cql3/CQL.textile @@ -1,3 +1,23 @@ + + h1. Cassandra Query Language (CQL) v3.4.0 diff --git a/doc/native_protocol_v3.spec b/doc/native_protocol_v3.spec index 0d7f94da71..f53a537a01 100644 --- a/doc/native_protocol_v3.spec +++ b/doc/native_protocol_v3.spec @@ -1,3 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# CQL BINARY PROTOCOL v3 diff --git a/doc/native_protocol_v4.spec b/doc/native_protocol_v4.spec index dd0623398f..fae4864949 100644 --- a/doc/native_protocol_v4.spec +++ b/doc/native_protocol_v4.spec @@ -1,3 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# CQL BINARY PROTOCOL v4 diff --git a/pylib/cqlshlib/test/test_keyspace_init.cql b/pylib/cqlshlib/test/test_keyspace_init.cql index c64163a8ef..06f087b8b2 100644 --- a/pylib/cqlshlib/test/test_keyspace_init.cql +++ b/pylib/cqlshlib/test/test_keyspace_init.cql @@ -1,3 +1,21 @@ +/* +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +*/ + CREATE TABLE has_all_types ( num int PRIMARY KEY, intcol int, diff --git a/redhat/README.md b/redhat/README.md index cab42a752e..a1f6f15e7e 100644 --- a/redhat/README.md +++ b/redhat/README.md @@ -1,3 +1,23 @@ + + # Apache Cassandra rpmbuild ### Requirements: diff --git a/redhat/cassandra.in.sh b/redhat/cassandra.in.sh index ca71782093..d4cf3d6d25 100644 --- a/redhat/cassandra.in.sh +++ b/redhat/cassandra.in.sh @@ -1,3 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # The directory where Cassandra's configs live (required) CASSANDRA_CONF=/etc/cassandra/conf diff --git a/redhat/cassandra.spec b/redhat/cassandra.spec index bd4cdc9b8a..fade00f102 100644 --- a/redhat/cassandra.spec +++ b/redhat/cassandra.spec @@ -1,3 +1,21 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + %define __jar_repack %{nil} # Turn off the brp-python-bytecompile script %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') diff --git a/test/conf/commitlog_compression.yaml b/test/conf/commitlog_compression.yaml index 9849d7b15c..d909904477 100644 --- a/test/conf/commitlog_compression.yaml +++ b/test/conf/commitlog_compression.yaml @@ -1,2 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + commitlog_compression: - class_name: LZ4Compressor diff --git a/test/data/bloom-filter/ka/foo.cql b/test/data/bloom-filter/ka/foo.cql index c4aed6ab82..1a3ad26796 100644 --- a/test/data/bloom-filter/ka/foo.cql +++ b/test/data/bloom-filter/ka/foo.cql @@ -1,3 +1,21 @@ +/* +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +*/ + create keyspace foo with replication = {'class':'SimpleStrategy', 'replication_factor':1}; use foo ; create table atable ( pk int primary key, val int); diff --git a/test/resources/byteman/stream_failure.btm b/test/resources/byteman/stream_failure.btm index e40f7fe25e..be4f0e58e6 100644 --- a/test/resources/byteman/stream_failure.btm +++ b/test/resources/byteman/stream_failure.btm @@ -1,4 +1,21 @@ # +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# # Inject streaming failure # # Before start streaming files in `StreamSession#prepare()` method, diff --git a/tools/stress/src/org/apache/cassandra/stress/WorkManager.java b/tools/stress/src/org/apache/cassandra/stress/WorkManager.java index 78d4176128..749ca44591 100644 --- a/tools/stress/src/org/apache/cassandra/stress/WorkManager.java +++ b/tools/stress/src/org/apache/cassandra/stress/WorkManager.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.apache.cassandra.stress; import java.util.concurrent.atomic.AtomicLong;