[checkstyle] Unify LOG form (#1092)
This commit is contained in:
@@ -67,7 +67,7 @@ import java.util.stream.Collectors;
|
||||
@Component
|
||||
public class CompactionCommand implements CommandMarker {
|
||||
|
||||
private static Logger log = LogManager.getLogger(CompactionCommand.class);
|
||||
private static final Logger LOG = LogManager.getLogger(CompactionCommand.class);
|
||||
|
||||
private static final String TMP_DIR = "/tmp/";
|
||||
|
||||
@@ -249,7 +249,7 @@ public class CompactionCommand implements CommandMarker {
|
||||
ObjectInputStream in = new ObjectInputStream(fsDataInputStream);
|
||||
try {
|
||||
T result = (T) in.readObject();
|
||||
log.info("Result : " + result);
|
||||
LOG.info("Result : " + result);
|
||||
return result;
|
||||
} finally {
|
||||
in.close();
|
||||
|
||||
@@ -41,7 +41,7 @@ import scala.collection.JavaConverters;
|
||||
@Component
|
||||
public class HDFSParquetImportCommand implements CommandMarker {
|
||||
|
||||
private static Logger log = LogManager.getLogger(HDFSParquetImportCommand.class);
|
||||
private static final Logger LOG = LogManager.getLogger(HDFSParquetImportCommand.class);
|
||||
|
||||
@CliCommand(value = "hdfsparquetimport", help = "Imports Parquet dataset to a hoodie dataset")
|
||||
public String convert(
|
||||
|
||||
@@ -41,7 +41,7 @@ import org.apache.spark.sql.SQLContext;
|
||||
*/
|
||||
public class SparkMain {
|
||||
|
||||
protected static final Logger LOG = Logger.getLogger(SparkMain.class);
|
||||
private static final Logger LOG = Logger.getLogger(SparkMain.class);
|
||||
|
||||
/**
|
||||
* Commands.
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.logging.Logger;
|
||||
*/
|
||||
public class InputStreamConsumer extends Thread {
|
||||
|
||||
protected static final Logger LOG = Logger.getLogger(InputStreamConsumer.class.getName());
|
||||
private static final Logger LOG = Logger.getLogger(InputStreamConsumer.class.getName());
|
||||
private InputStream is;
|
||||
|
||||
public InputStreamConsumer(InputStream is) {
|
||||
|
||||
@@ -36,7 +36,7 @@ import java.net.URISyntaxException;
|
||||
*/
|
||||
public class SparkUtil {
|
||||
|
||||
public static Logger logger = Logger.getLogger(SparkUtil.class);
|
||||
private static final Logger LOG = Logger.getLogger(SparkUtil.class);
|
||||
public static final String DEFUALT_SPARK_MASTER = "yarn-client";
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user