Skip to content

Commit 3ccfa8d

Browse files
TEZ-4651: Fix compilation in tez-tools module because of spotless (#434). (Raghav Aggarwal, reviewed by Laszlo Bodor, Ayush Saxena)
1 parent 0a5c714 commit 3ccfa8d

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

tez-tools/tez-tfile-parser/src/main/java/org/apache/tez/tools/TFileLoader.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818

1919
package org.apache.tez.tools;
2020

21-
import com.google.common.base.Objects;
21+
import java.io.IOException;
22+
import java.util.regex.Pattern;
23+
2224
import org.apache.hadoop.io.Text;
2325
import org.apache.hadoop.mapreduce.InputFormat;
2426
import org.apache.hadoop.mapreduce.InputSplit;
@@ -36,12 +38,12 @@
3638
import org.apache.pig.data.Tuple;
3739
import org.apache.pig.data.TupleFactory;
3840
import org.apache.pig.impl.util.Utils;
41+
42+
import com.google.common.base.Objects;
43+
3944
import org.slf4j.Logger;
4045
import org.slf4j.LoggerFactory;
4146

42-
import java.io.IOException;
43-
import java.util.regex.Pattern;
44-
4547
/**
4648
* Simple pig loader function (mainly loader) which reads TFile and emits every line as a tuple of
4749
* (machine, key, line). This would be beneficial if huge amount of logs need to be mined.

tez-tools/tez-tfile-parser/src/main/java/org/apache/tez/tools/TFileRecordReader.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@
1818

1919
package org.apache.tez.tools;
2020

21-
import com.google.common.annotations.VisibleForTesting;
21+
import java.io.BufferedReader;
22+
import java.io.EOFException;
23+
import java.io.IOException;
24+
import java.io.InputStreamReader;
25+
import java.nio.charset.StandardCharsets;
26+
2227
import org.apache.commons.io.IOUtils;
23-
import org.slf4j.Logger;
24-
import org.slf4j.LoggerFactory;
2528
import org.apache.hadoop.fs.FSDataInputStream;
2629
import org.apache.hadoop.fs.FileStatus;
2730
import org.apache.hadoop.fs.FileSystem;
@@ -35,11 +38,10 @@
3538
import org.apache.hadoop.mapreduce.lib.input.FileSplit;
3639
import org.apache.hadoop.util.functional.FutureIO;
3740

38-
import java.io.BufferedReader;
39-
import java.io.EOFException;
40-
import java.io.IOException;
41-
import java.io.InputStreamReader;
42-
import java.nio.charset.StandardCharsets;
41+
import com.google.common.annotations.VisibleForTesting;
42+
43+
import org.slf4j.Logger;
44+
import org.slf4j.LoggerFactory;
4345

4446
/**
4547
* Simple record reader which reads the TFile and emits it as key, value pair.

0 commit comments

Comments
 (0)