File tree 2 files changed +4
-9
lines changed
plugin/storage/cassandra/schema/migration
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ Changes by Version
47
47
1 . You will need to run below command on the host you can use ` cqlsh ` to connect the the cassandra contact
48
48
point
49
49
```
50
- KEYSPACE=test_keyspace TIMEOUT=1000 CQL_CMD='cqlsh host 9042 -u test_user -p test_password' bash
51
- ./plugin/storage/cassandra/schema/migration /v002tov003.sh
50
+ KEYSPACE=jaeger_v1 CQL_CMD='cqlsh host 9042 -u test_user -p test_password --request-timeout=3000'
51
+ bash . /v002tov003.sh
52
52
```
53
53
The script will create new table ` operation_names_v2 ` and migrate data from the old table.
54
54
` spanKind ` column will be empty for those data.
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
# Create a new operation_names_v2 table and copy all data from operation_names table
4
- # Sample usage: KEYSPACE=jaeger_v1 TIMEOUT=1000 CQL_CMD='cqlsh host 9042 -u test_user -p test_password' bash
4
+ # Sample usage: KEYSPACE=jaeger_v1 CQL_CMD='cqlsh host 9042 -u test_user -p test_password --request-timeout=3000 ' bash
5
5
# ./v002tov003.sh
6
6
7
7
set -euo pipefail
8
8
9
9
function usage {
10
10
>&2 echo " Error: $1 "
11
11
>&2 echo " "
12
- >&2 echo " Usage: KEYSPACE={keyspace} TTL={ttl} CQL_CMD={cql_cmd}$0 "
12
+ >&2 echo " Usage: KEYSPACE={keyspace} CQL_CMD={cql_cmd} $0 "
13
13
>&2 echo " "
14
14
>&2 echo " The following parameters can be set via environment:"
15
15
>&2 echo " KEYSPACE - keyspace"
64
64
65
65
csv_rows=$( wc -l ${old_table} .csv | tr -dc ' 0-9' )
66
66
67
- if [[ ${row_count} -ne ${csv_rows} ]]; then
68
- echo " Number of rows: $csv_rows in file is not equal to number of rows: $row_count in cassandra"
69
- exit 1
70
- fi
71
-
72
67
echo " Generating data for new table..."
73
68
while IFS=" ," read service_name operation_name; do
74
69
echo " $service_name ,,$operation_name "
You can’t perform that action at this time.
0 commit comments