Skip to content

Commit dbde03c

Browse files
committed
Fix incorrect IMPORT uses in data corruption troubleshooting training
1 parent 2678775 commit dbde03c

File tree

2 files changed

+6
-24
lines changed

2 files changed

+6
-24
lines changed

v2.0/training/data-corruption-troubleshooting.md

+3-12
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,7 @@ In this lab, you'll start with a fresh cluster, so make sure you've stopped and
7575

7676
Before you can manually corrupt data, you need to import enough data so that the cluster creates persistent `.sst` files.
7777

78-
1. In the same terminal, enable the "experimental" [`IMPORT`](../import.html) feature:
79-
80-
{% include copy-clipboard.html %}
81-
~~~ shell
82-
$ ./cockroach sql \
83-
--insecure \
84-
--execute="SET CLUSTER SETTING experimental.importcsv.enabled = true;"
85-
~~~
86-
87-
2. Create a database into which you'll import a new table:
78+
1. Create a database into which you'll import a new table:
8879
8980
{% include copy-clipboard.html %}
9081
~~~ shell
@@ -93,14 +84,14 @@ Before you can manually corrupt data, you need to import enough data so that the
9384
--execute="CREATE DATABASE import_test;"
9485
~~~
9586
96-
3. Run the [`IMPORT`](../import.html) command, using schema and data files we've made publicly available on Google Cloud Storage:
87+
2. Run the [`IMPORT`](../import.html) command, using schema and data files we've made publicly available on Google Cloud Storage:
9788

9889
{% include copy-clipboard.html %}
9990
~~~ shell
10091
$ ./cockroach sql \
10192
--insecure \
10293
--database="import_test" \
103-
--execute="IMPORT TABLE orders CREATE USING 'https://storage.googleapis.com/cockroach-fixtures/tpch-csv/schema/orders.sql' CSV DATA ('https://storage.googleapis.com/cockroach-fixtures/tpch-csv/sf-1/orders.tbl.1') WITH temp = 'nodelocal:///tmp', delimiter = '|';"
94+
--execute="IMPORT TABLE orders CREATE USING 'https://storage.googleapis.com/cockroach-fixtures/tpch-csv/schema/orders.sql' CSV DATA ('https://storage.googleapis.com/cockroach-fixtures/tpch-csv/sf-1/orders.tbl.1') WITH delimiter = '|';"
10495
~~~
10596

10697
The import will take a minute or two. Once it completes, you'll see a confirmation with details:

v2.1/training/data-corruption-troubleshooting.md

+3-12
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,7 @@ In this lab, you'll start with a fresh cluster, so make sure you've stopped and
7575

7676
Before you can manually corrupt data, you need to import enough data so that the cluster creates persistent `.sst` files.
7777

78-
1. In the same terminal, enable the "experimental" [`IMPORT`](../import.html) feature:
79-
80-
{% include copy-clipboard.html %}
81-
~~~ shell
82-
$ ./cockroach sql \
83-
--insecure \
84-
--execute="SET CLUSTER SETTING experimental.importcsv.enabled = true;"
85-
~~~
86-
87-
2. Create a database into which you'll import a new table:
78+
1. Create a database into which you'll import a new table:
8879
8980
{% include copy-clipboard.html %}
9081
~~~ shell
@@ -93,14 +84,14 @@ Before you can manually corrupt data, you need to import enough data so that the
9384
--execute="CREATE DATABASE import_test;"
9485
~~~
9586
96-
3. Run the [`IMPORT`](../import.html) command, using schema and data files we've made publicly available on Google Cloud Storage:
87+
2. Run the [`IMPORT`](../import.html) command, using schema and data files we've made publicly available on Google Cloud Storage:
9788

9889
{% include copy-clipboard.html %}
9990
~~~ shell
10091
$ ./cockroach sql \
10192
--insecure \
10293
--database="import_test" \
103-
--execute="IMPORT TABLE orders CREATE USING 'https://storage.googleapis.com/cockroach-fixtures/tpch-csv/schema/orders.sql' CSV DATA ('https://storage.googleapis.com/cockroach-fixtures/tpch-csv/sf-1/orders.tbl.1') WITH temp = 'nodelocal:///tmp', delimiter = '|';"
94+
--execute="IMPORT TABLE orders CREATE USING 'https://storage.googleapis.com/cockroach-fixtures/tpch-csv/schema/orders.sql' CSV DATA ('https://storage.googleapis.com/cockroach-fixtures/tpch-csv/sf-1/orders.tbl.1') WITH delimiter = '|';"
10495
~~~
10596

10697
The import will take a minute or two. Once it completes, you'll see a confirmation with details:

0 commit comments

Comments
 (0)