Return-Path: Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: (qmail 13485 invoked from network); 3 Dec 2010 01:04:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Dec 2010 01:04:22 -0000 Received: (qmail 47321 invoked by uid 500); 3 Dec 2010 01:04:22 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 47277 invoked by uid 500); 3 Dec 2010 01:04:22 -0000 Mailing-List: contact hdfs-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-user@hadoop.apache.org Delivered-To: mailing list hdfs-user@hadoop.apache.org Received: (qmail 47269 invoked by uid 99); 3 Dec 2010 01:04:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 01:04:22 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=MSGID_MULTIPLE_AT,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of wisteria_longyan@126.com designates 123.125.50.110 as permitted sender) Received: from [123.125.50.110] (HELO m50-110.126.com) (123.125.50.110) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 01:04:13 +0000 Received: from linux04f859c84 (unknown [59.64.179.148]) by smtp4 (Coremail) with SMTP id jdKowLD7r5LgQfhM9YjZAA--.197S2; Fri, 03 Dec 2010 09:03:34 +0800 (CST) Reply-To: From: Sender: "Siqin.Chen" To: References: <39d0d198.157c1.12ca4945016.Coremail.wisteria_longyan@126.com> In-Reply-To: Subject: Re: Can we use method CopyToLocalFile() to copy HDFS files to windowsXP? Date: Fri, 3 Dec 2010 09:03:21 +0800 Message-ID: <000901cb9285$e426e110$ac74a330$@com@hadoop.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcuRv/2eP64yUJ1JQfqsS0B1FXTUhwAAOYmA Content-Language: zh-cn X-CM-TRANSID: jdKowLD7r5LgQfhM9YjZAA--.197S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Aw4UGrW5Kw1fWrW3Cw18Grg_yoW8CFyUpF WUKasrKw4093WIy3Z7tw48ZFn0yrs5Jw15uFn5XryDCrZ8uF1avr1Yqas8u3Z8Wr1Sy3yj vFZxKasagrW5ZaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU8nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jUb18UUUUU= X-CM-SenderInfo: xzlv3vpuldsz5rqj5tbq6rjloofrz/1tbilhicakl1eMc3ewAAs3 X-Virus-Checked: Checked by ClamAV on apache.org Hi Jeff, Yeah, you're quite right. I've tried it and it works well with = $CYGWIN_HOME/bin on windows' PATH. But I'm still a bit confused on the reason. Why should chmod be invoked = from $CYGWIN_HOME/bin and which mode was changed by it? Much appreciated, siqin^^;; -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- =E5=8F=91=E4=BB=B6=E4=BA=BA: = hdfs-user-return-683-wisteria_longyan=3D126.com@hadoop.apache.org = [mailto:hdfs-user-return-683-wisteria_longyan=3D126.com@hadoop.apache.org= ] =E4=BB=A3=E8=A1=A8 Jeff Zhang =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2010=E5=B9=B412=E6=9C=882=E6=97=A5 = 9:26 =E6=94=B6=E4=BB=B6=E4=BA=BA: hdfs-user@hadoop.apache.org =E4=B8=BB=E9=A2=98: Re: Can we use method CopyToLocalFile() to copy HDFS = files to windowsXP? You need to install cygwin, and put $CYGWIN_HOME/bin on your path 2010/12/2 wisteria_longyan : > Hi, > > > > We encountered a trouble these days that we cannot copy HDFS files to > windowsXP using method CopyToLocalFile(). The copying process is = interrupted > by the exception below: > > > > Exception in thread "main" java.io.IOException: Cannot run program = "chmod": > CreateProcess error=3D2, ????????? > > > > I=E2=80=99ve no idea why this happened for the copying process using > CopyFromLocalFile() which can successfully put files under some = windowsXP > folder unto HDFS without any errors. > > > > Both copying are with the help of Eclipse having the Hadoop plug-in > installed. > > > > Could it be that the program is trying to find command chmod on = windowsXP > when using CopyToLocalFile() from HDFS to windows? If so, I think it = would > fail in no doubts and can explain why there=E2=80=99s no erros during > CopyFromLocalFile() from windows to HDFS. But, if this is the truth, = then > how can I copy HDFS files to windows OS? > > > > Thanks very much in advance. J > > > > Best regards, > > Siqin Chen (=E9=99=88=E6=80=9D=E5=8B=A4) > > One is never too old to learn. ^^ > > > > ________________________________ > = =E7=BD=91=E6=98=93163/126=E9=82=AE=E7=AE=B1=E7=99=BE=E5=88=86=E7=99=BE=E5= =85=BC=E5=AE=B9iphone ipad=E9=82=AE=E4=BB=B6=E6=94=B6=E5=8F=91 --=20 Best Regards Jeff Zhang