Using MQTT with SSL on AEL
Complete the following steps to use the MQTT Consumer step with the Pentaho Adaptive Execution Layer (AEL) when connecting to an SSL-enabled MQTT server.
Navigate to the
data-integration/adaptive-execution/config
directory and open theapplication.properties
file with any text editor.Add the following parameters.
Add the DriverExtraJavaOptions parameter for the Spark driver application and specify the file path for
client.ks
and its associated password on the cluster:sparkDriverExtraJavaOptions=-Dlog4j.configuration=file:${sparkApp}/classes/log4j.xml -Djavax.net.ssl.trustStore=*\[filepath to client.ks on the cluster\]* -Djavax.net.ssl.trustStorePassword=password
sparkDriverExtraJavaOptions=-Dlog4j.configuration=file:${sparkApp}/classes/log4j.xml -Djavax.net.ssl.trustStore=/home/cloudera/client.ks -Djavax.net.ssl.trustStorePassword=password
Add the ExtraJavaOptions parameter for the Spark executors and specify the file path for
client.ks
and its password on the cluster:sparkExecutorExtraJavaOptions=-Djavax.net.ssl.trustStore=*\[filepath to client.ks on the cluster\]* -Djavax.net.ssl.trustStorePassword=password
sparkExecutorExtraJavaOptions=-Djavax.net.ssl.trustStore=/home/cloudera/client.ks -Djavax.net.ssl.trustStorePassword=password
Save and close the file.
Navigate to the
data-integration/adaptive-execution
folder and run thedaemon.sh
command from the command line interface.
Last updated
Was this helpful?