Skip to content

Commit 9a743ee

Browse files
heremaps-botheremaps-bot
authored andcommitted
HERE Data SDK for Java & Scala Release 2.75.5
1 parent 5f46e8f commit 9a743ee

File tree

61 files changed

+489
-187
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+489
-187
lines changed

data-archive/java/avro-example/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,13 @@ After the application has been configured, you can run it locally by running the
147147
As the `argument`, you must provide the `-Padd-dependencies-for-local-run` parameter that adds all the dependencies
148148
needed for a local run of the archiving application.
149149

150+
To run your Flink application locally with Java 17, you should provide `--add-opens=java.base/java.util=ALL-UNNAMED` to the command arguments.
151+
150152
Execute the following command in the [`avro-example`](../avro-example) directory to run the Avro Archiving Application:
151153

152154
```bash
153155
mvn compile exec:exec \
154-
-Dexec.args="-cp %classpath com.here.platform.data.archive.example.Main" -Padd-dependencies-for-local-run
156+
-Dexec.args="--add-opens=java.base/java.util=ALL-UNNAMED -cp %classpath com.here.platform.data.archive.example.Main" -Padd-dependencies-for-local-run
155157
```
156158

157159
At a certain point after start, the application pauses and waits for you to ingest data you want to archive.
@@ -445,7 +447,7 @@ Use the [`olp pipeline template create`](https://developer.here.com/documentatio
445447

446448
```bash
447449
olp pipeline template create avro-pipeline-template \
448-
stream-6.0 \
450+
stream-6.1 \
449451
$PATH_TO_JAR \
450452
com.here.platform.dal.DALMain \
451453
--input-catalog-ids=source \
@@ -462,7 +464,7 @@ HERE platform uses pipelines to process data from HERE geospatial resources and
462464
Use the [`olp pipeline create`](https://developer.here.com/documentation/open-location-platform-cli/user_guide/topics/pipeline/pipeline-commands.html#pipeline-create) command to create a pipeline:
463465

464466
```bash
465-
olp pipeline create avro-pipeline --scope $PROJECT_HRN
467+
olp pipeline create avro-pipeline --email $OLP_EMAIL --scope $PROJECT_HRN
466468
```
467469

468470
Save the pipeline ID to the `PIPELINE_ID` variable as you will need it later in this tutorial.

data-archive/java/avro-example/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.here.platform.data.archive</groupId>
66
<artifactId>data-archive-avro-example</artifactId>
7-
<version>0.0.950</version>
7+
<version>0.0.957</version>
88
<packaging>jar</packaging>
99

1010
<!-- Meta information section start -->
@@ -23,17 +23,17 @@
2323
<connection>scm:git:https://github.com/heremaps/here-workspace-examples-java-scala.git</connection>
2424
<developerConnection>scm:git:git@github.com:heremaps/here-workspace-examples-java-scala.git</developerConnection>
2525
<url>https://github.com/heremaps/here-workspace-examples-java-scala</url>
26-
<tag>2.74.4</tag>
26+
<tag>2.75.5</tag>
2727
</scm>
2828

2929
<!-- Meta information section end -->
3030
<properties>
3131
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
32-
<java.version>1.8</java.version>
32+
<java.version>17</java.version>
3333
<exec.classpathScope>compile</exec.classpathScope>
3434
<exec.executable>java</exec.executable>
3535

36-
<sdk-bom.version>2.74.4</sdk-bom.version>
36+
<sdk-bom.version>2.75.5</sdk-bom.version>
3737
<scala.compat.version>2.12</scala.compat.version>
3838
<artifact.wagon.version>2.0.24</artifact.wagon.version>
3939

data-archive/java/parquet-example/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,13 @@ After the application has been configured, you can run it locally by running the
147147
As the `argument`, you must provide the `-Padd-dependencies-for-local-run` parameter that adds all the dependencies
148148
needed for a local run of the archiving application.
149149

150+
To run your Flink application locally with Java 17, you should provide `--add-opens=java.base/java.util=ALL-UNNAMED` to the command arguments.
151+
150152
Execute the following command in the [`parquet-example`](../parquet-example) directory to run the Parquet Archiving Application:
151153

152154
```bash
153155
mvn compile exec:exec \
154-
-Dexec.args="-cp %classpath com.here.platform.data.archive.example.Main" -Padd-dependencies-for-local-run
156+
-Dexec.args="--add-opens=java.base/java.util=ALL-UNNAMED -cp %classpath com.here.platform.data.archive.example.Main" -Padd-dependencies-for-local-run
155157
```
156158

157159
At a certain point after start, the application pauses and waits for you to ingest data you want to archive.
@@ -456,7 +458,7 @@ Use the [`olp pipeline template create`](https://developer.here.com/documentatio
456458

457459
```bash
458460
olp pipeline template create parquet-pipeline-template \
459-
stream-6.0 \
461+
stream-6.1 \
460462
$PATH_TO_JAR \
461463
com.here.platform.dal.DALMain \
462464
--input-catalog-ids=source \
@@ -473,7 +475,7 @@ HERE platform uses pipelines to process data from HERE geospatial resources and
473475
Use the [`olp pipeline create`](https://developer.here.com/documentation/open-location-platform-cli/user_guide/topics/pipeline/pipeline-commands.html#pipeline-create) command to create a pipeline:
474476

475477
```bash
476-
olp pipeline create parquet-pipeline --scope $PROJECT_HRN
478+
olp pipeline create parquet-pipeline --email $OLP_EMAIL --scope $PROJECT_HRN
477479
```
478480

479481
Save the pipeline ID to the `PIPELINE_ID` variable as you will need it later in this tutorial.

data-archive/java/parquet-example/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.here.platform.data.archive</groupId>
66
<artifactId>data-archive-parquet-example</artifactId>
7-
<version>0.0.950</version>
7+
<version>0.0.957</version>
88
<packaging>jar</packaging>
99

1010
<!-- Meta information section start -->
@@ -23,17 +23,17 @@
2323
<connection>scm:git:https://github.com/heremaps/here-workspace-examples-java-scala.git</connection>
2424
<developerConnection>scm:git:git@github.com:heremaps/here-workspace-examples-java-scala.git</developerConnection>
2525
<url>https://github.com/heremaps/here-workspace-examples-java-scala</url>
26-
<tag>2.74.4</tag>
26+
<tag>2.75.5</tag>
2727
</scm>
2828

2929
<!-- Meta information section end -->
3030
<properties>
3131
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
32-
<java.version>1.8</java.version>
32+
<java.version>17</java.version>
3333
<exec.classpathScope>compile</exec.classpathScope>
3434
<exec.executable>java</exec.executable>
3535

36-
<sdk-bom.version>2.74.4</sdk-bom.version>
36+
<sdk-bom.version>2.75.5</sdk-bom.version>
3737
<scala.compat.version>2.12</scala.compat.version>
3838
<artifact.wagon.version>2.0.24</artifact.wagon.version>
3939

data-archive/java/sensoris-protobuf-example/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,13 @@ After the application has been configured, you can run it locally by running the
147147
As the `argument`, you must provide the `-Padd-dependencies-for-local-run` parameter that adds all the dependencies
148148
needed for a local run of the archiving application.
149149

150+
To run your Flink application locally with Java 17, you should provide `--add-opens=java.base/java.util=ALL-UNNAMED` to the command arguments.
151+
150152
Execute the following command in the [`sensoris-protobuf-example`](../sensoris-protobuf-example) directory to run the Sensoris Protobuf Archiving Application:
151153

152154
```bash
153155
mvn compile exec:exec \
154-
-Dexec.args="-cp %classpath com.here.platform.data.archive.example.Main" -Padd-dependencies-for-local-run
156+
-Dexec.args="--add-opens=java.base/java.util=ALL-UNNAMED -cp %classpath com.here.platform.data.archive.example.Main" -Padd-dependencies-for-local-run
155157
```
156158

157159
At a certain point after start, the application pauses and waits for you to ingest data you want to archive.
@@ -471,7 +473,7 @@ Use the [`olp pipeline template create`](https://developer.here.com/documentatio
471473

472474
```bash
473475
olp pipeline template create sensoris-protobuf-pipeline-template \
474-
stream-6.0 \
476+
stream-6.1 \
475477
$PATH_TO_JAR \
476478
com.here.platform.dal.DALMain \
477479
--input-catalog-ids=source \
@@ -488,7 +490,7 @@ HERE platform uses pipelines to process data from HERE geospatial resources and
488490
Use the [`olp pipeline create`](https://developer.here.com/documentation/open-location-platform-cli/user_guide/topics/pipeline/pipeline-commands.html#pipeline-create) command to create a pipeline:
489491

490492
```bash
491-
olp pipeline create sensoris-protobuf-pipeline --scope $PROJECT_HRN
493+
olp pipeline create sensoris-protobuf-pipeline --email $OLP_EMAIL --scope $PROJECT_HRN
492494
```
493495

494496
Save the pipeline ID to the `PIPELINE_ID` variable as you will need it later in this tutorial.

data-archive/java/sensoris-protobuf-example/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.here.platform.examples</groupId>
66
<artifactId>data-archive-sensoris-protobuf-example</artifactId>
7-
<version>0.0.950</version>
7+
<version>0.0.957</version>
88
<packaging>jar</packaging>
99

1010
<!-- Meta information section -->
@@ -25,18 +25,18 @@
2525
<connection>scm:git:https://github.com/heremaps/here-workspace-examples-java-scala.git</connection>
2626
<developerConnection>scm:git:git@github.com:heremaps/here-workspace-examples-java-scala.git</developerConnection>
2727
<url>https://github.com/heremaps/here-workspace-examples-java-scala</url>
28-
<tag>2.74.4</tag>
28+
<tag>2.75.5</tag>
2929
</scm>
3030

3131
<properties>
3232
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33-
<java.version>1.8</java.version>
33+
<java.version>17</java.version>
3434
<exec.classpathScope>compile</exec.classpathScope>
3535
<exec.executable>java</exec.executable>
3636

3737
<artifact.wagon.version>2.0.24</artifact.wagon.version>
3838

39-
<sdk-bom.version>2.74.4</sdk-bom.version>
39+
<sdk-bom.version>2.75.5</sdk-bom.version>
4040
<scala.compat.version>2.12</scala.compat.version>
4141

4242
<commons-logging.version>1.2</commons-logging.version>

data-processing/java/geometry-lifter/README.md

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ In the commands that follow, replace the variable placeholders with the followin
3232
- `$CATALOG_HRN` is your output catalog's `HRN` (returned by the `olp catalog create` command).
3333
- `$HRN_PARTITION` is the platform environment you are in. The value should be `here`.
3434
- `$PROJECT_HRN` is your project's `HRN` (returned by the `olp project create` command).
35+
- `$OLP_EMAIL` is a single contact e-mail address for the pipeline.
3536
- `$REALM` The ID of your organization, also called a realm. Consult your platform
3637
invitation letter to learn your organization ID.
3738
- `$CATALOG_RIB` is the HRN of the public _HERE Map Content_ catalog in your pipeline configuration ([HERE environment](./config/here/pipeline-config.conf)).
@@ -104,18 +105,34 @@ parameter.
104105

105106
Set the environment variable `$PATH_TO_CONFIG_FOLDER` to [`./config/here`](config/here).
106107

108+
To run your Spark application locally with Java 17, you should provide the following add-opens parameters to the command arguments:
109+
110+
```
111+
--add-opens=java.base/java.util=ALL-UNNAMED
112+
--add-opens=java.base/java.lang=ALL-UNNAMED
113+
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
114+
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
115+
--add-opens=java.base/java.nio=ALL-UNNAMED
116+
```
117+
107118
Use all the above settings to run the following command in the [`geometry-lifter`](../geometry-lifter)
108119
directory to run the Geometry Lifter Compiler.
109120

110121
For the HERE platform environment:
111122

112123
```bash
113-
mvn compile exec:java \
114-
-Dexec.mainClass=com.here.platform.data.processing.example.java.geometry.lifter.Main \
115-
-Dpipeline-config.file=./config/here/local-pipeline-config.conf \
116-
-Dpipeline-job.file=./config/here/pipeline-job.conf \
117-
-Dconfig.file=./config/here/local-application.conf \
118-
-Dspark.master=local[*]
124+
mvn compile exec:exec \
125+
-Dexec.args="--add-opens=java.base/java.util=ALL-UNNAMED \
126+
--add-opens=java.base/java.lang=ALL-UNNAMED \
127+
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED \
128+
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED \
129+
--add-opens=java.base/java.nio=ALL-UNNAMED \
130+
-cp %classpath \
131+
-Dpipeline-config.file=./config/here/local-pipeline-config.conf \
132+
-Dpipeline-job.file=./config/here/pipeline-job.conf \
133+
-Dconfig.file=./config/here/local-application.conf \
134+
-Dspark.master=local[*] \
135+
com.here.platform.data.processing.example.java.geometry.lifter.Main"
119136
```
120137

121138
After one run, in the HERE platform environment, you can inspect the local catalog with the OLP CLI:
@@ -255,8 +272,8 @@ partition of HERE Map Content. Make sure you update the layer coverage to reflec
255272
geographical region.
256273

257274
```bash
258-
olp pipeline create $COMPONENT_NAME_Pipeline --scope $PROJECT_HRN
259-
olp pipeline template create $COMPONENT_NAME_Template batch-4.0 $PATH_TO_JAR \
275+
olp pipeline create $COMPONENT_NAME_Pipeline --email $OLP_EMAIL --scope $PROJECT_HRN
276+
olp pipeline template create $COMPONENT_NAME_Template batch-4.1 $PATH_TO_JAR \
260277
com.here.platform.data.processing.example.java.geometry.lifter.Main \
261278
--workers=4 --worker-units=3 --supervisor-units=2 --input-catalog-ids=rib \
262279
--scope $PROJECT_HRN

data-processing/java/geometry-lifter/pom.xml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.here.platform.data.processing.example.java.geometry.lifter</groupId>
66
<artifactId>geometry-lifter</artifactId>
7-
<version>0.0.950</version>
7+
<version>0.0.957</version>
88
<packaging>jar</packaging>
99

1010
<name>Batch Processor compiler for Geometry Lifter in Java</name>
@@ -23,18 +23,20 @@
2323
<connection>scm:git:https://github.com/heremaps/here-workspace-examples-java-scala.git</connection>
2424
<developerConnection>scm:git:git@github.com:heremaps/here-workspace-examples-java-scala.git</developerConnection>
2525
<url>https://github.com/heremaps/here-workspace-examples-java-scala</url>
26-
<tag>2.74.4</tag>
26+
<tag>2.75.5</tag>
2727
</scm>
2828

2929
<properties>
30-
<java.version>1.8</java.version>
30+
<java.version>17</java.version>
3131
<maven.compiler.source>${java.version}</maven.compiler.source>
3232
<maven.compiler.target>${java.version}</maven.compiler.target>
33-
<sdk-bom.version>2.74.4</sdk-bom.version>
33+
<sdk-bom.version>2.75.5</sdk-bom.version>
3434
<exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
3535
<maven-shade-plugin.version>3.6.0</maven-shade-plugin.version>
3636
<scala-maven-plugin.version>4.5.4</scala-maven-plugin.version>
3737
<scala.compat.version>2.12</scala.compat.version>
38+
<artifact.wagon.version>2.0.24</artifact.wagon.version>
39+
<exec.executable>java</exec.executable>
3840
</properties>
3941

4042
<dependencyManagement>
@@ -102,6 +104,16 @@
102104
</dependency>
103105
</dependencies>
104106

107+
<repositories>
108+
<repository>
109+
<id>HERE_PLATFORM_ARTIFACT</id>
110+
<layout>here</layout>
111+
<!-- The 'here+' prefix serves to invoke the HERE wagon extention that handles OAUTH
112+
and re-writes Maven URIs for the HERE secure repository.-->
113+
<url>here+artifact-service://artifact-service</url>
114+
</repository>
115+
</repositories>
116+
105117
<build>
106118
<plugins>
107119
<plugin>
@@ -114,6 +126,13 @@
114126
<version>${exec-maven-plugin.version}</version>
115127
</plugin>
116128
</plugins>
129+
<extensions>
130+
<extension>
131+
<groupId>com.here.platform.artifact</groupId>
132+
<artifactId>artifact-wagon</artifactId>
133+
<version>${artifact.wagon.version}</version>
134+
</extension>
135+
</extensions>
117136
</build>
118137

119138
<profiles>

data-processing/java/heremapcontent-difftool/README.md

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ In the commands that follow, replace the variable placeholders with the followin
4040

4141
- `$HRN_PARTITION` is the platform environment you are in. The value should be `here`.
4242
- `$PROJECT_HRN` is your project's `HRN` (returned by the `olp project create` command).
43+
- `$OLP_EMAIL` is a single contact e-mail address for the pipeline.
4344
- `$REALM` is the ID of your organization, also called a realm. Consult your platform
4445
invitation letter to learn your organization ID.
4546
- `$CATALOG_RIB` is the HRN of the public _HERE Map Content_ catalog in your pipeline configuration ([HERE environment](./config/here/local-pipeline-config.conf).
@@ -132,6 +133,16 @@ parameter.
132133

133134
Set the environment variable `$PATH_TO_CONFIG_FOLDER` to [`./config/here`](config/here).
134135

136+
To run your Spark application locally with Java 17, you should provide the following add-opens parameters to the command arguments:
137+
138+
```
139+
--add-opens=java.base/java.util=ALL-UNNAMED
140+
--add-opens=java.base/java.lang=ALL-UNNAMED
141+
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
142+
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
143+
--add-opens=java.base/java.nio=ALL-UNNAMED
144+
```
145+
135146
The first run of the pipeline will use the job configuration [`pipeline-job-first.conf`](config/here/pipeline-job-first.conf). As
136147
mentioned before, the first run will compute the differences between the catalog version specified
137148
in [`pipeline-job-first.conf`](config/here/pipeline-job-first.conf) and an empty catalog. That means that all segments contained in the
@@ -141,12 +152,18 @@ input catalog will be considered as newly added segments. Run the following comm
141152
For the HERE platform environment:
142153

143154
```bash
144-
mvn exec:java \
145-
-Dexec.mainClass=com.here.platform.data.processing.example.java.difftool.processor.Main \
146-
-Dpipeline-config.file=./config/here/local-pipeline-config.conf \
147-
-Dpipeline-job.file=./config/here/pipeline-job-first.conf \
148-
-Dconfig.file=./config/here/local-application.conf \
149-
-Dspark.master=local[*]
155+
mvn compile exec:exec \
156+
-Dexec.args="--add-opens=java.base/java.util=ALL-UNNAMED \
157+
--add-opens=java.base/java.lang=ALL-UNNAMED \
158+
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED \
159+
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED \
160+
--add-opens=java.base/java.nio=ALL-UNNAMED \
161+
-cp %classpath \
162+
-Dpipeline-config.file=./config/here/local-pipeline-config.conf \
163+
-Dpipeline-job.file=./config/here/pipeline-job-first.conf \
164+
-Dconfig.file=./config/here/local-application.conf \
165+
-Dspark.master=local[*] \
166+
com.here.platform.data.processing.example.java.difftool.processor.Main"
150167
```
151168

152169
In the second run, we can now compute the differences between the version used in the first run and
@@ -156,12 +173,18 @@ the version specified in [`pipeline-job-second.conf`](config/here/pipeline-job-s
156173
For the HERE platform environment:
157174

158175
```bash
159-
mvn exec:java \
160-
-Dexec.mainClass=com.here.platform.data.processing.example.java.difftool.processor.Main \
161-
-Dpipeline-config.file=./config/here/local-pipeline-config.conf \
162-
-Dpipeline-job.file=./config/here/pipeline-job-second.conf \
163-
-Dconfig.file=./config/here/local-application.conf \
164-
-Dspark.master=local[*]
176+
mvn compile exec:exec \
177+
-Dexec.args="--add-opens=java.base/java.util=ALL-UNNAMED \
178+
--add-opens=java.base/java.lang=ALL-UNNAMED \
179+
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED \
180+
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED \
181+
--add-opens=java.base/java.nio=ALL-UNNAMED \
182+
-cp %classpath \
183+
-Dpipeline-config.file=./config/here/local-pipeline-config.conf \
184+
-Dpipeline-job.file=./config/here/pipeline-job-second.conf \
185+
-Dconfig.file=./config/here/local-application.conf \
186+
-Dspark.master=local[*] \
187+
com.here.platform.data.processing.example.java.difftool.processor.Main"
165188
```
166189

167190
After the second run, in the HERE platform environment you can inspect the local catalog with the OLP CLI:
@@ -310,8 +333,8 @@ partition of HERE Map Content. Make sure you update the layer coverage to reflec
310333
geographical region.
311334

312335
```bash
313-
olp pipeline create $COMPONENT_NAME_Pipeline --scope $PROJECT_HRN
314-
olp pipeline template create $COMPONENT_NAME_Template batch-4.0 $PATH_TO_JAR \
336+
olp pipeline create $COMPONENT_NAME_Pipeline --email $OLP_EMAIL --scope $PROJECT_HRN
337+
olp pipeline template create $COMPONENT_NAME_Template batch-4.1 $PATH_TO_JAR \
315338
com.here.platform.data.processing.example.java.difftool.processor.Main \
316339
--workers=4 --worker-units=3 --supervisor-units=2 --input-catalog-ids=rib \
317340
--scope $PROJECT_HRN

0 commit comments

Comments
 (0)