package com.twitter.elephantbird.pig.util;

import org.apache.pig.ExecType;
import org.apache.pig.PigServer;
import org.apache.pig.backend.executionengine.ExecException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Common test utilities
 */
public class PigTestUtil {

  private static final Logger LOG = LoggerFactory.getLogger(PigTestUtil.class);


  /**
   * Creates a new PigServer in local mode.
   * Sets pig properties for lzo codec and temp directory.
   */
  static public PigServer makePigServer() throws ExecException {

    PigServer pigServer = new PigServer(ExecType.LOCAL);
    // set lzo codec:
    pigServer.getPigContext().getProperties().setProperty(
        "io.compression.codecs", "com.hadoop.compression.lzo.LzopCodec");

    pigServer.getPigContext().getProperties().setProperty(
        "pig.temp.dir", System.getProperty("test.build.data") + "/pig-temp");

    return pigServer;
  }
}

@@ -166,65 +166,8 @@
 ion;
-%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;
 %0A%0A/*
@@ -229,90 +229,8 @@
  %7B%0A%0A
-  private static final Logger LOG = LoggerFactory.getLogger(PigTestUtil.class);%0A%0A%0A
   /*

remove unused LOG.