You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+23-24Lines changed: 23 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,7 @@ distribution.
4
4
5
5
### Requirements:
6
6
* MarkLogic Server 11+
7
-
* Java version 17 is required to use the Gradle tools.
8
-
Additionally, SonarQube requires the use of Java 17.
7
+
* Java version 17
9
8
10
9
See [the Confluent compatibility matrix](https://docs.confluent.io/platform/current/installation/versions-interoperability.html#java)
11
10
for more information. After installing your desired version of Java, ensure that the `JAVA_HOME` environment variable
@@ -21,7 +20,7 @@ Note that you do not need to install [Gradle](https://gradle.org/) - the "gradle
21
20
appropriate version of Gradle if you do not have it installed already.
22
21
23
22
## Virtual Server Preparation
24
-
The project includes a docker-compose file that includes MarkLogic, SonarQube with a Postgres server, and Confluent
23
+
The project includes a docker-compose file in the repository root that includes MarkLogic, SonarQube with a Postgres server, and Confluent
25
24
Platform servers.
26
25
27
26
### Confluent Platform
@@ -33,14 +32,14 @@ The Confluent Platform servers in this docker-compose file are based on the Conf
33
32
[Install a Confluent Platform cluster in Docker using a Confluent docker-compose file](https://docs.confluent.io/platform/current/platform-quickstart.html).
34
33
35
34
## Docker Cluster Preparation
36
-
To setup the docker cluster, use the docker-compose file in the "test-app" directory to build the Docker cluster with
35
+
To setup the docker cluster, use the docker-compose file in the repository root to build the Docker cluster with
37
36
the command:
38
37
```
39
-
docker-compose -f docker-compose.yml up -d --build
38
+
docker-compose up -d --build
40
39
```
41
40
When the setup is complete, you should be able to run
*http://localhost:8000 to access the MarkLogic server.
63
62
*http://localhost:9000 to use the SonarQube server as described in the "Running Sonar Code Analysis"
64
-
section below.
63
+
section below.
65
64
*http://localhost:9021 to access
66
-
[Confluent's Control Center GUI](https://docs.confluent.io/platform/current/control-center/index.html) application.
67
-
Within Control Center, click on "controlcenter.cluster" to access the configuration for the Kafka cluster.
65
+
[Confluent's Control Center GUI](https://docs.confluent.io/platform/current/control-center/index.html) application.
66
+
Within Control Center, click on "controlcenter.cluster" to access the configuration for the Kafka cluster.
68
67
69
68
## MarkLogic Preparation
70
69
To prepare the MarkLogic server for automated testing as well as testing with the Confluent Platform, the Data Hub based
71
-
application must be deployed. From the "test-app" directory, follow these steps:
70
+
application must be deployed. From the root directory, follow these steps:
72
71
1. Run `./gradlew hubInit`
73
72
2. Edit gradle-local.properties and set `mlUsername` and `mlPassword`
74
73
3. Run `./gradlew -i mlDeploy`
@@ -102,7 +101,7 @@ To configure the SonarQube service, perform the following steps:
102
101
9. In the "Provide a token" panel, click on "Generate". Copy the token.
103
102
10. Click the "Continue" button.
104
103
11. Update `systemProp.sonar.token=<Replace With Your Sonar Token>` in `gradle-local.properties` in the root of your
105
-
project.
104
+
project.
106
105
107
106
To run the SonarQube analysis, run the following Gradle task in the root directory, which will run all the tests with
108
107
code coverage and then generate a quality report with SonarQube:
@@ -218,8 +217,8 @@ contents of the `data-hub-FINAL` database.
218
217
219
218
## Debugging the MarkLogic Kafka connector
220
219
221
-
The main mechanism for debugging an instance of the MarkLogic Kafka connector is by examining logs from the
222
-
connector. You can access those, along with logging from Kafka Connect and all other connectors, by running the
220
+
The main mechanism for debugging an instance of the MarkLogic Kafka connector is by examining logs from the
221
+
connector. You can access those, along with logging from Kafka Connect and all other connectors, by running the
223
222
following:
224
223
225
224
confluent local services connect log -f
@@ -228,43 +227,43 @@ See [the log command docs](https://docs.confluent.io/confluent-cli/current/comma
228
227
for more information.
229
228
230
229
You can also customize Confluent logging by [adjusting the log4j file for Kafka Connect](https://docs.confluent.io/platform/current/connect/logging.html#viewing-kconnect-logs).
231
-
For example, to prevent some logging from Kafka Connect and from the Java Client DMSDK, add the following to the
230
+
For example, to prevent some logging from Kafka Connect and from the Java Client DMSDK, add the following to the
0 commit comments