Export works just fine. Import works for all of the tables, except one. I get the following error stack.,
Finding tables in keyspace: fleet_manager_db
Reading metadata for table: gps_pathdata
Creating read stream from: gps_pathdata.json
(node:911) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: value.get is not a function
(node:911) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:911) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: value.get is not a function
(node:911) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: value.get is not a function
(node:911) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): TypeError: value.get is not a function
Streaming 4 rows to table: gps_pathdata
(node:911) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(node:911) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 2)
(node:911) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 3)
(node:911) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 4)
{ TypeError: value.get is not a function
at Encoder.dirname.encodeTuple (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/encoder.js:637:36)
at Encoder.encode (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/encoder.js:1272:18)
at Encoder.dirname.encodeList (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/encoder.js:533:24)
at Encoder.encode (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/encoder.js:1272:18)
at ExecuteRequest.writeQueryParameters (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/requests.js:115:38)
at ExecuteRequest.write (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/requests.js:82:8)
at whileProcess (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/writers.js:209:40)
at next (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/utils.js:811:7)
at Object.whilst (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/utils.js:801:3)
at WriteQueue.process (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/writers.js:197:9)
at WriteQueue.run (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/writers.js:191:10)
at WriteQueue.push (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/writers.js:186:8)
at Connection.sendStream (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/connection.js:415:19)
at RequestHandler._sendOnConnection (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/request-handler.js:182:19)
at /snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/request-handler.js:169:10
at iterateSingleCallback (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/request-handler.js:100:14)
coordinator: '127.0.0.1:9042',
query: 'INSERT INTO "gps_pathdata" ("usecase","start_location_name","end_location_name","location") VALUES (?,?,?,?)' }
Very strange.
Can you please let me know why this is happening.
I would also appreciate if you help me with the solution/workaround to this problem
Hi,
First of all, thanks for this tool.
Export works just fine. Import works for all of the tables, except one. I get the following error stack.,
Finding tables in keyspace: fleet_manager_db
Reading metadata for table: gps_pathdata Creating read stream from: gps_pathdata.json (node:911) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: value.get is not a function (node:911) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (node:911) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: value.get is not a function (node:911) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: value.get is not a function (node:911) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): TypeError: value.get is not a function Streaming 4 rows to table: gps_pathdata (node:911) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1) (node:911) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 2) (node:911) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 3) (node:911) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 4) { TypeError: value.get is not a function at Encoder.dirname.encodeTuple (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/encoder.js:637:36) at Encoder.encode (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/encoder.js:1272:18) at Encoder.dirname.encodeList (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/encoder.js:533:24) at Encoder.encode (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/encoder.js:1272:18) at ExecuteRequest.writeQueryParameters (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/requests.js:115:38) at ExecuteRequest.write (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/requests.js:82:8) at whileProcess (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/writers.js:209:40) at next (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/utils.js:811:7) at Object.whilst (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/utils.js:801:3) at WriteQueue.process (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/writers.js:197:9) at WriteQueue.run (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/writers.js:191:10) at WriteQueue.push (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/writers.js:186:8) at Connection.sendStream (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/connection.js:415:19) at RequestHandler._sendOnConnection (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/request-handler.js:182:19) at /snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/request-handler.js:169:10 at iterateSingleCallback (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/request-handler.js:100:14) coordinator: '127.0.0.1:9042', query: 'INSERT INTO "gps_pathdata" ("usecase","start_location_name","end_location_name","location") VALUES (?,?,?,?)' }
Very strange.
Can you please let me know why this is happening. I would also appreciate if you help me with the solution/workaround to this problem