Ejemplo n.º 1
0
 @Before
 public void setUp() throws ExecException {
   GenPhyOp.setR(r);
   GenPhyOp.setPc(pc);
   // Set random seed to generate deterministic temporary paths
   FileLocalizer.setR(new Random(1331L));
   NodeIdGenerator.reset("");
   pigServer = new PigServer(pc);
   pigServerMR = new PigServer(pcMR);
 }
Ejemplo n.º 2
0
 public static void oneTimeSetUp() throws Exception {
   cluster = MiniGenericCluster.buildCluster();
   pc = new PigContext(cluster.getExecType(), cluster.getProperties());
   try {
     pc.connect();
   } catch (ExecException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   GenPhyOp.setPc(pc);
   Util.copyFromLocalToCluster(cluster, "test/org/apache/pig/test/data/passwd", "/passwd");
 }
Ejemplo n.º 3
0
  @Before
  public void setUp() throws ExecException {
    GenPhyOp.setR(r);

    GenPhyOp.setPc(pc);
  }