Skip to content

Instantly share code, notes, and snippets.

diff --git a/debezium-connector-mongodb/pom.xml b/debezium-connector-mongodb/pom.xml
index fec4250..5c2ccca 100644
--- a/debezium-connector-mongodb/pom.xml
+++ b/debezium-connector-mongodb/pom.xml
@@ -115,7 +115,7 @@
<color>yellow</color>
</log>
<wait>
- <log>(?s)waiting for connections on port 27017.*waiting for connections on port 27017</log> <!-- internal port, multiline matching -->
+ <log>waiting for connections on port 27017</log> <!-- internal port -->
This file has been truncated, but you can view the full file.
+ source common.sh
++ set -o pipefail
+ is_twitter_patch=true
+ getopts :nh opt
+ info 'Cleaning up workspace...'
+ printf '\033[0;32m%s\033[0m\n' 'Cleaning up workspace...'
Cleaning up workspace...
+ rm -rf workspace/mysql-data-a workspace/mysql-data-b workspace/mysql-data-c workspace/mysql-data-d
+ rm -rf workspace/zookeeper/data
+ rm -rf workspace/zookeeper/logs
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
diff --git a/connect.properties.php b/connect.properties.php
index 13f02fe..54ab0c1 100644
--- a/connect.properties.php
+++ b/connect.properties.php
@@ -1,10 +1,10 @@
<?php
$opt= getopt('p:g:');
-?>bootstrap.servers=localhost:40001
+?>bootstrap.servers=127.0.0.1:40001
key.converter=io.confluent.connect.avro.AvroConverter
diff --git a/run.sh b/run.sh
index ffdee2a..8484c90 100755
--- a/run.sh
+++ b/run.sh
@@ -251,16 +251,16 @@ curl -f -m10 -v -i -H "Accept:application/json" -H "Content-Type:application/jso
"connector.class": "io.debezium.connector.mysql.MySqlConnector",
"tasks.max": "1",
"database.hostname": "localhost",
- "database.port": "'"${listen_port[c]}"'",
+ "database.port": "'"${listen_port[d]}"'",
diff --git a/Makefile b/Makefile
index 06446dd88..44db95b84 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,12 @@ ifndef NOBANNER
endif
go install $(VT_GO_PARALLEL) -ldflags "$(shell tools/build_version_flags.sh)" ./go/...
+build_debug:
+ifndef NOBANNER
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
diff --git a/Makefile b/Makefile
index 06446dd88..44db95b84 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,12 @@ ifndef NOBANNER
endif
go install $(VT_GO_PARALLEL) -ldflags "$(shell tools/build_version_flags.sh)" ./go/...
+build_debug:
+ifndef NOBANNER