Merge branch 'cassandra-3.11' into cassandra-4.0

* cassandra-3.11:
  Missing license info and headers
This commit is contained in:
Mick Semb Wever 2023-08-31 22:37:33 +02:00
commit aa2494b30b
No known key found for this signature in database
GPG Key ID: E91335D77E3E87CB
29 changed files with 513 additions and 50 deletions

View File

@ -27,7 +27,7 @@
</target> </target>
<target name="_build_ratinclude" depends="_rat_init"> <target name="_build_ratinclude" depends="_rat_init">
<exec executable="git" failifexecutionfails="false" failonerror="false" resultproperty="git.success" output="${build.dir}/.versioned_files"> <exec executable="git" failifexecutionfails="false" failonerror="false" resultproperty="git.success" output="${build.dir}/.ratinclude">
<arg line="ls-tree -r HEAD --name-only"/> <arg line="ls-tree -r HEAD --name-only"/>
</exec> </exec>
<condition property="rat.skip" value="true"> <condition property="rat.skip" value="true">
@ -37,48 +37,59 @@
</condition> </condition>
</target> </target>
<target name="_rat_copy_versioned_files" depends="_build_ratinclude" unless="${rat.skip}"> <target name="rat-check" depends="_build_ratinclude" unless="rat.skip" description="License checks on source" >
<copy file="${build.dir}/.versioned_files" tofile="${build.dir}/.ratinclude">
<filterchain>
<linecontainsregexp>
<regexp pattern=".*\.(java|py|sh|xml|spec|md|iml|bat|btm|cql|css|g|html|jflex|jks|mod|name|pom|textile|yml|yaml|MIDRES|HIGHRES|LOWRES)$"/>
</linecontainsregexp>
</filterchain>
</copy>
</target>
<target name="rat-check" depends="_rat_copy_versioned_files" unless="${rat.skip}" description="License checks on source" >
<rat:report reportFile="${build.dir}/rat.txt"> <rat:report reportFile="${build.dir}/rat.txt">
<fileset dir="." includesfile="${build.dir}/.ratinclude"> <fileset dir="." includesfile="${build.dir}/.ratinclude">
<!-- Config files with not much creativity --> <!-- Config files with not much creativity -->
<exclude name="**/ide/**/*"/> <exclude name=".asf.yaml"/>
<exclude name="**/metrics-reporter-config-sample.yaml"/> <exclude name="**/cassandra*.yaml"/>
<exclude name="**/cassandra.yaml"/> <exclude name="conf/metrics-reporter-config-sample.yaml"/>
<exclude name="**/cassandra-murmur.yaml"/> <exclude NAME="doc/antora.yml"/>
<exclude name="**/cassandra-seeds.yaml"/> <exclude name="ide/**/*"/>
<exclude NAME="**/doc/antora.yml"/> <exclude name="pylib/cqlshlib/test/config/sslhandling*.config"/>
<exclude name="**/test/conf/cassandra.yaml"/> <exclude NAME="src/resources/org/apache/cassandra/cql3/reserved_keywords.txt"/>
<exclude name="**/test/conf/cassandra_deprecated_parameters_names.yaml"/> <exclude NAME="src/resources/org/apache/cassandra/index/sasi/analyzer/filter/*.txt"/>
<exclude name="**/test/conf/cassandra_encryption.yaml"/> <exclude name="test/conf/cdc.yaml"/>
<exclude name="**/test/conf/cdc.yaml"/> <exclude name="test/conf/commitlog*.yaml"/>
<exclude name="**/test/conf/commitlog_compression_LZ4.yaml"/> <exclude name="test/conf/system_keyspaces_directory.yaml"/>
<exclude name="**/test/conf/commitlog_compression_Zstd.yaml"/> <exclude name="test/conf/sstableloader_with_encryption.yaml"/>
<exclude name="**/test/conf/system_keyspaces_directory.yaml"/> <exclude name="test/conf/unit-test-conf/test-native-port.yaml"/>
<exclude name="**/test/conf/sstableloader_with_encryption.yaml"/> <exclude name="tools/cqlstress-*.yaml"/>
<exclude name="**/test/conf/unit-test-conf/test-native-port.yaml"/> <!-- test data -->
<exclude name="**/test/data/jmxdump/cassandra-3.0-jmx.yaml"/> <exclude name="test/**/cassandra*.conf"/>
<exclude name="**/test/data/jmxdump/cassandra-3.11-jmx.yaml"/> <exclude name="test/**/*.csv"/>
<exclude name="**/test/data/jmxdump/cassandra-4.0-jmx.yaml"/> <exclude name="test/**/*.json"/>
<exclude name="**/tools/cqlstress-counter-example.yaml"/> <exclude name="test/**/*.txt"/>
<exclude name="**/tools/cqlstress-example.yaml"/> <exclude name="test/data/**/*.adler32"/>
<exclude name="**/tools/cqlstress-insanity-example.yaml"/> <exclude name="test/data/**/*.crc32"/>
<exclude name="**/tools/cqlstress-lwt-example.yaml"/> <exclude name="test/data/**/CommitLog-*.log"/>
<exclude name="test/data/**/*.bin"/>
<exclude name="test/data/**/*.db"/>
<exclude name="test/data/**/*.sha1"/>
<exclude name="test/data/CASSANDRA-15313/lz4-jvm-crash-failure.txt"/>
<exclude name="test/data/jmxdump/cassandra-*-jmx.yaml"/>
<!-- Documentation files --> <!-- Documentation files -->
<exclude NAME="**/doc/modules/**/*"/> <exclude name=".github/pull_request_template.md"/>
<!-- NOTICE files --> <exclude NAME="doc/modules/**/*"/>
<exclude NAME="**/NOTICE.md"/> <exclude NAME="src/java/**/*.md"/>
<!-- LICENSE files --> <exclude NAME="**/README*"/>
<exclude NAME="**/LICENSE.md"/> <exclude NAME="CHANGES.txt"/>
<exclude NAME="CASSANDRA-14092.txt"/>
<exclude NAME="debian/TODO"/>
<!-- legal files -->
<exclude NAME="NOTICE.txt"/>
<exclude NAME="LICENSE.txt"/>
<!-- misc -->
<exclude NAME="**/*.patch"/>
<exclude NAME="**/*.diff"/>
<exclude NAME="debian/cassandra.bash-completion"/>
<exclude NAME="debian/cassandra-sysctl.conf"/>
<exclude NAME="debian/cassandra.install"/>
<exclude NAME="debian/cassandra-tools.install"/>
<exclude NAME="debian/compat"/>
<exclude NAME="debian/control"/>
<exclude NAME="debian/dirs"/>
<exclude NAME="debian/patches/series"/>
</fileset> </fileset>
</rat:report> </rat:report>
<exec executable="grep" outputproperty="rat.failed.files" failifexecutionfails="false"> <exec executable="grep" outputproperty="rat.failed.files" failifexecutionfails="false">

