Generate the BYOS configuration file
The byos.properties file is used to connect to a DataStax Enterprise (DSE) cluster from an Apache Spark™ cluster.
The configuration file contains connection information about the DSE cluster.
This file must be generated on a node in the DSE cluster.
You can specify an arbitrary name for the generated configuration file.
The byos.properties name is used throughout the documentation to refer to this configuration file.
-
If you are using Graph OLAP queries with BYOS, increase the max_concurrent_sessions setting in your cluster to 120.
-
Connect to a node in your DSE cluster.
-
Generate the
byos.propertiesfile using thedse client-toolcommand:dse client-tool configuration byos-export ~/byos.propertiesThis generates the
byos.propertiesfile in your home directory. See Connect an external client to a DataStax Enterprise node with dse client-tool for more information on the options for dse client-tool. -
The
byos.propertiesfile can be copied to a node in the external Spark cluster and used with the Spark shell, as described in Connecting to DataStax Enterprise using the Apache Spark shell on an external Spark cluster.