Documentation ¶
Index ¶
- Constants
- func GenCreateESSinkServiceRequest(platform string, region string, cluster string, service string, ...) (crReq *manage.CreateServiceRequest, sinkESConfigs string)
- func GenSinkESServiceInitRequest(req *manage.ServiceCommonRequest, logConfig *cloudlog.LogConfig, ...) *containersvc.RunTaskOptions
- func IsSinkESConfFile(filename string) bool
- func ValidateSinkESRequest(req *manage.CatalogCreateKafkaSinkESRequest) error
Constants ¶
View Source
const ( // ContainerImage is the main running container. ContainerImage = common.ContainerNamePrefix + "kafka-connect:" + defaultVersion SinkESInitContainerImage = common.ContainerNamePrefix + "kafka-sink-elasticsearch-init:" + defaultVersion DefaultHeapMB = 512 JSON_CONVERTER = "org.apache.kafka.connect.json.JsonConverter" CONFIG_NAME_SUFFIX = "config" OFFSET_NAME_SUFFIX = "offset" STATUS_NAME_SUFFIX = "status" DEFAULT_REPLICATION_FACTOR = uint(3) MAX_REPLICATION_FACTOR = uint(7) // ElasticSearch default configs DefaultMaxBufferedRecords = 20000 DefaultBatchSize = 2000 // The default ElasticSearch type. DEFAULT_TYPE_NAME = "kafka-connect" ENV_KAFKA_HEAP_OPTS = "KAFKA_HEAP_OPTS" ENV_CONNECT_REST_PORT = "CONNECT_REST_PORT" ENV_CONNECT_BOOTSTRAP_SERVERS = "CONNECT_BOOTSTRAP_SERVERS" ENV_CONNECT_GROUP_ID = "CONNECT_GROUP_ID" ENV_CONNECT_CONFIG_STORAGE_TOPIC = "CONNECT_CONFIG_STORAGE_TOPIC" ENV_CONNECT_OFFSET_STORAGE_TOPIC = "CONNECT_OFFSET_STORAGE_TOPIC" ENV_CONNECT_STATUS_STORAGE_TOPIC = "CONNECT_STATUS_STORAGE_TOPIC" ENV_CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR = "CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR" ENV_CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR = "CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR" ENV_CONNECT_STATUS_STORAGE_REPLICATION_FACTOR = "CONNECT_STATUS_STORAGE_REPLICATION_FACTOR" ENV_CONNECT_KEY_CONVERTER = "CONNECT_KEY_CONVERTER" ENV_CONNECT_VALUE_CONVERTER = "CONNECT_VALUE_CONVERTER" ENV_CONNECT_KEY_CONVERTER_SCHEMAS_ENABLE = "CONNECT_KEY_CONVERTER_SCHEMAS_ENABLE" ENV_CONNECT_VALUE_CONVERTER_SCHEMAS_ENABLE = "CONNECT_VALUE_CONVERTER_SCHEMAS_ENABLE" ENV_CONNECT_INTERNAL_KEY_CONVERTER = "CONNECT_INTERNAL_KEY_CONVERTER" ENV_CONNECT_INTERNAL_VALUE_CONVERTER = "CONNECT_INTERNAL_VALUE_CONVERTER" ENV_CONNECT_INTERNAL_KEY_CONVERTER_SCHEMAS_ENABLE = "CONNECT_INTERNAL_KEY_CONVERTER_SCHEMAS_ENABLE" ENV_CONNECT_INTERNAL_VALUE_CONVERTER_SCHEMAS_ENABLE = "CONNECT_INTERNAL_VALUE_CONVERTER_SCHEMAS_ENABLE" ENV_CONNECT_PLUGIN_PATH = "CONNECT_PLUGIN_PATH" ENV_CONNECT_LOG4J_LOGGERS = "CONNECT_LOG4J_LOGGERS" ENV_CONNECTOR_NAME = "CONNECTOR_NAME" ENV_CONNECTOR_HOSTS = "CONNECTOR_HOSTS" ENV_CONNECTOR_PORT = "CONNECTOR_PORT" ENV_ELASTICSEARCH_CONFIGS = "ELASTICSEARCH_CONFIGS" )
Variables ¶
This section is empty.
Functions ¶
func GenCreateESSinkServiceRequest ¶
func GenCreateESSinkServiceRequest(platform string, region string, cluster string, service string, kafkaServers string, esURIs string, req *manage.CatalogCreateKafkaSinkESRequest) (crReq *manage.CreateServiceRequest, sinkESConfigs string)
GenCreateESSinkServiceRequest returns the creation request for the kafka elasticsearch sink service.
func GenSinkESServiceInitRequest ¶
func GenSinkESServiceInitRequest(req *manage.ServiceCommonRequest, logConfig *cloudlog.LogConfig, serviceUUID string, replicas int64, manageurl string, sinkESConfigs string) *containersvc.RunTaskOptions
GenSinkESServiceInitRequest creates the init request for elasticsearch sink connector.
func IsSinkESConfFile ¶ added in v0.9.6
func ValidateSinkESRequest ¶
func ValidateSinkESRequest(req *manage.CatalogCreateKafkaSinkESRequest) error
ValidateSinkESRequest checks if the request is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.