Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 55145 invoked from network); 20 May 2010 03:21:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 May 2010 03:21:21 -0000 Received: (qmail 93720 invoked by uid 500); 20 May 2010 03:21:21 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 93603 invoked by uid 500); 20 May 2010 03:21:20 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 93595 invoked by uid 99); 20 May 2010 03:21:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 May 2010 03:21:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 May 2010 03:21:17 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4K3KtQo022557 for ; Thu, 20 May 2010 03:20:55 GMT Message-ID: <24814938.33021274325655193.JavaMail.jira@thor> Date: Wed, 19 May 2010 23:20:55 -0400 (EDT) From: "Bo Shi (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-5732) SFTP FileSystem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-5732?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D128= 69461#action_12869461 ]=20 Bo Shi commented on HADOOP-5732: -------------------------------- =C3=8D=C3=B1igo, thanks for the patch, it's saved us a ton of time :) I had to make some adjustments the initialize() to get some things working.= In particular, in the last if/else block of initialize(), you have conf.set("fs.sftp.password." + host, null); which, (in my 0.20.1 backport at least) will throw a null pointer exception= since configuration is backed by HashTable which doesn't allow null keys o= r values in set(). We use public key authentication (not user and passwords) to connect, so it= might be nice to have the username default to ${user.name} if none is set = instead of throwing an IOException. With respect to Tom's comments about testing... > Can this be done by having an embedded SFTP server The MINA folks claim it takes five minutes: http://mina.apache.org/sshd/emb= edding-sshd-in-5-minutes.html I probably won't have much time in the next week or two to work on this but= I'm happy to work on it after I get some breathing room. > SFTP FileSystem > --------------- > > Key: HADOOP-5732 > URL: https://issues.apache.org/jira/browse/HADOOP-5732 > Project: Hadoop Common > Issue Type: New Feature > Components: fs > Affects Versions: 0.20.0 > Environment: Any environment > Reporter: =C3=8D=C3=B1igo Goiri > Assignee: =C3=8D=C3=B1igo Goiri > Priority: Minor > Fix For: 0.21.0 > > Attachments: HADOOP-5732.patch, HADOOP-5732.patch, HADOOP-5732.pa= tch, HADOOP-5732.patch, HADOOP-5732.patch, ivy-for-hadoop-7532.patch, ivy-f= or-hadoop-7532.patch > > Original Estimate: 0h > Remaining Estimate: 0h > > I have implemented a FileSystem that supports SFTP. It uses JSch (http://= www.jcraft.com/jsch/) in order to manage SFTP. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.