private Properties createConf(boolean local) { Properties conf = new Properties(); if (local) { conf.put(CLIENT_IN_PROCESS.key, "true"); conf.put("spark.master", "local"); conf.put("spark.app.name", "SparkClientSuite Local App"); } else { String classpath = System.getProperty("java.class.path"); conf.put("spark.master", "local"); conf.put("spark.app.name", "SparkClientSuite Remote App"); conf.put("spark.driver.extraClassPath", classpath); conf.put("spark.executor.extraClassPath", classpath); conf.put(LIVY_JARS.key, ""); } return conf; }
protected static void checkRunTurtleTests() { assumeTrue(ObjectUtils.equals("true", System.getProperty("runTurtleTests"))); }