fix: Add instructions on specifying host when loading data

pull/24376/head
Carol (Nichols || Goulding) 2022-04-28 09:06:28 -04:00
parent a024e07147
commit 4597c02daa
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
1 changed files with 9 additions and 0 deletions

View File

@ -214,6 +214,15 @@ data across restarts, after you've compiled for development, run:
where `--catalog-dsn` is a connection URL to the Postgres database you wish to use, and where `--catalog-dsn` is a connection URL to the Postgres database you wish to use, and
`--data-dir` is the directory you wish to use. `--data-dir` is the directory you wish to use.
### Loading data in local mode
Because the services run on different gRPC ports, and because the CLI uses the gRPC write API, if
you're using `influxdb_iox database` you have to set a `--host` with the correct gRPC
```shell
influxdb_iox -vv database write my_db test_fixtures/lineproto/metrics.lp --host http://localhost:8081
```
#### Compile and run #### Compile and run
Rather than building and running the binary in `target`, you can also compile and run with one Rather than building and running the binary in `target`, you can also compile and run with one