Java Code of Big Data Spatial and Graph for Running Analytics (Calculating Triangles) Fails when the JVM Property "java.io.tmpdir" is Not Set (Doc ID 2090910.1)

Last updated on DECEMBER 21, 2015

Applies to:

Oracle Big Data Spatial and Graph - Version 1.1 and later
Linux x86-64

Symptoms

The Java code of Big Data Spatial and Graph V1.1 for calculating triangleskeeds fails when the JVM property, java.io.tmpdir, is not set.

1. When running Oracle Big Data Spatial and Graph 1.1 on a custom CDH 5.4.5 parcel-based cluster the Java code of Big Data Spatial and Graph for calculating triangleskeeds fails as below. Note there are a huge number of vertices and edges.

Exception in thread "main" java.util.concurrent.ExecutionException: java.lang.Exception: internal exception
 at jsr166e.CompletableFuture.get(CompletableFuture.java:1521)
 at oracle.pgx.api.PgxSession.readGraphWithProperties(PgxSession.java:568)
 at fors.GPX.main(GPX.java:81)
Caused by: java.lang.Exception: internal exception
 at oracle.pgx.common.marshalers.ExceptionMarshaler.toUnserializedException(ExceptionMarshaler.java:63)
 at oracle.pgx.common.marshalers.ExceptionMarshaler.unmarshal(ExceptionMarshaler.java:76)
 at oracle.pgx.client.RemoteUtils.getResponseContent(RemoteUtils.java:95)
 at oracle.pgx.client.RemoteUtils.parse(RemoteUtils.java:124)
 at oracle.pgx.client.PgxRemoteFuture$1.run(PgxRemoteFuture.java:156)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)

2. After running the client using embedded mode to provide additional information on the problem, and raising the max Java Heap size to 16GB for the client, the following exception is raised:

Exception in thread "main" java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: character to be escaped is missing
 at jsr166e.CompletableFuture.get(CompletableFuture.java:1521)
 at oracle.pgx.api.ServerInstance.startEngine(ServerInstance.java:720)
 at test.main(test.java:<x>)
Caused by: java.lang.IllegalArgumentException: character to be escaped is missing
 at java.util.regex.Matcher.appendReplacement(Unknown Source)
 at java.util.regex.Matcher.replaceAll(Unknown Source)
 at java.lang.String.replaceAll(Unknown Source)

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms