Skip to content

Commit 30ced37

Browse files
committed
docs(installation): add required JVM settings for connection to Ignite (closes #504)
1 parent cbb831d commit 30ced37

File tree

5 files changed

+31
-5
lines changed

5 files changed

+31
-5
lines changed

documentation/first-steps/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If you already have an existing Java maven project, the OSHDB-API can be added t
2929
</dependency>
3030
```
3131

32-
Note that the OSHDB requires Java 17, so it could sometimes be necessary to specify this additional restriction in the `pom.xml` as well. Take a look at this [example `pom.xml`](./example-pom.xml) file that shows how all these settings should be put together.
32+
Note that the OSHDB requires Java 17[^1], so it could sometimes be necessary to specify this additional restriction in the `pom.xml` as well. Take a look at this [example `pom.xml`](./example-pom.xml) file that shows how all these settings should be put together.
3333

3434
If you're starting a new OSHDB project from scratch, it's typically a good idea to create a new maven project using the “create new project” wizard of your IDE of choice. After that you can use the steps described above to add OSHDB as a dependency to the new project.
3535

@@ -152,3 +152,5 @@ The result from this query is visualized in the following graph:
152152
## 12. Next steps
153153

154154
That's it for our first-steps tutorial. Of course there are many more options and features to explore in the OSHDB. For example how the contribution [view](../manual/views.md) lets you analyze each modification to the OSM objects individually, more advanced [filtering](../manual/filters.md) options, or other concepts like the [`flatMap`](../manual/map-reduce.md#flatmap) function, custom [`aggregateBy`](../manual/aggregation.md) and [`reduce`](../manual/map-reduce.md#reduce) operations, etc.
155+
156+
[^1]: Since Java 17, one of our [backends](database-backends.md) requires additional setting to the JVM, but that should not be relevant for these first steps.

documentation/first-steps/example-pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
</dependencies>
1414

1515
<properties>
16-
<maven.compiler.source>11</maven.compiler.source>
17-
<maven.compiler.target>11</maven.compiler.target>
16+
<maven.compiler.source>17</maven.compiler.source>
17+
<maven.compiler.target>17</maven.compiler.target>
1818
</properties>
19+
1920
</project>

documentation/manual/database-backends.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,26 @@ In order to use the OSHDB Ignite backend, it is necessary to add the maven modul
3232
<version>1.1.1</version>
3333
</dependency>
3434
```
35+
36+
Since Java 17, Ignite additionally requires some settings to the JVM which can be added e.g. to the [MAVEN_OPTS](https://maven.apache.org/configure.html):
37+
38+
```sh
39+
--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
40+
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
41+
--add-opens=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED
42+
--add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
43+
--add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
44+
--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
45+
--add-opens=java.base/java.io=ALL-UNNAMED
46+
--add-opens=java.base/java.nio=ALL-UNNAMED
47+
--add-opens=java.base/java.util=ALL-UNNAMED
48+
--add-opens=java.base/java.lang=ALL-UNNAMED
49+
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
50+
--add-opens=java.base/java.math=ALL-UNNAMED
51+
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
52+
--add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED
53+
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
54+
--add-opens=java.sql/java.sql=ALL-UNNAMED
55+
--add-opens=java.base/java.time=ALL-UNNAMED
56+
--add-opens=java.base/java.text=ALL-UNNAMED
57+
```

documentation/manual/helpers/OSHDBApplication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# OSHDB Application Template
22
## Installation
33

4-
Replace your OSHDB dependency with the following:
4+
Set up your Maven project according to the [first steps tutorial](../../first-steps/README.md), but replace your OSHDB dependency with the following:
55

66
```xml
77
<dependency>

documentation/manual/helpers/OSHDBDriver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# OSHDBDriver
22
## Installation
33

4-
Replace your OSHDB dependency with the following:
4+
Set up your Maven project according to the [first steps tutorial](../../first-steps/README.md), but replace your OSHDB dependency with the following:
55

66
```xml
77
<dependency>

0 commit comments

Comments
 (0)