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 4444import javax .servlet .http .HttpServletResponse ;
4545
4646import com .fasterxml .jackson .core .JsonGenerator ;
47- import org .apache .hadoop .util .JacksonUtil ;
4847import org .slf4j .Logger ;
4948import org .slf4j .LoggerFactory ;
5049
5150import org .apache .commons .lang3 .NotImplementedException ;
5251import org .apache .hadoop .http .HttpServer2 ;
52+ import org .apache .hadoop .util .JacksonUtil ;
5353
5454/*
5555 * 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 2121import org .apache .commons .lang3 .exception .ExceptionUtils ;
2222import org .apache .hadoop .classification .InterfaceAudience ;
2323import org .apache .hadoop .classification .InterfaceStability ;
24+ import org .apache .hadoop .util .JacksonUtil ;
2425
2526import com .fasterxml .jackson .databind .ObjectWriter ;
26- import org .apache .hadoop .util .JacksonUtil ;
2727import org .slf4j .Logger ;
2828import org .slf4j .LoggerFactory ;
2929
Original file line number Diff line number Diff line change 2222import com .fasterxml .jackson .databind .ObjectReader ;
2323import com .fasterxml .jackson .databind .ObjectWriter ;
2424import com .fasterxml .jackson .databind .json .JsonMapper ;
25+ import org .apache .hadoop .classification .InterfaceAudience .Private ;
2526
2627/**
2728 * Utility for sharing code related to Jackson usage in Hadoop.
28- *
29- * @since 3.5.0
3029 */
30+ @ Private
3131public final class JacksonUtil {
3232
3333 private static final ObjectMapper SHARED_BASIC_OBJECT_MAPPER = createBasicObjectMapper ();
Original file line number Diff line number Diff line change 4040import org .apache .hadoop .classification .InterfaceAudience ;
4141import org .apache .hadoop .classification .InterfaceStability ;
4242import org .apache .hadoop .hdfs .protocol .DatanodeAdminProperties ;
43-
4443import org .apache .hadoop .util .JacksonUtil ;
44+
4545import org .slf4j .Logger ;
4646import org .slf4j .LoggerFactory ;
4747
Original file line number Diff line number Diff line change 2020import com .fasterxml .jackson .annotation .JsonIgnore ;
2121import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
2222import com .fasterxml .jackson .databind .ObjectReader ;
23- import org .apache .hadoop .util .JacksonUtil ;
24- import org .apache .hadoop .util .Preconditions ;
2523
2624import org .apache .commons .io .FileUtils ;
2725import org .slf4j .Logger ;
3129import org .apache .hadoop .hdfs .server .diskbalancer .planner .Planner ;
3230import org .apache .hadoop .hdfs .server .diskbalancer .planner .PlannerFactory ;
3331import org .apache .hadoop .hdfs .web .JsonUtil ;
32+ import org .apache .hadoop .util .JacksonUtil ;
33+ import org .apache .hadoop .util .Preconditions ;
3434
3535import java .io .File ;
3636import java .io .IOException ;
Original file line number Diff line number Diff line change 2828import org .apache .hadoop .hdfs .server .namenode .startupprogress .Step ;
2929import org .apache .hadoop .hdfs .server .namenode .startupprogress .StepType ;
3030import org .apache .hadoop .io .IOUtils ;
31+ import org .apache .hadoop .util .JacksonUtil ;
3132
3233import org .apache .hadoop .classification .InterfaceAudience ;
33- import org .apache .hadoop .util .JacksonUtil ;
3434
3535/**
3636 * Servlet that provides a JSON representation of the namenode's current startup
Original file line number Diff line number Diff line change 2222import java .nio .charset .StandardCharsets ;
2323import java .util .Map ;
2424
25- import org .apache .hadoop .util .JacksonUtil ;
2625import org .slf4j .Logger ;
2726import org .slf4j .LoggerFactory ;
2827
2928import org .apache .commons .codec .binary .Base64 ;
3029import org .apache .commons .lang3 .StringUtils ;
3130import org .apache .hadoop .conf .Configuration ;
3231import org .apache .hadoop .fs .s3a .S3AUtils ;
32+ import org .apache .hadoop .util .JacksonUtil ;
3333
3434import static org .apache .hadoop .fs .s3a .Constants .S3_ENCRYPTION_CONTEXT ;
3535
Original file line number Diff line number Diff line change 2929import org .apache .hadoop .fs .azure .security .Constants ;
3030import org .apache .hadoop .io .retry .RetryPolicy ;
3131import org .apache .hadoop .io .retry .RetryUtils ;
32+ import org .apache .hadoop .util .JacksonUtil ;
3233import org .apache .hadoop .security .UserGroupInformation ;
3334
34- import org .apache .hadoop .util .JacksonUtil ;
3535import org .apache .http .NameValuePair ;
3636import org .apache .http .client .methods .HttpGet ;
3737import org .apache .http .client .utils .URIBuilder ;
Original file line number Diff line number Diff line change 2929import java .util .Hashtable ;
3030import java .util .Map ;
3131
32- import org .apache .hadoop .util .JacksonUtil ;
33- import org .apache .hadoop .util .Preconditions ;
34-
3532import com .fasterxml .jackson .core .JsonParser ;
3633import com .fasterxml .jackson .core .JsonToken ;
3734import org .slf4j .Logger ;
4239import org .apache .hadoop .classification .InterfaceStability ;
4340import org .apache .hadoop .fs .azurebfs .services .AbfsIoUtils ;
4441import org .apache .hadoop .fs .azurebfs .services .ExponentialRetryPolicy ;
42+ import org .apache .hadoop .util .JacksonUtil ;
43+ import org .apache .hadoop .util .Preconditions ;
4544
4645/**
4746 * This class provides convenience methods to obtain AAD tokens.
Original file line number Diff line number Diff line change 2424import com .fasterxml .jackson .core .JsonParser ;
2525import com .fasterxml .jackson .databind .JsonMappingException ;
2626import com .fasterxml .jackson .databind .ObjectMapper ;
27- import org .apache .hadoop .util .JacksonUtil ;
2827import org .slf4j .Logger ;
2928import org .slf4j .LoggerFactory ;
3029import org .apache .commons .math3 .distribution .AbstractRealDistribution ;
3534import org .apache .hadoop .fs .Path ;
3635import org .apache .hadoop .tools .rumen .JobStory ;
3736import org .apache .hadoop .tools .rumen .JobStoryProducer ;
37+ import org .apache .hadoop .util .JacksonUtil ;
3838import org .apache .hadoop .yarn .api .records .ExecutionType ;
3939import org .apache .hadoop .yarn .exceptions .YarnRuntimeException ;
4040import org .apache .hadoop .yarn .sls .appmaster .MRAMSimulator ;
You can’t perform that action at this time.
0 commit comments