mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-07 13:07:22 +00:00
This commit is contained in:
parent
3f67f78479
commit
06cc35d048
@ -352,6 +352,7 @@
|
||||
<version>${antlr.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>generate-resources</phase>
|
||||
<goals>
|
||||
<goal>antlr4</goal>
|
||||
</goals>
|
||||
|
||||
@ -219,8 +219,11 @@ public class CatalogApplication extends Application<CatalogApplicationConfig> {
|
||||
if (catalogApplicationConfig.getSlackEventPublishers() != null) {
|
||||
for (SlackPublisherConfiguration slackPublisherConfiguration :
|
||||
catalogApplicationConfig.getSlackEventPublishers()) {
|
||||
SlackWebhookEventPublisher slackPublisher = new SlackWebhookEventPublisher(slackPublisherConfiguration);
|
||||
EventPubSub.addEventHandler(slackPublisher);
|
||||
if (slackPublisherConfiguration.getWebhookUrl() != null
|
||||
&& !slackPublisherConfiguration.getWebhookUrl().isEmpty()) {
|
||||
SlackWebhookEventPublisher slackPublisher = new SlackWebhookEventPublisher(slackPublisherConfiguration);
|
||||
EventPubSub.addEventHandler(slackPublisher);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -100,6 +100,8 @@ public class ElasticSearchEventPublisher extends AbstractEventPublisher {
|
||||
LOG.warn("Ignoring Entity Type {}", entityType);
|
||||
}
|
||||
if (updateRequest != null) {
|
||||
LOG.debug("Sending request to ElasticSearch");
|
||||
LOG.debug(updateRequest.toString());
|
||||
client.update(updateRequest, RequestOptions.DEFAULT);
|
||||
}
|
||||
} catch (ElasticsearchException e) {
|
||||
|
||||
@ -157,8 +157,8 @@ airflowConfiguration:
|
||||
|
||||
slackEventPublishers:
|
||||
- name: "slack events"
|
||||
webhookUrl: "slackIncomingWebhook URL"
|
||||
openMetadataUrl: http://${SERVER_HOST:-localhost}:${SERVER_PORT:-8585}
|
||||
webhookUrl: ${SLACK_WEBHOOK_URL:-""}
|
||||
openMetadataUrl: ${OPENMETADATA_SERVER_URL}
|
||||
filters:
|
||||
- eventType: "entityCreated"
|
||||
entities:
|
||||
|
||||
7
ingestion/.idea/misc.xml
generated
7
ingestion/.idea/misc.xml
generated
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (ingestion)" project-jdk-type="Python SDK" />
|
||||
<component name="PythonCompatibilityInspectionAdvertiser">
|
||||
<option name="version" value="3" />
|
||||
</component>
|
||||
</project>
|
||||
@ -35,7 +35,7 @@ default_args = {
|
||||
config = """
|
||||
{
|
||||
"source": {
|
||||
"type": "sample-data",
|
||||
"type": "sample_data",
|
||||
"serviceName": "sample_data",
|
||||
"serviceConnection": {
|
||||
"config": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user