Hi Hadoop developers, Could someone please review a small fix for the SFTP file system?
SFTPInputStream overrides only read(), so bulk reads go to JSch one byte at a time. Because of this, reading from an sftp:// path is very slow. The bulk read method was removed in HADOOP-14566, when seek support was added. All releases since 3.3.1 have this problem. The PR adds read(byte[], int, int) again, with one new test. In my test with a 1 GiB file from a local sftp server, the read speed went from 6 MB/s to about 540 MB/s. JIRA: https://issues.apache.org/jira/browse/HADOOP-20079 PR: https://github.com/apache/hadoop/pull/8967 I asked Steve Loughran in the PR, and he suggested that I ask on this list. Thank you for your time. Best regards, Andrei Iatsuk --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
