File tree Expand file tree Collapse file tree 11 files changed +14
-15
lines changed
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop
hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/util
hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server
hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl
hadoop-azure/src/main/java/org/apache/hadoop/fs
hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/synthetic
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl Expand file tree Collapse file tree 11 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 44
44
import javax .servlet .http .HttpServletResponse ;
45
45
46
46
import com .fasterxml .jackson .core .JsonGenerator ;
47
- import org .apache .hadoop .util .JacksonUtil ;
48
47
import org .slf4j .Logger ;
49
48
import org .slf4j .LoggerFactory ;
50
49
51
50
import org .apache .commons .lang3 .NotImplementedException ;
52
51
import org .apache .hadoop .http .HttpServer2 ;
52
+ import org .apache .hadoop .util .JacksonUtil ;
53
53
54
54
/*
55
55
* This servlet is based off of the JMXProxyServlet from Tomcat 7.0.14. It has
Original file line number Diff line number Diff line change 21
21
import org .apache .commons .lang3 .exception .ExceptionUtils ;
22
22
import org .apache .hadoop .classification .InterfaceAudience ;
23
23
import org .apache .hadoop .classification .InterfaceStability ;
24
+ import org .apache .hadoop .util .JacksonUtil ;
24
25
25
26
import com .fasterxml .jackson .databind .ObjectWriter ;
26
- import org .apache .hadoop .util .JacksonUtil ;
27
27
import org .slf4j .Logger ;
28
28
import org .slf4j .LoggerFactory ;
29
29
Original file line number Diff line number Diff line change 22
22
import com .fasterxml .jackson .databind .ObjectReader ;
23
23
import com .fasterxml .jackson .databind .ObjectWriter ;
24
24
import com .fasterxml .jackson .databind .json .JsonMapper ;
25
+ import org .apache .hadoop .classification .InterfaceAudience .Private ;
25
26
26
27
/**
27
28
* Utility for sharing code related to Jackson usage in Hadoop.
28
- *
29
- * @since 3.5.0
30
29
*/
30
+ @ Private
31
31
public final class JacksonUtil {
32
32
33
33
private static final ObjectMapper SHARED_BASIC_OBJECT_MAPPER = createBasicObjectMapper ();
Original file line number Diff line number Diff line change 40
40
import org .apache .hadoop .classification .InterfaceAudience ;
41
41
import org .apache .hadoop .classification .InterfaceStability ;
42
42
import org .apache .hadoop .hdfs .protocol .DatanodeAdminProperties ;
43
-
44
43
import org .apache .hadoop .util .JacksonUtil ;
44
+
45
45
import org .slf4j .Logger ;
46
46
import org .slf4j .LoggerFactory ;
47
47
Original file line number Diff line number Diff line change 20
20
import com .fasterxml .jackson .annotation .JsonIgnore ;
21
21
import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
22
22
import com .fasterxml .jackson .databind .ObjectReader ;
23
- import org .apache .hadoop .util .JacksonUtil ;
24
- import org .apache .hadoop .util .Preconditions ;
25
23
26
24
import org .apache .commons .io .FileUtils ;
27
25
import org .slf4j .Logger ;
31
29
import org .apache .hadoop .hdfs .server .diskbalancer .planner .Planner ;
32
30
import org .apache .hadoop .hdfs .server .diskbalancer .planner .PlannerFactory ;
33
31
import org .apache .hadoop .hdfs .web .JsonUtil ;
32
+ import org .apache .hadoop .util .JacksonUtil ;
33
+ import org .apache .hadoop .util .Preconditions ;
34
34
35
35
import java .io .File ;
36
36
import java .io .IOException ;
Original file line number Diff line number Diff line change 28
28
import org .apache .hadoop .hdfs .server .namenode .startupprogress .Step ;
29
29
import org .apache .hadoop .hdfs .server .namenode .startupprogress .StepType ;
30
30
import org .apache .hadoop .io .IOUtils ;
31
+ import org .apache .hadoop .util .JacksonUtil ;
31
32
32
33
import org .apache .hadoop .classification .InterfaceAudience ;
33
- import org .apache .hadoop .util .JacksonUtil ;
34
34
35
35
/**
36
36
* Servlet that provides a JSON representation of the namenode's current startup
Original file line number Diff line number Diff line change 22
22
import java .nio .charset .StandardCharsets ;
23
23
import java .util .Map ;
24
24
25
- import org .apache .hadoop .util .JacksonUtil ;
26
25
import org .slf4j .Logger ;
27
26
import org .slf4j .LoggerFactory ;
28
27
29
28
import org .apache .commons .codec .binary .Base64 ;
30
29
import org .apache .commons .lang3 .StringUtils ;
31
30
import org .apache .hadoop .conf .Configuration ;
32
31
import org .apache .hadoop .fs .s3a .S3AUtils ;
32
+ import org .apache .hadoop .util .JacksonUtil ;
33
33
34
34
import static org .apache .hadoop .fs .s3a .Constants .S3_ENCRYPTION_CONTEXT ;
35
35
Original file line number Diff line number Diff line change 29
29
import org .apache .hadoop .fs .azure .security .Constants ;
30
30
import org .apache .hadoop .io .retry .RetryPolicy ;
31
31
import org .apache .hadoop .io .retry .RetryUtils ;
32
+ import org .apache .hadoop .util .JacksonUtil ;
32
33
import org .apache .hadoop .security .UserGroupInformation ;
33
34
34
- import org .apache .hadoop .util .JacksonUtil ;
35
35
import org .apache .http .NameValuePair ;
36
36
import org .apache .http .client .methods .HttpGet ;
37
37
import org .apache .http .client .utils .URIBuilder ;
Original file line number Diff line number Diff line change 29
29
import java .util .Hashtable ;
30
30
import java .util .Map ;
31
31
32
- import org .apache .hadoop .util .JacksonUtil ;
33
- import org .apache .hadoop .util .Preconditions ;
34
-
35
32
import com .fasterxml .jackson .core .JsonParser ;
36
33
import com .fasterxml .jackson .core .JsonToken ;
37
34
import org .slf4j .Logger ;
42
39
import org .apache .hadoop .classification .InterfaceStability ;
43
40
import org .apache .hadoop .fs .azurebfs .services .AbfsIoUtils ;
44
41
import org .apache .hadoop .fs .azurebfs .services .ExponentialRetryPolicy ;
42
+ import org .apache .hadoop .util .JacksonUtil ;
43
+ import org .apache .hadoop .util .Preconditions ;
45
44
46
45
/**
47
46
* This class provides convenience methods to obtain AAD tokens.
Original file line number Diff line number Diff line change 24
24
import com .fasterxml .jackson .core .JsonParser ;
25
25
import com .fasterxml .jackson .databind .JsonMappingException ;
26
26
import com .fasterxml .jackson .databind .ObjectMapper ;
27
- import org .apache .hadoop .util .JacksonUtil ;
28
27
import org .slf4j .Logger ;
29
28
import org .slf4j .LoggerFactory ;
30
29
import org .apache .commons .math3 .distribution .AbstractRealDistribution ;
35
34
import org .apache .hadoop .fs .Path ;
36
35
import org .apache .hadoop .tools .rumen .JobStory ;
37
36
import org .apache .hadoop .tools .rumen .JobStoryProducer ;
37
+ import org .apache .hadoop .util .JacksonUtil ;
38
38
import org .apache .hadoop .yarn .api .records .ExecutionType ;
39
39
import org .apache .hadoop .yarn .exceptions .YarnRuntimeException ;
40
40
import org .apache .hadoop .yarn .sls .appmaster .MRAMSimulator ;
You can’t perform that action at this time.
0 commit comments