If you want a driver-based SQL-MapReduce function to use a SSL JDBC connection to connect to Aster Database instead of a normal JDBC connection, you must specify the authentication arguments SSLSettings and SSLTrustStorePassword. For their descriptions, see Authentication Argument Descriptions.
For JDBC automatic cascading to work while SSL is enabled in SQL-MapReduce, the file truststore.jks must reside on the queen and all workers. If JDBC automatic cascading does not work:
- On each worker, copy truststore.jks to /home/beehive/truststore.
- Specify this argument:
SSLSettings('ENABLESSL=true&SSLTRUSTSTORE=/home/beehive/truststore/truststore.jks')
Example
SELECT * FROM EIGEN_CENTRALITY (
ON (SELECT 1)
PARTITION BY 1
SSLSettings ('jdbc:ncluster://192.168.1.2/beehive?
ENABLESSL=true&SSLTRUSTSTORE=/home/beehive/truststore/truststore.jks')
SSLTRUSTSTOREPASSWORD ('123456')
InputTable ('raw_edges')
OutputTable ('eigen_centrality_string')
Threshold ('0.01')
);