├── .asf.yaml ├── .github └── workflows │ └── maven.yaml ├── .gitignore ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── NOTICE ├── README.md ├── bin ├── agitator ├── build ├── cingest ├── gcs ├── mapred ├── monitor ├── performance └── rwalk ├── conf ├── .gitignore ├── accumulo-testing.properties ├── cluster-control.sh.uno ├── env.sh └── log4j2.properties ├── contrib └── terraform-testing-infrastructure │ ├── .gitignore │ ├── QUICKSTART.md │ ├── README.md │ ├── aws │ ├── main.tf │ └── variables.tf │ ├── azure │ ├── main.tf │ └── variables.tf │ ├── modules │ ├── cloud-init-config │ │ ├── files │ │ │ ├── azure-format-lvm-data-disk.sh │ │ │ └── update-hosts-genders.sh │ │ ├── main.tf │ │ └── templates │ │ │ └── cloud-init.tftpl │ ├── config-files │ │ ├── files │ │ │ └── grafana_dashboards │ │ │ │ ├── accumulo-dashboard.json │ │ │ │ └── accumulo-dashboard.yaml │ │ ├── main.tf │ │ └── templates │ │ │ ├── accumulo-client-properties.tftpl │ │ │ ├── accumulo-properties.tftpl │ │ │ ├── cluster.yaml.tftpl │ │ │ ├── core-site.xml.tftpl │ │ │ ├── genders.tftpl │ │ │ ├── hadoop-datanode.service.tftpl │ │ │ ├── hadoop-namenode.service.tftpl │ │ │ ├── hadoop_bash_profile.tftpl │ │ │ ├── hadoop_bashrc.tftpl │ │ │ ├── hdfs-site.xml.tftpl │ │ │ ├── hosts.tftpl │ │ │ ├── initialize_accumulo.sh.tftpl │ │ │ ├── initialize_hadoop.sh.tftpl │ │ │ ├── install_sw.sh.tftpl │ │ │ ├── telegraf.conf.tftpl │ │ │ ├── yarn-nodemanager.service.tftpl │ │ │ ├── yarn-resourcemanager.service.tftpl │ │ │ ├── yarn-site.xml.tftpl │ │ │ ├── zoo.cfg.tftpl │ │ │ └── zookeeper.service.tftpl │ ├── configure-nodes │ │ └── main.tf │ └── upload-software │ │ └── main.tf │ └── shared_state │ ├── aws │ ├── main.tf │ └── variables.tf │ └── azure │ ├── main.tf │ └── variables.tf ├── docs ├── bulk-test.md ├── gcs.md └── ingest-test.md ├── libexec └── hdfs-agitator.pl ├── pom.xml ├── src ├── build │ ├── checkstyle │ │ ├── checkstyle.xml │ │ └── import-control.xml │ ├── eclipse-codestyle.xml │ └── license-header.txt ├── main │ ├── docker │ │ └── docker-entry │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── accumulo │ │ │ └── testing │ │ │ ├── KerberosHelper.java │ │ │ ├── TestEnv.java │ │ │ ├── TestProps.java │ │ │ ├── cli │ │ │ ├── ClientOpts.java │ │ │ └── Help.java │ │ │ ├── continuous │ │ │ ├── BulkIngest.java │ │ │ ├── ContinuousBatchWalker.java │ │ │ ├── ContinuousEnv.java │ │ │ ├── ContinuousIngest.java │ │ │ ├── ContinuousInputFormat.java │ │ │ ├── ContinuousMoru.java │ │ │ ├── ContinuousOpts.java │ │ │ ├── ContinuousScanner.java │ │ │ ├── ContinuousUtil.java │ │ │ ├── ContinuousVerify.java │ │ │ ├── ContinuousWalk.java │ │ │ ├── CreateTable.java │ │ │ ├── FlakyBulkBatchWriter.java │ │ │ ├── ManySplits.java │ │ │ ├── TimeBinner.java │ │ │ └── UndefinedAnalyzer.java │ │ │ ├── gcs │ │ │ ├── Candidate.java │ │ │ ├── Collector.java │ │ │ ├── GcsEnv.java │ │ │ ├── Generator.java │ │ │ ├── GroupRef.java │ │ │ ├── Item.java │ │ │ ├── ItemRef.java │ │ │ ├── ItemState.java │ │ │ ├── Mutator.java │ │ │ ├── Persistence.java │ │ │ ├── Setup.java │ │ │ └── Verifier.java │ │ │ ├── healthprobe │ │ │ ├── Monitor.java │ │ │ └── MonitorOpts.java │ │ │ ├── ingest │ │ │ ├── BulkImportDirectory.java │ │ │ ├── TestIngest.java │ │ │ └── VerifyIngest.java │ │ │ ├── mapreduce │ │ │ ├── RowHash.java │ │ │ └── TeraSortIngest.java │ │ │ ├── merkle │ │ │ ├── MerkleTree.java │ │ │ ├── MerkleTreeNode.java │ │ │ ├── RangeSerialization.java │ │ │ ├── cli │ │ │ │ ├── CompareTables.java │ │ │ │ ├── ComputeRootHash.java │ │ │ │ ├── GenerateHashes.java │ │ │ │ └── ManualComparison.java │ │ │ ├── ingest │ │ │ │ └── RandomWorkload.java │ │ │ ├── package-info.java │ │ │ └── skvi │ │ │ │ └── DigestIterator.java │ │ │ ├── performance │ │ │ ├── Environment.java │ │ │ ├── Parameter.java │ │ │ ├── PerformanceTest.java │ │ │ ├── Report.java │ │ │ ├── Result.java │ │ │ ├── Stats.java │ │ │ ├── SystemConfiguration.java │ │ │ ├── impl │ │ │ │ ├── Compare.java │ │ │ │ ├── ContextualReport.java │ │ │ │ ├── Csv.java │ │ │ │ ├── ListTests.java │ │ │ │ ├── MergeSiteConfig.java │ │ │ │ └── PerfTestRunner.java │ │ │ ├── tests │ │ │ │ ├── ConditionalMutationsPT.java │ │ │ │ ├── DurabilityWriteSpeedPT.java │ │ │ │ ├── GroupCommitPT.java │ │ │ │ ├── HerdingPT.java │ │ │ │ ├── HighSplitCreationPT.java │ │ │ │ ├── ProbabilityFilter.java │ │ │ │ ├── RandomCachedLookupsPT.java │ │ │ │ ├── RollWALPT.java │ │ │ │ ├── ScanExecutorPT.java │ │ │ │ ├── ScanFewFamiliesPT.java │ │ │ │ ├── SplitBalancingPT.java │ │ │ │ ├── TableDeletionDuringSplitPT.java │ │ │ │ ├── TimedScanDispatcher.java │ │ │ │ ├── YieldingFilter.java │ │ │ │ └── YieldingScanExecutorPT.java │ │ │ └── util │ │ │ │ ├── TestData.java │ │ │ │ └── TestExecutor.java │ │ │ ├── randomwalk │ │ │ ├── Fixture.java │ │ │ ├── Framework.java │ │ │ ├── Module.java │ │ │ ├── Node.java │ │ │ ├── RandWalkEnv.java │ │ │ ├── State.java │ │ │ ├── Test.java │ │ │ ├── bulk │ │ │ │ ├── BulkImportTest.java │ │ │ │ ├── BulkMinusOne.java │ │ │ │ ├── BulkPlusOne.java │ │ │ │ ├── BulkTest.java │ │ │ │ ├── Compact.java │ │ │ │ ├── ConsistencyCheck.java │ │ │ │ ├── Merge.java │ │ │ │ ├── SelectiveBulkTest.java │ │ │ │ ├── SelectiveQueueing.java │ │ │ │ ├── Setup.java │ │ │ │ ├── Split.java │ │ │ │ └── Verify.java │ │ │ ├── concurrent │ │ │ │ ├── AddSplits.java │ │ │ │ ├── BatchScan.java │ │ │ │ ├── BatchWrite.java │ │ │ │ ├── BulkImport.java │ │ │ │ ├── ChangeAuthorizations.java │ │ │ │ ├── ChangePermissions.java │ │ │ │ ├── CheckPermission.java │ │ │ │ ├── CloneTable.java │ │ │ │ ├── Compact.java │ │ │ │ ├── ConcurrentFixture.java │ │ │ │ ├── Config.java │ │ │ │ ├── CreateNamespace.java │ │ │ │ ├── CreateTable.java │ │ │ │ ├── CreateUser.java │ │ │ │ ├── DeleteNamespace.java │ │ │ │ ├── DeleteRange.java │ │ │ │ ├── DeleteTable.java │ │ │ │ ├── DropUser.java │ │ │ │ ├── IsolatedScan.java │ │ │ │ ├── ListSplits.java │ │ │ │ ├── Merge.java │ │ │ │ ├── OfflineTable.java │ │ │ │ ├── RenameNamespace.java │ │ │ │ ├── RenameTable.java │ │ │ │ ├── ScanTable.java │ │ │ │ └── Setup.java │ │ │ ├── conditional │ │ │ │ ├── Compact.java │ │ │ │ ├── Flush.java │ │ │ │ ├── Init.java │ │ │ │ ├── Merge.java │ │ │ │ ├── Setup.java │ │ │ │ ├── Split.java │ │ │ │ ├── TearDown.java │ │ │ │ ├── Transfer.java │ │ │ │ ├── Utils.java │ │ │ │ └── Verify.java │ │ │ ├── image │ │ │ │ ├── Commit.java │ │ │ │ ├── ImageFixture.java │ │ │ │ ├── ScanMeta.java │ │ │ │ ├── TableOp.java │ │ │ │ ├── Verify.java │ │ │ │ └── Write.java │ │ │ ├── multitable │ │ │ │ ├── BulkImport.java │ │ │ │ ├── Commit.java │ │ │ │ ├── CopyTable.java │ │ │ │ ├── CopyTool.java │ │ │ │ ├── CreateTable.java │ │ │ │ ├── DropTable.java │ │ │ │ ├── MultiTableFixture.java │ │ │ │ ├── OfflineTable.java │ │ │ │ └── Write.java │ │ │ ├── security │ │ │ │ ├── AlterSystemPerm.java │ │ │ │ ├── AlterTable.java │ │ │ │ ├── AlterTablePerm.java │ │ │ │ ├── Authenticate.java │ │ │ │ ├── ChangePass.java │ │ │ │ ├── CreateTable.java │ │ │ │ ├── CreateUser.java │ │ │ │ ├── DropTable.java │ │ │ │ ├── DropUser.java │ │ │ │ ├── SecurityFixture.java │ │ │ │ ├── SecurityHelper.java │ │ │ │ ├── SetAuths.java │ │ │ │ ├── TableOp.java │ │ │ │ ├── Validate.java │ │ │ │ └── WalkingSecurity.java │ │ │ ├── sequential │ │ │ │ ├── BatchVerify.java │ │ │ │ ├── Commit.java │ │ │ │ ├── MapRedVerify.java │ │ │ │ ├── MapRedVerifyTool.java │ │ │ │ ├── SequentialFixture.java │ │ │ │ └── Write.java │ │ │ ├── shard │ │ │ │ ├── BulkInsert.java │ │ │ │ ├── CloneIndex.java │ │ │ │ ├── Commit.java │ │ │ │ ├── CompactFilter.java │ │ │ │ ├── Delete.java │ │ │ │ ├── DeleteSomeDocs.java │ │ │ │ ├── DeleteWord.java │ │ │ │ ├── ExportIndex.java │ │ │ │ ├── Flush.java │ │ │ │ ├── Grep.java │ │ │ │ ├── Insert.java │ │ │ │ ├── Merge.java │ │ │ │ ├── Reindex.java │ │ │ │ ├── Search.java │ │ │ │ ├── ShardFixture.java │ │ │ │ ├── SortTool.java │ │ │ │ ├── Split.java │ │ │ │ └── VerifyIndex.java │ │ │ └── unit │ │ │ │ ├── CreateTable.java │ │ │ │ ├── DeleteTable.java │ │ │ │ ├── Ingest.java │ │ │ │ ├── Scan.java │ │ │ │ └── Verify.java │ │ │ ├── scalability │ │ │ ├── Ingest.java │ │ │ ├── Run.java │ │ │ └── ScaleTest.java │ │ │ ├── stress │ │ │ ├── DataWriter.java │ │ │ ├── IntArgValidator.java │ │ │ ├── RandomByteArrays.java │ │ │ ├── RandomMutations.java │ │ │ ├── RandomWithinRange.java │ │ │ ├── Scan.java │ │ │ ├── ScanOpts.java │ │ │ ├── Stream.java │ │ │ ├── Write.java │ │ │ ├── WriteOptions.java │ │ │ └── package-info.java │ │ │ └── util │ │ │ └── FastFormat.java │ └── resources │ │ └── randomwalk │ │ ├── module.xsd │ │ └── modules │ │ ├── All.xml │ │ ├── Bulk.xml │ │ ├── Concurrent.xml │ │ ├── Conditional.xml │ │ ├── Image.xml │ │ ├── LongClean.xml │ │ ├── LongDirty.xml │ │ ├── LongEach.xml │ │ ├── MultiTable.xml │ │ ├── Replication.xml │ │ ├── Security.xml │ │ ├── Sequential.xml │ │ ├── Shard.xml │ │ ├── ShortClean.xml │ │ ├── ShortDirty.xml │ │ ├── ShortEach.xml │ │ └── unit │ │ ├── Basic.xml │ │ └── Simple.xml └── test │ ├── java │ └── org │ │ └── apache │ │ └── accumulo │ │ └── testing │ │ └── randomwalk │ │ └── FrameworkTest.java │ └── resources │ └── log4j.properties └── test ├── agitator ├── .gitignore ├── README.md ├── agitator.ini.example ├── agitator.py └── hosts.example ├── automation ├── README.md ├── automateEC2.sh └── cluster_props.sh ├── bench ├── README.md ├── cloudstone1 │ ├── __init__.py │ └── cloudstone1.py ├── cloudstone2 │ ├── __init__.py │ └── cloudstone2.py ├── cloudstone3 │ ├── __init__.py │ └── cloudstone3.py ├── cloudstone4 │ ├── __init__.py │ └── cloudstone4.py ├── cloudstone5 │ ├── __init__.py │ └── cloudstone5.py ├── cloudstone6 │ ├── __init__.py │ └── cloudstone6.py ├── cloudstone7 │ ├── __init__.py │ └── cloudstone7.py ├── cloudstone8 │ ├── __init__.py │ └── cloudstone8.py ├── lib │ ├── Benchmark.py │ ├── CreateTablesBenchmark.py │ ├── IngestBenchmark.py │ ├── RowHashBenchmark.py │ ├── TableSplitsBenchmark.py │ ├── TeraSortBenchmark.py │ ├── __init__.py │ ├── cloudshell.py │ ├── data │ │ ├── fastsplits │ │ ├── mediumsplits │ │ ├── slowsplits │ │ └── splits │ ├── options.py │ ├── path.py │ ├── runner.py │ ├── tservers.py │ └── util.py └── run.py ├── compat ├── diffAPI.pl └── japi-compliance │ ├── README.md │ ├── exclude_classes.txt │ ├── japi-accumulo-1.5.0.xml │ ├── japi-accumulo-1.5.1.xml │ ├── japi-accumulo-1.5.2.xml │ ├── japi-accumulo-1.6.0.xml │ ├── japi-accumulo-1.6.1.xml │ ├── japi-accumulo-1.6.2.xml │ ├── japi-accumulo-1.7.0.xml │ ├── japi-accumulo-1.8.0.xml │ ├── japi-accumulo-1.9.2.xml │ └── japi-accumulo-master.xml ├── merkle-replication ├── README.md ├── configure-replication.sh ├── ingest-data.sh ├── merkle-env.sh └── verify-data.sh ├── scalability ├── README.md ├── conf │ ├── Ingest.conf │ └── site.conf └── run.py ├── scale ├── agitator.txt ├── catastrophic.txt ├── deleteLargeTable.txt └── restart.txt ├── stress ├── README.md ├── reader.sh ├── readers ├── start-readers.sh ├── start-writers.sh ├── stop-readers.sh ├── stop-writers.sh ├── stress-env.sh ├── writer.sh └── writers ├── test1 ├── README.md ├── ingest_test.sh ├── ingest_test_2.sh ├── ingest_test_3.sh ├── verify_test.sh └── verify_test_2.sh ├── test2 ├── README.md └── concurrent.sh ├── test3 ├── README.md └── bigrow.sh ├── test4 ├── README.md └── bulk_import_test.sh └── upgrade └── upgrade_test.sh /.asf.yaml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | # https://cwiki.apache.org/confluence/display/INFRA/git+-+.asf.yaml+features 21 | 22 | github: 23 | description: "Apache Accumulo Testing" 24 | homepage: https://accumulo.apache.org 25 | labels: 26 | - accumulo 27 | - big-data 28 | - hacktoberfest 29 | features: 30 | wiki: false 31 | issues: true 32 | projects: true 33 | 34 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.classpath 2 | /.project 3 | /.settings/ 4 | /target/ 5 | /*.iml 6 | /.idea 7 | /logs/ 8 | *.pyc 9 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to the Accumulo Testing Suites 23 | 24 | Contributions to the Accumulo Testing Suites can be made by creating a pull request to 25 | this repo on GitHub. 26 | 27 | Before creating a pull request, run `mvn clean verify` and run any test suite (i.e. 28 | continuous ingest, randomwalk, etc) that was changed. 29 | 30 | For general instructions on contributing to Accumulo projects, check out the 31 | [Accumulo Contributor guide][contribute]. 32 | 33 | [contribute]: https://accumulo.apache.org/contributor/ 34 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Apache Accumulo Testing 2 | Copyright 2011-2022 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (https://www.apache.org/). 6 | -------------------------------------------------------------------------------- /bin/build: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # https://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | bin_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) 22 | at_home=$(cd "$(dirname "$bin_dir")" && pwd) 23 | 24 | env_sh="$at_home/conf/env.sh" 25 | echo "Using $env_sh for setup" 26 | source $env_sh 27 | -------------------------------------------------------------------------------- /bin/mapred: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # https://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | bin_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) 22 | source "${bin_dir}/build" 23 | 24 | function print_usage() { 25 | cat < {-o test.=} 28 | 29 | Available applications: 30 | 31 | terasort Run Terasort 32 | rowhash Run RowHash 33 | EOF 34 | } 35 | 36 | if [ -z "$1" ]; then 37 | echo "ERROR: needs to be set" 38 | print_usage 39 | exit 1 40 | fi 41 | 42 | mr_package="org.apache.accumulo.testing.mapreduce" 43 | case "$1" in 44 | terasort) 45 | mr_main="${mr_package}.TeraSortIngest" 46 | ;; 47 | rowhash) 48 | mr_main="${mr_package}.RowHash" 49 | ;; 50 | *) 51 | echo "Unknown application: $1" 52 | print_usage 53 | exit 1 54 | ;; 55 | esac 56 | 57 | export CLASSPATH="$TEST_JAR_PATH:$HADOOP_API_JAR:$HADOOP_RUNTIME_JAR:$CLASSPATH" 58 | 59 | if [ -n "$HADOOP_HOME" ]; then 60 | export HADOOP_USE_CLIENT_CLASSLOADER=true 61 | "$HADOOP_HOME"/bin/yarn jar "$TEST_JAR_PATH" "$mr_main" "$TEST_PROPS" "$ACCUMULO_CLIENT_PROPS" "${@:2}" 62 | else 63 | echo "Hadoop must be installed and HADOOP_HOME must be set!" 64 | exit 1 65 | fi 66 | -------------------------------------------------------------------------------- /bin/monitor: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # https://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | bin_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) 22 | source "${bin_dir}/build" 23 | 24 | function print_usage() { 25 | cat < {-o test.=} 28 | 29 | Available applications: 30 | 31 | readprobe Runs a probe that scans random keys and reports scan timings 32 | 33 | EOF 34 | } 35 | 36 | if [ -z "$1" ]; then 37 | echo "ERROR: needs to be set" 38 | print_usage 39 | exit 1 40 | fi 41 | 42 | ci_package="org.apache.accumulo.testing.healthprobe" 43 | case "$1" in 44 | readprobe) 45 | ci_main="${ci_package}.Monitor" 46 | ;; 47 | *) 48 | echo "Unknown application: $1" 49 | print_usage 50 | exit 1 51 | ;; 52 | esac 53 | 54 | export CLASSPATH="$TEST_JAR_PATH:$HADOOP_API_JAR:$HADOOP_RUNTIME_JAR:$CLASSPATH" 55 | java $JAVA_OPTS -DINSTRUMENTATIONKEY="$INSTRUMENTATIONKEY" -Dlog4j.configurationFile="file:$TEST_LOG4J" "$ci_main" "${@:2}" "-c" "$ACCUMULO_CLIENT_PROPS" -------------------------------------------------------------------------------- /bin/rwalk: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # https://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | bin_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) 22 | at_home=$(cd "$(dirname "$bin_dir")" && pwd) 23 | source "${bin_dir}/build" 24 | 25 | function print_usage() { 26 | cat < () 29 | 30 | Runs random walk 31 | Modules listed below located in /src/main/resources/randomwalk/modules 32 | 33 | EOF 34 | find "$at_home/src/main/resources/randomwalk/modules/." -maxdepth 1 -name "*.xml" -printf "%f\n" | sort 35 | } 36 | 37 | export CLASSPATH="$TEST_JAR_PATH:$HADOOP_API_JAR:$HADOOP_RUNTIME_JAR:$CLASSPATH" 38 | 39 | randomwalk_main="org.apache.accumulo.testing.randomwalk.Framework" 40 | 41 | if [ -z "$1" ]; then 42 | echo "ERROR: needs to be set" 43 | print_usage 44 | exit 1 45 | fi 46 | 47 | java $JAVA_OPTS -Dlog4j.configurationFile="file:$TEST_LOG4J" "$randomwalk_main" "$TEST_PROPS" "$ACCUMULO_CLIENT_PROPS" "$1" 48 | -------------------------------------------------------------------------------- /conf/.gitignore: -------------------------------------------------------------------------------- 1 | /accumulo-client.properties 2 | /cluster-control.sh 3 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/.gitignore: -------------------------------------------------------------------------------- 1 | **/.terraform.lock.hcl 2 | **/.terraform/ 3 | conf/ 4 | **/terraform.tfstate 5 | **/terraform.tfstate.backup 6 | **/*.auto.tfvars.json 7 | **/*.auto.tfvars 8 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/files/grafana_dashboards/accumulo-dashboard.yaml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | apiVersion: 1 21 | providers: 22 | - name: Accumulo-Dashboard 23 | type: file 24 | options: 25 | path: /etc/grafana/provisioning/dashboards/accumulo-dashboard.json 26 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/templates/cluster.yaml.tftpl: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | manager: 21 | - ${manager_ip} 22 | 23 | monitor: 24 | - ${manager_ip} 25 | 26 | gc: 27 | - ${manager_ip} 28 | 29 | tserver: 30 | default: 31 | %{ for ip in worker_ips ~} 32 | - ${ip} 33 | %{ endfor ~} 34 | 35 | sserver: 36 | default: 37 | %{ for ip in worker_ips ~} 38 | - ${ip} 39 | %{ endfor ~} 40 | 41 | compactor: 42 | accumulo_meta: 43 | %{ for ip in worker_ips ~} 44 | - ${ip} 45 | %{ endfor ~} 46 | user_small: 47 | %{ for ip in worker_ips ~} 48 | - ${ip} 49 | %{ endfor ~} 50 | user_large: 51 | %{ for ip in worker_ips ~} 52 | - ${ip} 53 | %{ endfor ~} 54 | 55 | # 56 | # The following are used by the accumulo-cluster script to determine how many servers 57 | # to start on each host. If the following variables are not set, then they default to 1. 58 | # If the environment variable NUM_TSERVERS is set when running accumulo_cluster 59 | # then its value will override what is set in this file for tservers_per_host. Likewise if 60 | # NUM_SSERVERS is set then it will override sservers_per_host. 61 | # 62 | tservers_per_host: 1 63 | sservers_per_host: 64 | - default: 1 65 | compactors_per_host: 66 | - q1: 1 67 | - q2: 1 68 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/templates/core-site.xml.tftpl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 23 | 24 | 25 | fs.defaultFS 26 | hdfs://${manager_ip}:8000 27 | 28 | 29 | hadoop.tmp.dir 30 | ${hadoop_dir} 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/templates/genders.tftpl: -------------------------------------------------------------------------------- 1 | manager manager 2 | %{ for index, ip in worker_ips ~} 3 | worker${index} worker 4 | %{ endfor ~} 5 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/templates/hadoop-datanode.service.tftpl: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | [Unit] 21 | Description=Hadoop DataNode start/stop 22 | After=remote-fs.target 23 | 24 | [Service] 25 | Environment=JAVA_HOME=${java_11_home} 26 | Environment=HADOOP_HOME=${software_root}/hadoop/hadoop-${hadoop_version} 27 | Environment=HADOOP_LOG_DIR=${hadoop_dir}/logs 28 | User=hadoop 29 | Group=hadoop 30 | Type=oneshot 31 | ExecStart=${software_root}/hadoop/hadoop-${hadoop_version}/bin/hdfs --daemon start datanode 32 | ExecStop=${software_root}/hadoop/hadoop-${hadoop_version}/bin/hdfs --daemon stop datanode 33 | RemainAfterExit=yes 34 | 35 | [Install] 36 | WantedBy=multi-user.target 37 | 38 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/templates/hadoop-namenode.service.tftpl: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | [Unit] 21 | Description=Hadoop NameNode start/stop 22 | After=remote-fs.target 23 | 24 | [Service] 25 | Environment=JAVA_HOME=${java_11_home} 26 | Environment=HADOOP_HOME=${software_root}/hadoop/hadoop-${hadoop_version} 27 | Environment=HADOOP_LOG_DIR=${hadoop_dir}/logs 28 | User=hadoop 29 | Group=hadoop 30 | Type=oneshot 31 | ExecStart=${software_root}/hadoop/hadoop-${hadoop_version}/bin/hdfs --daemon start namenode 32 | ExecStop=${software_root}/hadoop/hadoop-${hadoop_version}/bin/hdfs --daemon stop namenode 33 | RemainAfterExit=yes 34 | 35 | [Install] 36 | WantedBy=multi-user.target 37 | 38 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/templates/hadoop_bash_profile.tftpl: -------------------------------------------------------------------------------- 1 | # .bash_profile 2 | # Get the aliases and functions 3 | if [ -f ~/.bashrc ]; then 4 | source ~/.bashrc 5 | fi 6 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/templates/hadoop_bashrc.tftpl: -------------------------------------------------------------------------------- 1 | # .bashrc 2 | if [ -f /etc/bashrc ]; then 3 | source /etc/bashrc 4 | fi 5 | export JAVA_HOME=${java_11_home} 6 | export ZOOKEEPER_HOME=${software_root}/zookeeper/apache-zookeeper-${zookeeper_version}-bin 7 | export HADOOP_HOME=${software_root}/hadoop/hadoop-${hadoop_version} 8 | export ACCUMULO_HOME=${software_root}/accumulo/accumulo-${accumulo_version} 9 | export ACCUMULO_LOG_DIR=${accumulo_dir}/logs 10 | export M2_HOME=${software_root}/apache-maven/apache-maven-${maven_version} 11 | export PDSH_RCMD_TYPE=ssh 12 | 13 | export ACCUMULO_JAVA_OPTS="-javaagent:${software_root}/accumulo/accumulo-${accumulo_version}/lib/opentelemetry-javaagent-1.32.0.jar -Dotel.traces.exporter=jaeger -Dotel.metrics.exporter=none -Dotel.logs.exporter=none -Dotel.exporter.jaeger.endpoint=http://${manager_ip}:14250 -Dtest.meter.registry.host=${manager_ip} -Dtest.meter.registry.port=8125" 14 | 15 | # User specific environment and startup programs 16 | PATH=$PATH:$HOME/.local/bin:$HOME/bin:$ZOOKEEPER_HOME/bin:$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$ACCUMULO_HOME/bin:$M2_HOME/bin 17 | export PATH 18 | ulimit -n 32768 19 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/templates/hdfs-site.xml.tftpl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 23 | 24 | 25 | dfs.datanode.synconclose 26 | true 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/templates/hosts.tftpl: -------------------------------------------------------------------------------- 1 | ${manager_ip} manager 2 | %{ for idx, ip in worker_ips ~} 3 | ${ip} worker${idx} 4 | %{ endfor ~} 5 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/templates/yarn-nodemanager.service.tftpl: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | [Unit] 21 | Description=Yarn NodeManager start/stop 22 | After=hadoop-datanode.service 23 | 24 | [Service] 25 | Environment=JAVA_HOME=${java_11_home} 26 | Environment=YARN_HOME=${software_root}/hadoop/hadoop-${hadoop_version} 27 | Environment=HADOOP_LOG_DIR=${hadoop_dir}/logs 28 | User=hadoop 29 | Group=hadoop 30 | Type=oneshot 31 | ExecStart=${software_root}/hadoop/hadoop-${hadoop_version}/bin/yarn --daemon start nodemanager 32 | ExecStop=${software_root}/hadoop/hadoop-${hadoop_version}/bin/yarn --daemon stop nodemanager 33 | RemainAfterExit=yes 34 | 35 | [Install] 36 | WantedBy=multi-user.target 37 | 38 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/templates/yarn-resourcemanager.service.tftpl: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | [Unit] 21 | Description=Yarn ResourceManager start/stop 22 | After=hadoop-namenode.service 23 | 24 | [Service] 25 | Environment=JAVA_HOME=${java_11_home} 26 | Environment=YARN_HOME=${software_root}/hadoop/hadoop-${hadoop_version} 27 | Environment=HADOOP_LOG_DIR=${hadoop_dir}/logs 28 | User=hadoop 29 | Group=hadoop 30 | Type=oneshot 31 | ExecStart=${software_root}/hadoop/hadoop-${hadoop_version}/bin/yarn --daemon start resourcemanager 32 | ExecStop=${software_root}/hadoop/hadoop-${hadoop_version}/bin/yarn --daemon stop resourcemanager 33 | RemainAfterExit=yes 34 | 35 | [Install] 36 | WantedBy=multi-user.target 37 | 38 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/templates/yarn-site.xml.tftpl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 23 | 24 | 25 | yarn.resourcemanager.hostname 26 | ${manager_ip} 27 | 28 | 29 | yarn.nodemanager.aux-services 30 | mapreduce_shuffle 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/templates/zoo.cfg.tftpl: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | # The number of milliseconds of each tick 21 | tickTime=2000 22 | # The number of ticks that the initial 23 | # synchronization phase can take 24 | initLimit=10 25 | # The number of ticks that can pass between 26 | # sending a request and getting an acknowledgement 27 | syncLimit=5 28 | # the directory where the snapshot is stored. 29 | # do not use /tmp for storage, /tmp here is just 30 | # example sakes. 31 | dataDir=${zookeeper_dir}/data 32 | # the port at which the clients will connect 33 | clientPort=2181 34 | # the maximum number of client connections. 35 | # increase this if you need to handle more clients 36 | #maxClientCnxns=60 37 | # 38 | # Be sure to read the maintenance section of the 39 | # administrator guide before turning on autopurge. 40 | # 41 | # https://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance 42 | # 43 | # The number of snapshots to retain in dataDir 44 | #autopurge.snapRetainCount=3 45 | # Purge task interval in hours 46 | # Set to "0" to disable auto purge feature 47 | #autopurge.purgeInterval=1 48 | 49 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/config-files/templates/zookeeper.service.tftpl: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | [Unit] 21 | Description=ZooKeeper start/stop 22 | After=remote-fs.target 23 | 24 | [Service] 25 | Environment=JAVA_HOME=${java_11_home} 26 | Environment=ZOOKEEPER_HOME=${software_root}/zookeeper/apache-zookeeper-${zookeeper_version}-bin 27 | Environment=ZOO_LOG_DIR=${zookeeper_dir}/logs 28 | User=hadoop 29 | Group=hadoop 30 | Type=oneshot 31 | ExecStart=${software_root}/zookeeper/apache-zookeeper-${zookeeper_version}-bin/bin/zkServer.sh start 32 | ExecStop=${software_root}/zookeeper/apache-zookeeper-${zookeeper_version}-bin/bin/zkServer.sh start 33 | RemainAfterExit=yes 34 | 35 | [Install] 36 | WantedBy=multi-user.target 37 | 38 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/modules/upload-software/main.tf: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | variable "local_sources_dir" {} 21 | variable "upload_dir" {} 22 | variable "upload_host" {} 23 | 24 | resource "null_resource" "upload_software" { 25 | count = var.local_sources_dir == "" ? 0 : 1 26 | connection { 27 | type = "ssh" 28 | host = var.upload_host 29 | user = "hadoop" 30 | } 31 | provisioner "file" { 32 | source = var.local_sources_dir 33 | destination = "${var.upload_dir}/sources" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/shared_state/azure/main.tf: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | terraform { 21 | required_providers { 22 | azurerm = { 23 | source = "hashicorp/azurerm" 24 | version = "~> 3.0" 25 | } 26 | } 27 | } 28 | 29 | provider "azurerm" { 30 | features {} 31 | } 32 | 33 | resource "azurerm_resource_group" "rg" { 34 | name = var.resource_group_name 35 | location = var.location 36 | } 37 | 38 | resource "azurerm_storage_account" "sa" { 39 | name = var.storage_account_name 40 | resource_group_name = azurerm_resource_group.rg.name 41 | location = var.location 42 | account_tier = "Standard" 43 | account_replication_type = "LRS" 44 | account_kind = "StorageV2" 45 | } 46 | 47 | resource "azurerm_storage_container" "example" { 48 | name = var.storage_container_name 49 | storage_account_name = azurerm_storage_account.sa.name 50 | container_access_type = "private" 51 | } 52 | -------------------------------------------------------------------------------- /contrib/terraform-testing-infrastructure/shared_state/azure/variables.tf: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | variable "location" { 21 | default = "eastus" 22 | type = string 23 | description = "The region where resources will be deployed." 24 | } 25 | 26 | variable "resource_group_name" { 27 | default = "accumulo-testing-tf-state" 28 | type = string 29 | description = "Name of the resource group that holds the shared state storage account." 30 | } 31 | 32 | variable "storage_account_name" { 33 | default = "accumulotesttfsteast" 34 | type = string 35 | description = "Name of the storage account that will hold shared state." 36 | validation { 37 | condition = can(regex("^[a-z0-9]{3,24}$", var.storage_account_name)) 38 | error_message = "The storage_account_name variable name must be letters and numbers and be 3-24 characters in length." 39 | } 40 | } 41 | 42 | variable "storage_container_name" { 43 | default = "accumulo-testing-tf-state" 44 | type = string 45 | validation { 46 | condition = can(regex("^[-a-z0-9]{3,63}$", var.storage_container_name)) 47 | error_message = "The storage_container_name variable name must be letters and numbers and be 3-63 characters in length." 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/build/checkstyle/checkstyle.xml: -------------------------------------------------------------------------------- 1 | 2 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/build/license-header.txt: -------------------------------------------------------------------------------- 1 | Licensed to the Apache Software Foundation (ASF) under one 2 | or more contributor license agreements. See the NOTICE file 3 | distributed with this work for additional information 4 | regarding copyright ownership. The ASF licenses this file 5 | to you under the Apache License, Version 2.0 (the 6 | "License"); you may not use this file except in compliance 7 | with the License. You may obtain a copy of the License at 8 | 9 | https://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, 12 | software distributed under the License is distributed on an 13 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | KIND, either express or implied. See the License for the 15 | specific language governing permissions and limitations 16 | under the License. 17 | -------------------------------------------------------------------------------- /src/main/docker/docker-entry: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # https://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | bin_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) 22 | at_home=$(cd "$(dirname "$bin_dir")" && pwd) 23 | 24 | function print_usage() { 25 | cat < () 28 | 29 | Available scripts: 30 | 31 | cingest Runs continuous ingest script 32 | rwalk Runs random walk script 33 | gcs Runs garbage collection simulation 34 | monitor Runs a readprobe for monitoring read timings 35 | EOF 36 | } 37 | 38 | if [ -z "$1" ]; then 39 | echo "ERROR: