Skip to content

Commit 66747ba

Browse files
authored
Merge pull request #61 from marklogic/feature/docs-update
Updated setup guide in preparation for release.
2 parents 31d0ea4 + 0d17691 commit 66747ba

File tree

4 files changed

+29
-14
lines changed

4 files changed

+29
-14
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ out
1313
gradle-local.properties
1414
.vscode
1515
logs
16+
.ipynb_checkpoints
17+
venv

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,13 @@ publishing {
129129
}
130130
}
131131
}
132+
133+
task gettingStartedZip(type: Zip) {
134+
description = "Creates a zip of the getting-started project that is intended to be included as a downloadable file " +
135+
"on the GitHub release page."
136+
from "examples/getting-started"
137+
exclude "build", ".gradle", "gradle-*.properties"
138+
into "marklogic-spark-getting-started-${version}"
139+
archiveName "marklogic-spark-getting-started-${version}.zip"
140+
destinationDir(file('build'))
141+
}

docs/getting-started/jupyter.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ obtaining the connector and deploying an example application to MarkLogic.
1616

1717
To get started, install either [JupyterLab or Jupyter Notebook](https://jupyter.org/install). Both of these tools
1818
allow you to work with the connector in the same fashion. The rest of this guide will assume the use of Jupyter
19-
Notebook, though the instructions will work for JupyterLab as well.
19+
Notebook, though the instructions will work for JupyterLab as well.
20+
21+
Note that if you have not already installed PySpark, run `pip install pyspark` using the same Python interpreter that
22+
you will use to run Jupyter Notebook or JupyterLab.
2023

2124
Once you have installed, started, and accessed Jupyter Notebook in your web browser - in a default Notebook
2225
installation, you should be able to access it at http://localhost:8889/tree - click on "New" in the upper right hand

docs/getting-started/setup.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,10 @@ environments, as those examples depend on an application being deployed to MarkL
1111
## Obtaining the connector
1212

1313
The MarkLogic Spark connector can be downloaded from
14-
[this repository's Releases page](https://github.com/marklogic/marklogic-spark-connector/releases).
14+
[this repository's Releases page](https://github.com/marklogic/marklogic-spark-connector/releases). Each Spark
15+
environment should have documentation on how to include third-party connectors; please consult your Spark
16+
environment's documentation on how to achieve this.
1517

16-
TODO - until the 2.0 release occurs, you will need to build the Spark connector yourself (this will be removed
17-
before the 2.0 release occurs). To do so:
18-
19-
- Clone this repository.
20-
- Run `./gradlew clean shadowJar`.
21-
22-
The connector can then be accessed at `./build/libs/marklogic-spark-connector-2.0-SNAPSHOT.jar`.
2318

2419
## Deploy an example application
2520

@@ -32,13 +27,18 @@ To facilitate trying out the connector, perform the following steps to deploy an
3227
MarkLogic server that includes a
3328
[TDE view](https://docs.marklogic.com/guide/app-dev/TDE) and some documents that conform to that view.
3429

35-
1. Clone this repository using git.
36-
2. In the directory in which you cloned this repository, run `cd examples/getting-started`.
37-
3. Create a file named `gradle-local.properties` and add `mlPassword=changeme`, changing the text "changeme" to the
30+
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.
32+
2. Extract the contents of the downloaded zip file.
33+
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
3836
password of your MarkLogic `admin` user.
39-
4. Open the `gradle.properties` file and verify that the value of the `mlPort` property is an available port on the
37+
5. Open the `gradle.properties` file and verify that the value of the `mlPort` property is an available port on the
4038
machine running your MarkLogic server; the default port is 8020.
41-
5. Run `./gradlew -i mlDeploy` to deploy the example application.
39+
6. Ensure that the `./gradlew` file is executable; depending on your operating system, you may need to run
40+
`chmod 755 gradlew` to make the file executable.
41+
7. Run `./gradlew -i mlDeploy` to deploy the example application.
4242

4343
After the deployment finishes, your MarkLogic server will now have the following:
4444

0 commit comments

Comments
 (0)