Set Up Spark-Vector Provider
To use Spark with Vector, you must download the Spark-Vector Connector. We recommend using the latest available Spark-Vector Provider for the Spark version you are using. See the Vector readme for the version of Spark required for the Provider.
The following steps assume that Vector and Spark are already installed.
To set up the Spark-Vector Provider
Note: The archive contains spark_vector_provider1.jar (for Spark 1) and spark_vector_provider2.jar (for Spark 2). Use the one that matches the Spark version you are using.
2. Copy the extracted driver to $II_SYSTEM/ingres/lib/spark_vector_providerX.jar, where X is either 1 or 2, depending on the Spark version used. Overwrite it, if necessary. (This step is not needed if the release contains a copy of the provider.)
Note: Verify that environment variables SPARK_MAJOR_VERSION and SPARK_HOME are set. SPARK_HOME must point to the local spark install directory and SPARK_MAJOR_VERSION can be either 1 or 2, depending on your version of Spark.
3. Set spark_provider count in config.dat to 1.
Note: The iisuspark utility does this automatically.
iisetres "ii.$(iipmhost).ingstart.*.spark_provider" 1
4. Restart Vector to ensure the Spark-Vector Provider is started:
ingstop
ingstart
Last modified date: 06/28/2024