Merge branch 'master' of code-repo.d4science.org:D-Net/dnet-hadoop

This commit is contained in:
Sandro La Bruzzo 2020-03-27 15:11:48 +01:00
commit 1a7a866861
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ public class SparkGraphImporterJob {
} }
} }
// public for testing // protected for testing
public void runWith(SparkSession spark, String inputPath, String hiveDbName) { protected void runWith(SparkSession spark, String inputPath, String hiveDbName) {
spark.sql(String.format("DROP DATABASE IF EXISTS %s CASCADE", hiveDbName)); spark.sql(String.format("DROP DATABASE IF EXISTS %s CASCADE", hiveDbName));
spark.sql(String.format("CREATE DATABASE IF NOT EXISTS %s", hiveDbName)); spark.sql(String.format("CREATE DATABASE IF NOT EXISTS %s", hiveDbName));