|
| 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 | +; http://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 | +; |
| 18 | +; Sample ~/.cqlshrc file. |
| 19 | + |
| 20 | +[authentication] |
| 21 | +;; If Cassandra has auth enabled, fill out these options |
| 22 | +;; Path to the credentials file, an initial ~ or ~user is expanded to that user's home directory |
| 23 | +; credentials = ~/.cassandra/credentials |
| 24 | +; keyspace = ks1 |
| 25 | + |
| 26 | +[auth_provider] |
| 27 | +;; you can specify any auth provider found in your python environment |
| 28 | +;; module and class will be used to dynamically load the class |
| 29 | +;; all other properties found here and in the credentials file under the class name |
| 30 | +;; will be passed to the constructor |
| 31 | +module = cassandra.auth |
| 32 | +classname = PlainTextAuthProvider |
| 33 | + |
| 34 | +[ui] |
| 35 | +;; Whether or not to display query results with colors |
| 36 | +; color = on |
| 37 | + |
| 38 | +;; Used for displaying timestamps (and reading them with COPY) |
| 39 | +; time_format = %Y-%m-%d %H:%M:%S%z |
| 40 | + |
| 41 | +;; Display timezone |
| 42 | +;timezone = Etc/UTC |
| 43 | + |
| 44 | +;; The number of digits displayed after the decimal point for single and double precision numbers |
| 45 | +;; (note that increasing this to large numbers can result in unusual values) |
| 46 | +;float_precision = 5 |
| 47 | +;double_precision = 12 |
| 48 | + |
| 49 | +;; Used for automatic completion and suggestions |
| 50 | +; completekey = tab |
| 51 | + |
| 52 | +;; The encoding used for characters |
| 53 | +; encoding = utf8 |
| 54 | + |
| 55 | +; To use another than the system default browser for cqlsh HELP to open |
| 56 | +; the CQL doc HTML, use the 'browser' preference. |
| 57 | +; If the field value is empty or not specified, cqlsh will use the |
| 58 | +; default browser (specifying 'browser = default' does not work). |
| 59 | +; |
| 60 | +; Supported browsers are those supported by the Python webbrowser module. |
| 61 | +; (https://docs.python.org/3/library/webbrowser.html). |
| 62 | +; |
| 63 | +; Hint: to use Google Chome, use |
| 64 | +; 'browser = open -a /Applications/Google\ Chrome.app %s' on Mac OS X and |
| 65 | +; 'browser = /usr/bin/google-chrome-stable %s' on Linux and |
| 66 | +; 'browser = C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s' on Windows. |
| 67 | +; |
| 68 | +; This setting can be overridden with the --browser command line option. |
| 69 | +; |
| 70 | +;browser = |
| 71 | + |
| 72 | +[cql] |
| 73 | +;; A version of CQL to use (this should almost never be set) |
| 74 | +; version = 3.2.1 |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | +[connection] |
| 79 | + |
| 80 | +;; The host to connect to |
| 81 | +hostname = 127.0.0.1 |
| 82 | + |
| 83 | +;; The port to connect to (9042 is the native protocol default) |
| 84 | +port = 9142 |
| 85 | + |
| 86 | +;; Always connect using SSL - false by default |
| 87 | +ssl = true |
| 88 | + |
| 89 | +;; A timeout in seconds for opening new connections |
| 90 | +; timeout = 10 |
| 91 | + |
| 92 | +;; A timeout in seconds for executing queries |
| 93 | +; request_timeout = 10 |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | +[csv] |
| 98 | +;; The size limit for parsed fields |
| 99 | +field_size_limit = 999999 |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | +[tracing] |
| 104 | +;; The max number of seconds to wait for a trace to complete |
| 105 | +; max_trace_wait = 10.0 |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | +[ssl] |
| 110 | +certfile = ~/.cassandra/sf-class2-root.crt |
| 111 | + |
| 112 | +;; Optional - true by default. |
| 113 | +;validate = true |
| 114 | + |
| 115 | +;; To be provided when require_client_auth=true |
| 116 | +;userkey = ~/key.pem |
| 117 | + |
| 118 | +;; To be provided when require_client_auth=true |
| 119 | +;usercert = ~/cert.pem |
| 120 | + |
| 121 | +; this is effectively ignored from 4.1 included as TLS protocol is auto-negotiated and will |
| 122 | +; be removed in the next major version of Cassandra, possible values were TLSv1, TLSv1_1 or TLSv1_2 |
| 123 | +;version = TLSv1_2 |
| 124 | + |
| 125 | +;; Optional section, overrides default certfile in [ssl] section, if present |
| 126 | +; [certfiles] |
| 127 | +; 192.168.1.3 = ~/keys/cassandra01.cert |
| 128 | +; 192.168.1.4 = ~/keys/cassandra02.cert |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | +;; Options that are common to both COPY TO and COPY FROM |
| 133 | +[copy] |
| 134 | + |
| 135 | +;; The string placeholder for null values |
| 136 | +; nullval = null |
| 137 | + |
| 138 | +;; For COPY TO, controls whether the first line in the CSV output file will |
| 139 | +;; contain the column names. For COPY FROM, specifies whether the first |
| 140 | +;; line in the CSV file contains column names. |
| 141 | +; header = false |
| 142 | + |
| 143 | +;; The character that is used as the decimal point separator |
| 144 | +; decimalsep = . |
| 145 | + |
| 146 | +;; The character that is used to separate thousands |
| 147 | +;; (defaults to the empty string) |
| 148 | +; thousandssep = |
| 149 | + |
| 150 | +;; The string literal format for boolean values |
| 151 | +; boolstyle = True,False |
| 152 | + |
| 153 | +;; The number of child worker processes to create for |
| 154 | +;; COPY tasks. Defaults to a max of 4 for COPY FROM and 16 |
| 155 | +;; for COPY TO. However, at most (num_cores - 1) processes |
| 156 | +;; will be created. |
| 157 | +numprocesses = 16 |
| 158 | + |
| 159 | +;; The maximum number of failed attempts to fetch a range of data (when using |
| 160 | +;; COPY TO) or insert a chunk of data (when using COPY FROM) before giving up |
| 161 | +maxattempts = 25 |
| 162 | + |
| 163 | +;; How often status updates are refreshed, in seconds |
| 164 | +; reportfrequency = 0.25 |
| 165 | + |
| 166 | +;; An optional file to output rate statistics to |
| 167 | +; ratefile = |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | +;; Options specific to COPY TO |
| 172 | +; [copy-to] |
| 173 | + |
| 174 | +;; The maximum number token ranges to fetch simultaneously |
| 175 | +; maxrequests = 6 |
| 176 | + |
| 177 | +;; The number of rows to fetch in a single page |
| 178 | +; pagesize = 1000 |
| 179 | + |
| 180 | +;; By default the page timeout is 10 seconds per 1000 entries |
| 181 | +;; in the page size or 10 seconds if pagesize is smaller |
| 182 | +; pagetimeout = 10 |
| 183 | + |
| 184 | +;; Token range to export. Defaults to exporting the full ring. |
| 185 | +; begintoken = |
| 186 | +; endtoken = |
| 187 | + |
| 188 | +; The maximum size of the output file measured in number of lines; |
| 189 | +; beyond this maximum the output file will be split into segments. |
| 190 | +; -1 means unlimited. |
| 191 | +; maxoutputsize = -1 |
| 192 | + |
| 193 | +;; The encoding used for characters |
| 194 | +; encoding = utf8 |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | +;; Options specific to COPY FROM |
| 199 | +[copy-from] |
| 200 | + |
| 201 | +;; The maximum number of rows to process per second |
| 202 | +ingestrate = 1500 |
| 203 | + |
| 204 | +;; The maximum number of rows to import (-1 means unlimited) |
| 205 | +; maxrows = -1 |
| 206 | + |
| 207 | +;; A number of initial rows to skip |
| 208 | +; skiprows = 0 |
| 209 | + |
| 210 | +;; A comma-separated list of column names to ignore |
| 211 | +; skipcols = |
| 212 | + |
| 213 | +;; The maximum global number of parsing errors to ignore, -1 means unlimited |
| 214 | +maxparseerrors = -1 |
| 215 | + |
| 216 | +;; The maximum global number of insert errors to ignore, -1 means unlimited |
| 217 | +maxinserterrors = -1 |
| 218 | + |
| 219 | +;; A file to store all rows that could not be imported, by default this is |
| 220 | +;; import_<ks>_<table>.err where <ks> is your keyspace and <table> is your table name. |
| 221 | +; errfile = |
| 222 | + |
| 223 | +;; The min and max number of rows inserted in a single batch |
| 224 | +maxbatchsize = 10 |
| 225 | +minbatchsize = 1 |
| 226 | + |
| 227 | +;; The number of rows that are passed to child worker processes from |
| 228 | +;; the main process at a time |
| 229 | +chunksize = 30 |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | +;; The options for COPY can also be specified per-table. The following |
| 234 | +;; three sections demonstrate this. |
| 235 | + |
| 236 | +;; Optional table-specific options for COPY |
| 237 | +; [copy:mykeyspace.mytable] |
| 238 | +; chunksize = 1000 |
| 239 | + |
| 240 | +;; Optional table-specific options for COPY FROM |
| 241 | +; [copy-from:mykeyspace.mytable] |
| 242 | +; ingestrate = 20000 |
| 243 | + |
| 244 | +;; Optional table-specific options for COPY TO |
| 245 | +; [copy-to:mykeyspace.mytable] |
| 246 | +; pagetimeout = 30 |
0 commit comments