influxdata / whisper-migrator

A tool for migrating data from Graphite Whisper files to InfluxDB TSM files (version 0.10.0).
Apache License 2.0
33 stars 13 forks source link

How do you use this thing? #24

Open fake-name opened 6 years ago

fake-name commented 6 years ago

I'm trying to get InfluxDB set up on a ubuntu box that previously ran a Graphite/Carbon database.

I have not worked with go before.

InfluxDB is installed via the apt repository described in the docs.

I have go installed from the ubuntu apt repositories.

durr@graphical:~/whisper-migrator$ ./migration.go
bash: ./migration.go: Permission denied
durr@graphical:~/whisper-migrator$ chmod +x migration.go
durr@graphical:~/whisper-migrator$ ./migration.go
./migration.go: line 1: package: command not found
./migration.go: line 3: syntax error near unexpected token `newline'
./migration.go: line 3: `import ('
durr@graphical:~/whisper-migrator$ go run migration.go
migration.go:7:2: cannot find package "github.com/influxdata/influxdb/client/v2" in any of:
        /usr/lib/go-1.6/src/github.com/influxdata/influxdb/client/v2 (from $GOROOT)
        ($GOPATH not set)
migration.go:8:2: cannot find package "github.com/influxdata/influxdb/tsdb/engine/tsm1" in any of:
        /usr/lib/go-1.6/src/github.com/influxdata/influxdb/tsdb/engine/tsm1 (from $GOROOT)
        ($GOPATH not set)
migration.go:9:2: cannot find package "github.com/uttamgandhi24/whisper-go/whisper" in any of:
        /usr/lib/go-1.6/src/github.com/uttamgandhi24/whisper-go/whisper (from $GOROOT)
        ($GOPATH not set)

How do you actually run this thing? Do I need to have built influxdb or something?

fake-name commented 6 years ago

Ok, so the solution wound up being:

Maybe at least put the invocation in the readme?

logicalup commented 5 years ago

having same errors as original poster go get -v ./... doesn't help anymore, last commit more than 3 years ago. Maybe someone can update this repo+readme?