https://github.com/distributedio/titan-lightning
https://github.com/distributedio/titan-lightning
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/distributedio/titan-lightning
- Owner: distributedio
- Created: 2021-02-18T02:31:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-25T14:37:29.000Z (over 4 years ago)
- Last Synced: 2024-10-29T18:53:55.714Z (8 months ago)
- Language: Go
- Size: 209 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Titan Lightning
**Titan Lightning** is a tool for fast full import of large amounts of data into a [Titan](https://github.com/distributedio/titan) cluster.it implements parsing and encoding of the [Redis](http://redis.io) [RDB file format](https://github.com/sripathikrishnan/redis-rdb-tools/blob/master/docs/RDB_File_Format.textile).
This tool was heavily inspired by [TiDB Lightning](https://github.com/pingcap/tidb-lightning).
## Installation
### SetUp TiKV cluster
Titan works with 2 TiDB components:
* TiKV
* PDTo setup TiKV and PD, please follow the official [instructions](https://pingcap.com/docs-cn/dev/how-to/deploy/orchestrated/ansible/)
### Run Titan
* Build the binary
```
go get github.com/distributedio/titan
cd $GOPATH/src/github.com/distributedio/titan
make
```* Edit the configration file
```
pd-addrs="tikv://your-pd-addrs:port"
```* Run Titan
```
./titan
```### Run Titan-Lightning
* Build the binary
```
go get github.com/nioshield/titan-lightning
cd $GOPATH/src/github.com/nioshield/titan-lightning
make
```* Edit the configration file
```
pd-addrs="your-pd-addrs:port"
source-addrs = "./dump.rdb"
```* Run Titan-Lightning
```
./titan-lightning
```