Closed kyleburke closed 7 years ago
what version of the memsql-spark-connector
are you using?
inside the stack i see
at com.memsql.spark.connector.MemSQLCluster$$anonfun$createTable$1$$anonfun$apply$8.apply(MemSQLCluster.scala:141)
which indicates that the MemSQLContext
is trying to create the customers
table before writing and that is what is failing.
Not sure why the create table call is failing here, could you gather some additional information?
memDf.schema
- there may be a bug in our create table code which is incorrectly building a CREATE TABLE
statement from your dataframe. This is likely because the dataframe originated from Cassandra, which may use different intermediary types in the materialized dataframe.CREATE TABLE
failed in MemSQL - The default location for this will be in /var/lib/memsql/master-3306/tracelogs
and there should be an entry in memsql.log
for the failing query.And in the interest of minimizing roundtrips could you also verify that your MemSQLContext
is set to the correct database and the customers
table exists before writing the dataframe? From your description it looks like you intend for the table to exist before writing so something else may be misconfigured.
When the MemSQLContext
is writing into an existing table do you still see it fail?
Closed due to inactivity
Not sure what's causing the error below. I'm reading some data from cassandra and trying to write it to memSQL. Any ideas how to resolve the issue?
Here is my code:
I created the table in memsql using the following command:
Here is the error I get: