Enahnce error messages in AbstractTestHiveQueries
Help users understand and fix problems caused by missing PRESTO_SERVER and
DATA_DIR JVM arguments.
@@ -42,8 +42,8 @@ public class AbstractTestHiveQueries
String workerCount = System.getProperty("WORKER_COUNT");
int cacheMaxSize = 0;
- assertNotNull(prestoServerPath);
- assertNotNull(baseDataDir);
+ assertNotNull(prestoServerPath, "Native worker binary path is missing. Add -DPRESTO_SERVER=<path/to/presto_server> to your JVM arguments.");
+ assertNotNull(baseDataDir, "Data directory path is missing. Add -DDATA_DIR=<path/to/data> to your JVM arguments.");
return HiveExternalWorkerQueryRunner.createNativeQueryRunner(baseDataDir, prestoServerPath, Optional.ofNullable(workerCount).map(Integer::parseInt), cacheMaxSize, useThrift);
}
