github.com/apache/beam/sdks/v2@v2.48.2/java/testing/tpcds/README.md (about) 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 http://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 # TPC-DS Benchmark 21 22 ## Google Dataflow Runner 23 24 To execute TPC-DS benchmark for 1Gb dataset on Google Dataflow, run the following example command from the command line: 25 26 ```bash 27 ./gradlew :sdks:java:testing:tpcds:run -Ptpcds.args="--dataSize=1G \ 28 --runner=DataflowRunner \ 29 --queries=3,26,55 \ 30 --tpcParallel=2 \ 31 --dataDirectory=/path/to/tpcds_data/ \ 32 --project=apache-beam-testing \ 33 --stagingLocation=gs://beamsql_tpcds_1/staging \ 34 --tempLocation=gs://beamsql_tpcds_2/temp \ 35 --dataDirectory=/path/to/tpcds_data/ \ 36 --region=us-west1 \ 37 --maxNumWorkers=10" 38 ``` 39 40 To run a query using ZetaSQL planner (currently Query96 can be run using ZetaSQL), set the plannerName as below. If not specified, the default planner is Calcite. 41 42 ```bash 43 ./gradlew :sdks:java:testing:tpcds:run -Ptpcds.args="--dataSize=1G \ 44 --runner=DataflowRunner \ 45 --queries=96 \ 46 --tpcParallel=2 \ 47 --dataDirectory=/path/to/tpcds_data/ \ 48 --plannerName=org.apache.beam.sdk.extensions.sql.zetasql.ZetaSQLQueryPlanner \ 49 --project=apache-beam-testing \ 50 --stagingLocation=gs://beamsql_tpcds_1/staging \ 51 --tempLocation=gs://beamsql_tpcds_2/temp \ 52 --region=us-west1 \ 53 --maxNumWorkers=10" 54 ``` 55 56 ## Spark Runner 57 58 To execute TPC-DS benchmark with Query3 for 1Gb dataset on Apache Spark 3.x, run the following example command from the command line: 59 60 ```bash 61 ./gradlew :sdks:java:testing:tpcds:run -Ptpcds.runner=":runners:spark:3" -Ptpcds.args=" \ 62 --runner=SparkRunner \ 63 --queries=3 \ 64 --tpcParallel=1 \ 65 --dataDirectory=/path/to/tpcds_data/ \ 66 --dataSize=1G \ 67 --resultsDirectory=/path/to/tpcds_results/" 68 ```