"create table ${hiveconf:xxx} (key int, value string);";
String script = "DROP TABLE IF EXISTS ${hiveconf:xxx};set zzz;set hiveconf:yyy;" +
"create table ${hiveconf:xxx} (key int, value string);" +
"LOAD DATA LOCAL INPATH '${hiveconf:data}' INTO TABLE ${hiveconf:xxx};" +
"select count(1) from ${hiveconf:xxx};";
Resource prep = new ByteArrayResource(prepScript.getBytes());
Resource res = new ByteArrayResource(script.getBytes());
Properties params = new Properties();
params.put("xxx", "nonExisting");
params.put("data", uri);
params.put("zzz", "onions");
params.put("yyy", "unleashed");