unknown command "upgrade"
Run 'influxd help' for usage
Ok lets check help:
Usage of influx:
-version
Display the version and exit.
-path-prefix 'url path'
Path that follows the host and port
-host 'host name'
Host to connect to.
-port 'port #'
Port to connect to.
-socket 'unix domain socket'
Unix socket to connect to.
-database 'database name'
Database to connect to the server.
-password 'password'
Password to connect to the server. Leaving blank will prompt for password (--password '').
-username 'username'
Username to connect to the server.
-ssl
Use https for requests.
-unsafeSsl
Set this when connecting to the cluster using https and not use SSL verification.
-execute 'command'
Execute command and quit.
-type 'influxql|flux'
Type specifies the query language for executing commands or when invoking the REPL.
-format 'json|csv|column'
Format specifies the format of the server responses: json, csv, or column.
-precision 'rfc3339|h|m|s|ms|u|ns'
Precision specifies the format of the timestamp: rfc3339, h, m, s, ms, u or ns.
-consistency 'any|one|quorum|all'
Set write consistency level: any, one, quorum, or all
-pretty
Turns on pretty print for the json format.
-import
Import a previous database export from file
-pps
How many points per second the import will allow. By default it is zero and will not throttle importing.
-path
Path to file to import
-compressed
Set to true if the import file is compressed
Examples:
# Use influx in a non-interactive mode to query the database "metrics" and pretty print json:
$ influx -database 'metrics' -execute 'select * from cpu' -format 'json' -pretty
# Connect to a specific database on startup and set database context:
$ influx -database 'metrics' -host 'localhost' -port '8086'
No upgrade command. Am I missing something very basic here?
Definitely. If you want to upgrade to InfluxDB 2, you need to install it first. Both versions can co-exist. Data are copied during the upgrade process. However, both share the same default port 8086, so they cannot run at the same time.
Same output no update command same commands options as previously. On the downloads page you supplied I installed the only 1.x version that is available: v1.8.10 so not sure what other binaries there are?
If I run a influxd version I get
influxd version
InfluxDB v1.8.10 (git: 1.8 688e697c51fd)
Ok so I am trying to get the right Influx 1.8.x binary that has the “update” command. I am trying to do a in place upgrade from 1.8.10 to 2.x
I dont want to lose the current data I have.
Above the indication was that I had the wrong influx 1.8 binary and the update command was missing. Therefore the suggestion to install the correct binary from the download link, which I was doing. However after removing and reinstalling even though the remove and reinstall was successful it was not updating the binary with the “right one” which would allow me to run - $ influx update.
Well, indeed - update is a v2 command, not available in v1.8
Ok but the documentation says from your influx 1.8 install you run influx upgrade which then upgrades it to influx 2.x
Use the influxd upgrade command to upgrade InfluxDB 1.x to InfluxDB 2.1. The upgrade command provides an in-place upgrade from InfluxDB 1.x to InfluxDB 2.1.
Unless I am reading this all wrong and I need to install influx 2.x first on the same machine, shutdown. / Stop the 1.8 instance and do a influx upgrade and it will use the influx 2.0 binary to upgrade???
A quick question on the upgrade. Did the upgrade output spent a long time upgrading. (I have large amounts of data) at the end all was successful.
Hit the influx local website, go look at buckets none of my 1.8.x databases are there. My understanding was that the upgrade process would migrate the databases to buckets so I don’t lose the data?
A quick question on the upgrade.
Did the upgrade output spent a long time upgrading.
Sorry, don’t understand that question. (Is it a question? No “?” at the
end.)
(I have large amounts of data) at the end all was successful.
Good to hear that all was successful.
Hit the influx local website, go look at buckets none of my 1.8.x databases
are there.
Please explain how you checked - tell us the commands you used to find out.
My understanding was that the upgrade process would migrate the databases to
buckets so I don’t lose the data?
That is the normal process, yes.
“3. Writes existing data and write ahead log (WAL) files into InfluxDB 2.1
buckets.”
So, yes, it should keep the data.
Give us some details about how you checked for the data in the new DB, and
maybe some people with more familiarity than I about InfluxDB2 can help out.
Sorry, don’t understand that question. (Is it a question? No “?” at the
end.)
Was a statement.
Once updated I started by checking the influx cli. Quickly found that I would need to create a config file for the CLI. Which would need an auth token.
I then started reading the documentation on how to create users and get the auth token which took me to the web interface on the IP address of the influx 2 install. Even though I did specify a default user, password, Organization name, default bucket, it asked me to set this up again in the web interface. Which I used the exact same input I used during the upgrade.
Once that startup wizard was finished on the web interface I went to Data > Buckets to inspect which buckets are on this influx server.
I was expecting to see all my migrated databases as buckets there what I found was:
_monitoring
_tasks
_MyDefaultBucket (the one I created)