13
.jenkins/Jenkinsfile vendored
View File

@ -6,14 +6,13 @@
// "License"); you may not use this file except in compliance // "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at // with the License. You may obtain a copy of the License at
// //
// https://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, // Unless required by applicable law or agreed to in writing, software
// software distributed under the License is distributed on an // distributed under the License is distributed on an "AS IS" BASIS,
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// KIND, either express or implied. See the License for the // Se# Licensed to the Apache Software Foundation (ASF) under onee the License for the specific language governing permissions and
// specific language governing permissions and limitations // limitations under the License.
// under the License.
// //
// //
// Jenkins declaration of how to build and test the current codebase. // Jenkins declaration of how to build and test the current codebase.

View File

@ -209,11 +209,11 @@
code for these subcomponents is subject to the terms and code for these subcomponents is subject to the terms and
conditions of the following licenses. conditions of the following licenses.
This product bundles a file (AbstractIterator.java) from Chronicle-Bytes, This product bundles a file (Dump.java) from Chronicle-Bytes,
copyright higherfrequencytrading.com, which is available under an copyright higherfrequencytrading.com, which is available under an
Apache License version 2. Apache License version 2.
This product bundles a file (AbstractIterator.java) from Guava, This product bundles a file (AbstractGuavaIterator.java) from Guava,
copyright The Guava Authors, which is available under an copyright The Guava Authors, which is available under an
Apache License version 2. Apache License version 2.
@ -221,7 +221,7 @@
copyright The Android Open Source Project, which is available under an copyright The Android Open Source Project, which is available under an
Apache License version 2. Apache License version 2.
This product bundles several files (LongTimSort.java) from PATRICIA Trie This product bundles several files (PatriciaTrie.java) from PATRICIA Trie
copyright Roger Kapsi and Sam Berlin, which is available under an copyright Roger Kapsi and Sam Berlin, which is available under an
Apache License version 2. Apache License version 2.
@ -238,3 +238,15 @@
This product bundles code (internalOffer) that is written by Doug Lea and This product bundles code (internalOffer) that is written by Doug Lea and
Martin Buchholz available under a Creative Commons zero license. Martin Buchholz available under a Creative Commons zero license.
This product bundles code (cassandra-driver-internal-only-*.zip) from the Datastax Java Driver
copyright DataStax, Inc., which is available under an Apache License version 2.
This product bundles code (cassandra-driver-internal-only-*.zip) from python-smhasher
copyright Austin Appleby and Patrick Hensley, which is available under a MIT license.
This product bundles code (cassandra-driver-internal-only-*.zip) from the OrderedDict
copyright Raymond Hettinger, which is available under a MIT license.
This product bundles code (cassandra-driver-internal-only-*.zip) from the MagnetoDB
copyright Mirantis Inc., which is available under an Apache License version 2.

