I need help into below situation.
I have a MySQL table :-
CREATE TABLE employees (
emp_no INT NOT NULL, -- AUTO_INCREMENT??
birth_date DATE NOT NULL,
first_name VARCHAR(14) NOT NULL,
user_id INT NOT NULL, -- This is primary key of another table.
PRIMARY KEY (emp_no));
This table have approx 20000 records.
I am transferring this MySQL table to Cassandra table which is as below.
CREATE TABLE employees (
emp_no uuid,
birth_date timestamp,
first_name text,
user_id uuid,
PRIMARY KEY (emp_no));
Now i want to export all 20000 records from MySQL table to Cassandra table.
user_id column is primary key in another table and first_name column is mapped with user_id column also.
Please let me know how can i achieve this .
Below are the details for versions of datastax which I am using. [cqlsh 5.0.1 | Cassandra 2.1.15.1403 | DSE 4.8.9 | CQL spec 3.2.1 | Native protocol v3]
Please suggest me best possible way to data migration from MySQL to Cassandra.