You need to install cygwin, and put $CYGWIN_HOME/bin on your path
2010/12/2 wisteria_longyan <wisteria_long...@126.com>: > 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=2, ????????? > > > > I’ve 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’s 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 (陈思勤) > > One is never too old to learn. ^^ > > > > ________________________________ > 网易163/126邮箱百分百兼容iphone ipad邮件收发 -- Best Regards Jeff Zhang