Fix hostname related assertion failure in PrestoSparkQueryRunner
If the local hostname is not set in the system, the PrestoSparkQueryRunner
fails with the "java.lang.AssertionError: assertion failed: Expected hostname".
Following the workaround described in the issue:
@@ -133,7 +133,8 @@ public class PrestoSparkQueryRunner
SparkConf sparkConfiguration = new SparkConf()
.setMaster(format("local[%s]", nodeCount))
- .setAppName("presto");
+ .setAppName("presto")
+ .set("spark.driver.host", "localhost");
sparkContext = new SparkContext(sparkConfiguration);
prestoSparkService = injector.getInstance(PrestoSparkService.class);
