Giter VIP home page Giter VIP logo

influxdb-v1-to-v2's Introduction

influxdb-v1-to-v2

WIP migration of database metadata from InfluxDB v1 to InfluxDB v2.

Usage

Run yarn in this directory to install the required dependencies, you can also use npm install to do the same. The tools are shown to run with yarn, you can use npm run in place of it. npm (unlike yarn) is installed together with node.js.

Create v2 buckets out of v1 databases, maps v1 users to v2 authorizations

  1. yarn influxdb-v1-to-v2 --help shows help with default and required options, run yarn influxdb-v1-to-v2 with required parameters specified either in environment variables or in command-line options
  2. observe console to see that
    • buckets are created for each database/retention policy pair
    • DBRP mappings are created in v2 to map v1 db/rp pairs to v2 buckets; this mapping is required for v1 API queries/writes to work properly
    • when --with-users option is specified
      • v1 authorizations are created in v2 and maps v1 user grants (excluding admin users) to created v2 buckets
      • user password cannot be migrated, use --out-users option to create file that you can later use to setup user passwords with set-passwords utility

Set passwords for migrated users

  1. modify users file created in the previous step with --out-users options, specify password for each paricular user in the file, or rely upon default password later specified with the --password option
  2. yarn set-password --help shows help with default and required options
    • --users-file and InfluxDB v2 connection options are required
  3. run yarn set-password with required parameters specified either in environment variables or in command-line options
  4. observe console to see how/whether passwords are set

influxdb-v1-to-v2's People

Contributors

sranka avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

influxdb-v1-to-v2's Issues

v1 auth could be pulled out

v1 auth could be pulled out

There is no v1 Auth setup in cloud. Users must switch to the Token based auth system. So, let's just focus on the bucket creation and DB/RP Mapping automation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.