tkrs / embulk-output-aerospike Goto Github PK
View Code? Open in Web Editor NEWAerospike output plugin for Embulk
License: MIT License
Aerospike output plugin for Embulk
License: MIT License
I use sql for input and aerospike as output, after run embulk, I found all the values in aerospike became the last one record from sql select and only the PK different.
For example,
the data in db table as :
user_id | user_no | status |
---|---|---|
0000000000609692 | 1 | ng |
0000000000609777 | 2 | ng |
0000000000609787 | 3 | ok |
and the embulk config like:
in:
type: mysql
host: localhost
user: root
password: root
database: test
query: "select user_id, user_no, customer_status as status from users limit 3"
out:
type: aerospike
hosts:
- {name: '127.0.0.1', port: 3000}
command: put
namespace: bar
set_name: users
key_name: user_id
write_policy:
send_key: true
and I will get result like:
key | user_no | status |
---|---|---|
0000000000609692 | 3 | ok |
0000000000609777 | 3 | ok |
0000000000609787 | 3 | ok |
the debug log show that after toRecords method, the rec.toMap like such as:
Map(user_no -> 3, status -> ok, user_id -> 0000000000609787)
Is createRecords wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.