View File

@ -1,4 +1,23 @@
#
# 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.
#
#
# Maven2 Repository Locations (you can override these in "build.properties" to point to a local proxy, e.g. Nexus) # Maven2 Repository Locations (you can override these in "build.properties" to point to a local proxy, e.g. Nexus)
#
artifact.remoteRepository.central: https://repo1.maven.org/maven2 artifact.remoteRepository.central: https://repo1.maven.org/maven2
artifact.remoteRepository.apache: https://repo.maven.apache.org/maven2 artifact.remoteRepository.apache: https://repo.maven.apache.org/maven2

View File

@ -1,3 +1,19 @@
// 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.
//
// Delegates authentication to Cassandra's configured IAuthenticator // Delegates authentication to Cassandra's configured IAuthenticator
CassandraLogin { CassandraLogin {
org.apache.cassandra.auth.CassandraLoginModule REQUIRED; org.apache.cassandra.auth.CassandraLoginModule REQUIRED;

View File

@ -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.
#
#
########################################################################### ###########################################################################
# jvm-clients.options # # jvm-clients.options #
# # # #

View File

@ -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.
#
#
########################################################################### ###########################################################################
# jvm-server.options # # jvm-server.options #
# # # #

View File

@ -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.
#
#
########################################################################### ###########################################################################
# jvm11-clients.options # # jvm11-clients.options #
# # # #

View File

@ -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.
#
#
########################################################################### ###########################################################################
# jvm11-server.options # # jvm11-server.options #
# # # #

View File

@ -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.
#
#
########################################################################### ###########################################################################
# jvm8-clients.options # # jvm8-clients.options #
# # # #

View File

@ -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.
#
#
########################################################################### ###########################################################################
# jvm8-server.options # # jvm8-server.options #
# # # #

17
debian/cassandra.conf vendored
View File

@ -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.
#
#
# Provided by the cassandra package # Provided by the cassandra package
cassandra - memlock unlimited cassandra - memlock unlimited
cassandra - nofile 100000 cassandra - nofile 100000

View File

@ -1,4 +1,23 @@
#!/bin/sh #!/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.
#
#
# postinst script for cassandra # postinst script for cassandra
set -e set -e

18
debian/default vendored
View File

@ -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.
#
#
# NOTICE: See also /etc/cassandra/cassandra-env.sh # NOTICE: See also /etc/cassandra/cassandra-env.sh
# EXTRA_CLASSPATH provides the means to extend Cassandra's classpath with # EXTRA_CLASSPATH provides the means to extend Cassandra's classpath with

18
debian/init vendored
View File

@ -1,4 +1,22 @@
#! /bin/sh #! /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.
#
#
#
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: cassandra # Provides: cassandra
# Required-Start: $remote_fs $network $named $time # Required-Start: $remote_fs $network $named $time

View File

@ -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.
#
#
have nodetool && have cqlsh && have nodetool && have cqlsh &&
{ {

19
debian/rules vendored
View File

@ -1,5 +1,22 @@
#!/usr/bin/make -f #!/usr/bin/make -f
#
# 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.
#
#
# Uncomment to enable verbose mode. # Uncomment to enable verbose mode.
#export DH_VERBOSE=1 #export DH_VERBOSE=1

View File

@ -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.
#
#
# These options come from # These options come from
# http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.jdt.core.compiler/ecj/4.2.1/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java#CompilerOptions # http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.jdt.core.compiler/ecj/4.2.1/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java#CompilerOptions

View File

@ -1,2 +1,19 @@
# 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.
#
#
FROM ubuntu:bionic FROM ubuntu:bionic
RUN apt-get update && apt-get install -y python-minimal RUN apt-get update && apt-get install -y python-minimal

View File

@ -1,2 +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.
#
FROM ubuntu:bionic FROM ubuntu:bionic
RUN apt-get update && apt-get install -y python3-minimal && update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1 RUN apt-get update && apt-get install -y python3-minimal && update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1

View File

@ -1,2 +1,13 @@
# 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:bionic FROM ubuntu:bionic
RUN apt-get update && apt-get install -y python3.7-minimal && update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1 RUN apt-get update && apt-get install -y python3.7-minimal && update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1

View File

@ -1,2 +1,13 @@
# 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:bionic FROM ubuntu:bionic
RUN apt-get update && apt-get install -y python3.8-minimal && update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1 RUN apt-get update && apt-get install -y python3.8-minimal && update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1

View File

@ -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.
#
#
[nosetests] [nosetests]
verbosity=3 verbosity=3
detailed-errors=1 detailed-errors=1

View File

@ -1,2 +1,19 @@
# 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.
#
#
[pytest] [pytest]
addopts = --junit-xml=nosetests.xml addopts = --junit-xml=nosetests.xml

View File

@ -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.
#
#
#
# See python driver docs: six have to be installed before # See python driver docs: six have to be installed before
# cythonizing the driver, perhaps only on old pips. # cythonizing the driver, perhaps only on old pips.
# http://datastax.github.io/python-driver/installation.html#cython-based-extensions # http://datastax.github.io/python-driver/installation.html#cython-based-extensions

View File

@ -1,5 +1,22 @@
#!/bin/bash #!/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.
#
#
# /etc/init.d/cassandra # /etc/init.d/cassandra
# #
# Startup script for Cassandra # Startup script for Cassandra

View File

@ -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.
#
#
cassandra - memlock unlimited cassandra - memlock unlimited
cassandra - nofile 100000 cassandra - nofile 100000
cassandra - nproc 32768 cassandra - nproc 32768

View File

@ -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.
#
#
# NOTICE: See also /etc/cassandra/cassandra-env.sh # NOTICE: See also /etc/cassandra/cassandra-env.sh
# EXTRA_CLASSPATH provides the means to extend Cassandra's classpath with # EXTRA_CLASSPATH provides the means to extend Cassandra's classpath with

View File

@ -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 #package_name#; package #package_name#;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;