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: docs/getting-started/setup.md
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -25,32 +25,32 @@ projects data from documents in MarkLogic into rows.
25
25
26
26
To facilitate trying out the connector, perform the following steps to deploy an example application to your
27
27
MarkLogic server that includes a
28
-
[TDE view](https://docs.marklogic.com/guide/app-dev/TDE) and some documents that conform to that view.
28
+
[TDE view](https://docs.marklogic.com/guide/app-dev/TDE) and some documents that conform to that view. These instructions depend on
29
+
[using Docker](https://docs.docker.com/get-docker/) to install and initialize an instance of MarkLogic. If you already
30
+
have an instance of MarkLogic running, you can skip step 4 below, but ensure that the `gradle.properties` file in the
31
+
extracted directory contains valid connection properties for your instance of MarkLogic.
29
32
30
33
1. From [this repository's Releases page](https://github.com/marklogic/marklogic-spark-connector/releases), select
31
-
the latest release and download the `marklogic-spark-getting-started-2.0.0.zip` file.
34
+
the latest release and download the `marklogic-spark-getting-started-2.1.0.zip` file.
32
35
2. Extract the contents of the downloaded zip file.
33
36
3. Open a terminal window and go to the directory created by extracting the zip file; the directory should have a
34
-
name of "marklogic-spark-getting-started-2.0.0".
35
-
4. Create a file named `gradle-local.properties` and add `mlPassword=changeme`, changing the text "changeme" to the
36
-
password of your MarkLogic `admin` user.
37
-
5. Open the `gradle.properties` file and verify that the value of the `mlPort` property is an available port on the
38
-
machine running your MarkLogic server; the default port is 8020.
39
-
6. Ensure that the `./gradlew` file is executable; depending on your operating system, you may need to run
37
+
name of "marklogic-spark-getting-started-2.1.0".
38
+
4. Run `docker-compose up -d` to start an instance of MarkLogic
39
+
5. Ensure that the `./gradlew` file is executable; depending on your operating system, you may need to run
40
40
`chmod 755 gradlew` to make the file executable.
41
-
7. Run `./gradlew -i mlDeploy` to deploy the example application.
41
+
6. Run `./gradlew -i mlDeploy` to deploy the example application.
42
42
43
43
After the deployment finishes, your MarkLogic server will now have the following:
44
44
45
-
- An app server named `spark-example` listening on port 8020 (or the port you chose if you modified the `mlPort`
46
-
property).
47
-
- A database named `spark-example-content` that contains 1000 JSON documents in the `employee` collection.
45
+
- An app server named `spark-example` listening on port 8003.
46
+
- A database named `spark-example-content` that contains 1000 JSON documents in a collection named `employee`.
48
47
- A TDE with a schema name of `example` and a view name of `employee`.
49
-
- A user named `spark-example-user` that can be used with the Spark connector and [MarkLogic's qconsole tool](https://docs.marklogic.com/guide/qconsole/intro).
48
+
- A user named `spark-example-user` with a password of `password` that can be used with the Spark connector and [MarkLogic's qconsole tool](https://docs.marklogic.com/guide/qconsole/intro).
49
+
50
+
To verify that your application was deployed correctly, access your MarkLogic server's qconsole tool
51
+
via <http://localhost:8000/qconsole> . You can authenticate as the `spark-example-user` user that was created above,
52
+
as it's generally preferable to test as a non-admin user.
50
53
51
-
To verify that your application was deployed correctly, access your MarkLogic server's qconsole tool - for example,
52
-
if your MarkLogic server is deployed locally, you will go to <http://localhost:8000/qconsole> . You can authenticate as
53
-
the `spark-example-user` user that was created above, as it's generally preferable to test as a non-admin user.
54
54
After authenticating, perform the following steps:
55
55
56
56
1. In the "Database" dropdown, select `spark-example-content`.
0 commit comments