In my DSE Graph (6.0.9) integration tests I'm using the Java Driver (1.8) to setup both OLTP (g) and OLAP (a) GraphTraversalSources. I use the fluent API with both throughout the test class.
The problem I'm running into is that the default settings for the OLAP GTS (a) have it taking up all of my local cores and about half of my RAM, when it should be fine with 1 - 2 cores and a couple of GB. What's worse, the resulting Spark application ("Apache TinkerPop's Spark-Gremlin") ends up being long-running and I have to go into the Spark Master console to kill it if I want to do anything else with my local Spark.
Is there any way to configure the recommended spark properties (https://docs.datastax.com/en/dse/6.0/dse-dev/datastax_enterprise/graph/graphAnalytics/graphAnalyticsSparkGraphComputer.html) when setting up my remote traversal sources with the Java API? So far all I can find is:
a = DseGraph.traversal(dseSession, new GraphOptions(). setGraphName(dseGraphName). setGraphSource("a"));
Or am I going to have to switch to the 2.x Java driver and manage these settings in the config with profiles?