Skip to main content
Version: 5.0.0

Spark RPC Encryption

Kylin supports enabling communication encryption between Spark nodes, which enhances the security of internal communication and prevents specific security attacks. This feature is disabled by default. To enable it, follow the steps below:

How to Configure

Ensure that RPC communication encryption is enabled in the Spark cluster by referring to the Spark Security documentation.

Add the following configurations in the $KYLIN_HOME/conf/kylin.properties file to enable Kylin nodes and Spark cluster communication encryption:

### spark rpc encryption for build jobs
kylin.storage.columnar.spark-conf.spark.authenticate=true
kylin.storage.columnar.spark-conf.spark.authenticate.secret=kylin
kylin.storage.columnar.spark-conf.spark.network.crypto.enabled=true
kylin.storage.columnar.spark-conf.spark.network.crypto.keyLength=256
kylin.storage.columnar.spark-conf.spark.network.crypto.keyFactoryAlgorithm=PBKDF2WithHmacSHA256

### spark rpc encryption for query jobs
kylin.engine.spark-conf.spark.authenticate=true
kylin.engine.spark-conf.spark.authenticate.secret=kylin
kylin.engine.spark-conf.spark.network.crypto.enabled=true
kylin.engine.spark-conf.spark.network.crypto.keyLength=256
kylin.engine.spark-conf.spark.network.crypto.keyFactoryAlgorithm=PBKDF2WithHmacSHA256

How to Verification

After completing the configuration, restart Kylin and verify that both query and build tasks are executed successfully.