mirror of https://github.com/apache/nifi.git
NIFI-8267 - Fix for HWX Schema Registry to use integers (#4850)
This commit is contained in:
parent
f2a03fca2a
commit
c5b5be89a2
|
@ -202,10 +202,10 @@ public class HortonworksSchemaRegistry extends AbstractControllerService impleme
|
|||
}
|
||||
|
||||
schemaRegistryConfig.put(SchemaRegistryClient.Configuration.SCHEMA_REGISTRY_URL.name(), urlValue);
|
||||
schemaRegistryConfig.put(SchemaRegistryClient.Configuration.CLASSLOADER_CACHE_SIZE.name(), 10L);
|
||||
schemaRegistryConfig.put(SchemaRegistryClient.Configuration.CLASSLOADER_CACHE_EXPIRY_INTERVAL_SECS.name(), context.getProperty(CACHE_EXPIRATION).asTimePeriod(TimeUnit.SECONDS));
|
||||
schemaRegistryConfig.put(SchemaRegistryClient.Configuration.CLASSLOADER_CACHE_SIZE.name(), 10);
|
||||
schemaRegistryConfig.put(SchemaRegistryClient.Configuration.CLASSLOADER_CACHE_EXPIRY_INTERVAL_SECS.name(), context.getProperty(CACHE_EXPIRATION).asTimePeriod(TimeUnit.SECONDS).intValue());
|
||||
schemaRegistryConfig.put(SchemaRegistryClient.Configuration.SCHEMA_VERSION_CACHE_SIZE.name(), context.getProperty(CACHE_SIZE).asInteger());
|
||||
schemaRegistryConfig.put(SchemaRegistryClient.Configuration.SCHEMA_VERSION_CACHE_EXPIRY_INTERVAL_SECS.name(), context.getProperty(CACHE_EXPIRATION).asTimePeriod(TimeUnit.SECONDS));
|
||||
schemaRegistryConfig.put(SchemaRegistryClient.Configuration.SCHEMA_VERSION_CACHE_EXPIRY_INTERVAL_SECS.name(), context.getProperty(CACHE_EXPIRATION).asTimePeriod(TimeUnit.SECONDS).intValue());
|
||||
Map<String, String> sslProperties = buildSslProperties(context);
|
||||
if (!sslProperties.isEmpty()) {
|
||||
schemaRegistryConfig.put(CLIENT_SSL_PROPERTY_PREFIX, sslProperties);
|
||||
|
|
Loading…
Reference in New Issue