Run an Archiving Application Locally

After you have created an archiving application using the Data Archiving Library, you may want to run the application locally to test it before deploying it as a pipeline in the HERE Workspace. There are two ways you can run the application locally:

  • Run locally with Intellij
  • Run locally with a local Flink cluster

The following information shows how to run the SDK example apps using both these methods.

Run with IntelliJ

  1. Download the HERE Data SDK examples project.
  2. Fill in the necessary information in the following two files:

    • examples/data-archive/java/avro-example/src/test/resources/application.conf

    • examples/data-archive/java/avro-example/src/test/resources/

  3. If you want to use a custom logger, modify the file inside the test folder.
  4. Run the following Java application:


    Ensure that either the maven profile add-dependencies-for-IDEA is selected or the checkbox for Include dependencies with "Provided" scope in Edit Configurations for is selected before running the application.

  1. Download Flink 1.13.5 and start a local cluster:

    tar -xvf flink-1.13.5-bin-scala_2.12.tgz
    chmod 777 flink-1.13.5
    cd flink-1.13.5/bin
  2. Download the HERE Data SDK examples project.

  3. Fill in the necessary information in the following file:


  4. Get a file containing the credentials to allow the example application to access the input and output catalogs and place the file in the ~/.here/ folder. For instructions, see the Identity & Access Management Guide.

  5. Make sure that the credentials you use to generate the credentials.properies file provide read permission to the input stream layer and read/write permission to the index layer. The credentials should match those in the application.conf file.

    Alternatively, you can place the file in the folder:


    Note that the ~/.here/ folder takes priority over the examples/data-archive/java/avro-example/src/main/resources/ folder. The format for the file is: = <Client Id> = <Access Key Id>
       here.access.key.secret = <Access Key Secret>
       here.token.endpoint.url = <Token Endpoint>
  6. Go to your example project root folder (examples/data-archive/java/avro-example) and run the following command:

    mvn clean install

    This command builds the JAR file to upload to the local Flink cluster. The output JAR file should be generated in the folder:


  7. Go to your local Flink UI at http://localhost:8081. Click the left menu Submit new job, then Add New to upload the JAR file (has to be platform jar file).

  8. To run the application, click the checkbox on the left to select your uploaded JAR file.
  9. Set the Entry class field to, then click Submit.
  10. Go to "Running job" in the left menu to check whether your job is successfully running. You can also look at the Logs tab inside each job to see the generated logs. There is a file inside src/test/resource that you can copy to the src/main/resources/ folder.

results matching ""

    No results matching ""