[
https://issues.apache.org/jira/browse/HDFS-11824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16010330#comment-16010330
]
Yiqun Lin edited comment on HDFS-11824 at 5/15/17 11:10 AM:
------------------------------------------------------------
Attach the initial patch.
One note:
Method {{DefaultHttpClient#removeRequestInterceptorByClass}} hasn't existed in
new APIs. The fixed way I did is to remove the following lines since I found
the Content-Length info has already in put request.
{code}
putRequest.setHeader(HttpHeaders.CONTENT_LENGTH, Long.toString(file
.length()));
httpClient.removeRequestInterceptorByClass(
org.apache.http.protocol.RequestContent.class);
{code}
was (Author: linyiqun):
Attach the initial patch.
One note:
Method {{DefaultHttpClient#removeRequestInterceptorByClass}} hasn't existed in
new APIs. The fixed way I did is to remove the following lines since I found
the Content-Length info has already in put request.
> Ozone: Fix javac warnings
> -------------------------
>
> Key: HDFS-11824
> URL: https://issues.apache.org/jira/browse/HDFS-11824
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ozone
> Affects Versions: HDFS-7240
> Reporter: Yiqun Lin
> Assignee: Yiqun Lin
> Attachments: HDFS-11824-HDFS-7240.001.patch
>
>
> Found many javac warnings generated from ozone sources codes. Totally two
> types warings:
> {noformat}
> [WARNING]
> /testptch/hadoop/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/web/client/OzoneBucket.java:[482,41]
> [deprecation] DefaultHttpClient in org.apache.http.impl.client has been
> deprecated
> [WARNING]
> /testptch/hadoop/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/OzoneClientUtils.java:[284,52]
> [deprecation] getHostText() in HostAndPort has been deprecated
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]