use of com.thinkbiganalytics.kylo.spark.client.livy.LivyHeartbeatMonitor in project kylo by Teradata.
the class SparkLivyConfig method livyHeartbeatMonitor.
@Bean
public LivyHeartbeatMonitor livyHeartbeatMonitor() {
// LivyHeartbeatMonitor gets it's own jersey client
LivyProperties livyProperties = livyProperties();
final JerseyClientConfig config = new JerseyClientConfig();
config.setHost(livyProperties.getHostname());
config.setPort(livyProperties.getPort());
if (livyProperties().getTruststorePassword() != null) {
config.setHttps(true);
config.setTruststorePath(livyProperties.getTruststorePath());
config.setTruststorePassword(livyProperties.getTruststorePassword());
config.setTrustStoreType(livyProperties.getTruststoreType());
}
// end if
// all clients will have kerberos
LivyRestClient.setKerberosSparkProperties(kerberosSparkProperties());
JerseyRestClient livyRestClient = new LivyRestClient(config);
return new LivyHeartbeatMonitor(livyClient(), livyRestClient, livyServer(livyProperties()), livyProperties());
}
Aggregations