(DataBag inpDB)
| 110 | } |
| 111 | |
| 112 | private void storeAndCopyLocally(DataBag inpDB) throws Exception { |
| 113 | setUpInputFileOnCluster(inpDB); |
| 114 | String script = "a = load '" + inputFileName + "'; " + |
| 115 | "store a into '" + outputFileName + "' using PigStorage('\t');" + |
| 116 | "fs -ls " + TESTDIR; |
| 117 | ps.setBatchOn(); |
| 118 | Util.registerMultiLineQuery(ps, script); |
| 119 | ps.executeBatch(); |
| 120 | Path path = getFirstOutputFile(cluster.getConfiguration(), |
| 121 | new Path(outputFileName), cluster.getExecType(), true); |
| 122 | Util.copyFromClusterToLocal( |
| 123 | cluster, |
| 124 | path.toString(), outputFileName); |
| 125 | } |
| 126 | |
| 127 | @AfterClass |
| 128 | public static void oneTimeTearDown() throws Exception { |
no test coverage detected