[
https://issues.apache.org/jira/browse/HADOOP-11100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16647666#comment-16647666
]
Adam Antal commented on HADOOP-11100:
-------------------------------------
Thanks for the reviewing, [~knanasi]. I just forget to answer one of your
question. Although I did not find it surely, I believe the
FTPClient:setControlKeepAliveTimeout() function requires input as second and
not milliseconds. (In that function the input got multiplied by 1000, so in the
inside structure stores the value as milliseconds, but the input is expected to
in seconds.)
It seems 300 seconds (5 min) commonly used as default timeout value across
various FTP configs, but this is just an arbitrary value, and can be modified.
> Support to configure ftpClient.setControlKeepAliveTimeout
> -----------------------------------------------------------
>
> Key: HADOOP-11100
> URL: https://issues.apache.org/jira/browse/HADOOP-11100
> Project: Hadoop Common
> Issue Type: Improvement
> Components: fs
> Affects Versions: 2.3.0
> Reporter: Krishnamoorthy Dharmalingam
> Assignee: Adam Antal
> Priority: Minor
> Attachments: HADOOP-11100.002.patch, HADOOP-11100.003.patch,
> HDFS-11000.001.patch
>
>
> In FTPFilesystem or Configuration, timeout is not possible to configure.
> It is very straight forward to configure, in FTPFilesystem.connect() method.
> ftpClient.setControlKeepAliveTimeout
> Like
> private FTPClient connect() throws IOException {
> ...
> String timeout = conf.get("fs.ftp.timeout." + host);
> ...
> ftpClient.setControlKeepAliveTimeout(new Integer(300));
> ....
> }
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]