Hi,
just getting started testing out debezium and I can't get the tests to pass out of the box.
I have never used docker, so there may be a configuration error, but...I was able to successfully run through the tutorial on the website found here:
http://debezium.io/docs/tutorial/ (which is great by the way. Thanks to those who put the work in on that).
after checking out the source from github, mvn clean test fails with the following:
```
...
INFO: Connected to localhost:3306 at /4 (sid:18780, cid:58)
Apr 06, 2017 9:14:32 AM com.github.shyiko.mysql.binlog.BinaryLogClient connect
WARNING: null
Apr 06, 2017 9:14:32 AM com.github.shyiko.mysql.binlog.BinaryLogClient connect
INFO: Connected to localhost:3306 at mysql-bin.000003/9077 (sid:18780, cid:61)
2017-04-06 09:14:40,720 ERROR MySqlConnectorIT||engine The 'database.user' value is invalid: A value is required [io.debezium.connector.mysql.MySqlConnectorTask]
2017-04-06 09:14:40,720 ERROR MySqlConnectorIT||engine The 'database.password' value is invalid: A value is required [io.debezium.connector.mysql.MySqlConnectorTask]
2017-04-06 09:14:40,720 ERROR MySqlConnectorIT||engine The 'database.hostname' value is invalid: A value is required [io.debezium.connector.mysql.MySqlConnectorTask]
2017-04-06 09:14:40,720 ERROR MySqlConnectorIT||engine The '
database.server.name' value is invalid: A value is required [io.debezium.connector.mysql.MySqlConnectorTask]
Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 12.583 sec <<< FAILURE! - in io.debezium.connector.mysql.MySqlConnectorIT
shouldValidateAcceptableConfiguration(io.debezium.connector.mysql.MySqlConnectorIT) Time elapsed: 0.093 sec <<< FAILURE!
java.lang.AssertionError: <['connector_test.customers', 'regression_test.dbz84_integer_types_table', 'regression_test.dbz_123_bitvaluetest', 'json_test.dbz_126_jsontable', 'regression_test.dbz_104_customers', 'regression_test.dbz_100_enumsettest', 'regression_test.dbz_147_decimalvalues', 'regression_test.dbz_195_numvalues', 'regression_test.t1464075356413_testtable6', 'connector_test.products_on_hand', 'connector_test_ro.products', 'connector_test.orders', 'regression_test.dbz_102_charsettest', 'connector_test.products', 'connector_test_ro.products_on_hand', 'regression_test.dbz_114_zerovaluetest', 'regression_test.dbz_85_fractest', 'connector_test_ro.customers', 'connector_test_ro.orders', 'readbinlog_test.person']> does not contain element(s):<['readbinlog_test.product', 'readbinlog_test.purchased']>
at org.fest.assertions.Fail.failure(Fail.java:228)
at org.fest.assertions.Assert.failure(Assert.java:149)
at org.fest.assertions.ItemGroupAssert.failureIfExpectedElementsNotFound(ItemGroupAssert.java:102)
at org.fest.assertions.ItemGroupAssert.assertContainsOnly(ItemGroupAssert.java:77)
at org.fest.assertions.ObjectGroupAssert.containsOnly(ObjectGroupAssert.java:65)
at io.debezium.connector.mysql.MySqlConnectorIT.shouldValidateAcceptableConfiguration(MySqlConnectorIT.java:244)
Running io.debezium.connector.mysql.MetadataIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.146 sec - in io.debezium.connector.mysql.MetadataIT
....
[INFO] --- maven-failsafe-plugin:2.18.1:verify (verify) @ debezium-connector-mysql ---
[INFO] Failsafe report directory: /home/james/repos/debezium/debezium-connector-mysql/target/failsafe-reports
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Debezium Checkstyle Rules .......................... SUCCESS [ 2.130 s]
[INFO] Debezium Parent POM ................................ SUCCESS [ 0.802 s]
[INFO] Debezium Assembly Descriptors ...................... SUCCESS [ 1.118 s]
[INFO] Debezium Core ...................................... SUCCESS [ 23.480 s]
[INFO] Debezium Embedded .................................. SUCCESS [ 2.860 s]
[INFO] Debezium Connector for MySQL ....................... FAILURE [ 48.896 s]
[INFO] Debezium Connector for PostgreSQL .................. SKIPPED
[INFO] Debezium Connector for MongoDB ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:19 min
[INFO] Finished at: 2017-04-06T09:14:53-07:00
[INFO] Final Memory: 52M/304M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.18.1:verify (verify) on project debezium-connector-mysql: There are test failures.
[ERROR]
[ERROR] Please refer to /home/james/repos/debezium/debezium-connector-mysql/target/failsafe-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :debezium-connector-mysql
```
More info:
I downloaded debezium following the instructions on the github page. git log says the commit is at
```
commit c04c5c9997ae70d1f118cd1cc732634874854179
Merge: 4b2b596 d42736e
Author: Randall Hauch <r...m>
Date: Tue Apr 4 16:54:58 2017 -0500
```
I checked out tag 0.5.0 (commit 2bc3d459549f3c29959dce07fc7a9077c45e0315) and hit the exact same error.
My prereqs are versioned as follows:
```
git version 2.11.0
javac 1.8.0_121
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
Maven home: /usr/share/maven
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: /usr/lib64/java/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.10.2", arch: "amd64", family: "unix"
Docker version 17.03.1-ce, build c6d412e
```
Where I think I'm making a mistake is that I don't really understand what is being asked in the README at
https://github.com/debezium/debezium#configure-your-docker-environmentI am running docker on my laptop, and was able to get through the tutorial without any problems, but I don't know what the correct settings for the following environment variables should be:
```
export DOCKER_HOST=tcp://10.1.2.2:2376
export DOCKER_CERT_PATH=/path/to/cdk/.vagrant/machines/default/virtualbox/.docker
export DOCKER_TLS_VERIFY=1
```
I currently have NONE of these set ( running env | grep -i docker returns nothing)
Thanks for any advice on how to get this test to pass. If it is a real bug, I'll file on the jboss bug site.
James