Generating Spark SQL schema files

Generate Spark SQL schema files for use with Spark SQL on external Spark clusters.

Spark SQL can import schema files generated by DataStax Enterprise.


  1. Export the schema file using dse client-tool.
    dse client-tool --use-server-config spark sql-schema --all > output.sql
  2. Copy the schema to an external Spark node.
    scp output.sql
  3. On a Spark node, import the schema using Spark.
    spark-sql --jars byos-5.1.jar --properties-file -f  output.sql