influxdata / whisper-migrator

A tool for migrating data from Graphite Whisper files to InfluxDB TSM files (version 0.10.0).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

issues running migration.go

Kedesai opened this issue · comments

I am getting this error when I run the migration go file. I run this command with parameters: migration.go -option=ClientV2 -wspPath=<Whisper_servername>:/data/new/graphite/storage/whisper/ -from=2019-01-01 -until=2019-02-27 -dbname=migrated -host=http://<influxdb_servername> -port=8086, -retentionPolicy=default -tagconfig=config.json -username=myuser,-password=mypassword

But I get this error.

command-line-arguments

./migration.go:340:10: undefined: client.NewHTTPClient
./migration.go:340:31: undefined: client.HTTPConfig
./migration.go:346:19: undefined: client.NewQuery
./migration.go:353:11: undefined: client.NewBatchPoints
./migration.go:353:33: undefined: client.BatchPointsConfig
./migration.go:365:12: undefined: client.NewPoint
./migration.go:371:11: undefined: client.NewQuery
./migration.go:394:26: undefined: client.NewQuery
./migration.go:515:38: cannot use tsmPoint.key (type string) as type []byte in argument to tsmWriter.Write
./migration.go:645:10: undefined: client.NewHTTPClient
./migration.go:645:10: too many errors

I was able to fix the missing packages but not sure how to fix this to start my migration to influxdb