Exemple #1
0
  @BeforeClass
  public static void setUpOnce() throws IOException {
    cluster = PigTest.getCluster();

    cluster.update(
        new Path("test/data/pigunit/top_queries_input_data.txt"),
        new Path("top_queries_input_data.txt"));
  }
Exemple #2
0
  @Test
  public void testStore() throws ParseException, IOException {
    String[] args = {
      "n=3", "reducers=1", "input=top_queries_input_data.txt", "output=top_3_queries",
    };
    test = new PigTest(PIG_SCRIPT, args);

    // By default PigUnit removes all the STORE and DUMP
    test.unoverride("STORE");

    test.runScript();

    TestCase.assertTrue(cluster.delete(new Path("top_3_queries")));
  }