Windows : Exception running tool: Cannot run program "chmod": CreateProcess error=2, Le fichier spécifié est introuvable

654 views
Skip to first unread message

HD

unread,
Oct 20, 2014, 5:12:58 PM10/20/14
to cascadi...@googlegroups.com
Hi,
i work on Windows, when i excute my code, Eclipse displayed to me this
error :

" Exception running tool: Cannot run program "chmod": CreateProcess error=2, Le fichier spécifié est introuvable
java.io.IOException: Cannot run program "chmod": CreateProcess error=2, Le fichier spécifié est introuvable
    at java.lang.ProcessBuilder.start(Unknown Source)
    at org.apache.hadoop.util.Shell.runCommand(Shell.java:149)
    at org.apache.hadoop.util.Shell.run(Shell.java:134)
    at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:286)
    at org.apache.hadoop.util.Shell.execCommand(Shell.java:354)
    at org.apache.hadoop.util.Shell.execCommand(Shell.java:337)
    at org.apache.hadoop.fs.RawLocalFileSystem.execCommand(RawLocalFileSystem.java:481)
    at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:473)
    at org.apache.hadoop.fs.FilterFileSystem.setPermission(FilterFileSystem.java:280)
    at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:372)
    at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:484)
    at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:843)
    at org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:393)
    at org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:354)
    at org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:427)
    at org.apache.hadoop.mapred.SequenceFileOutputFormat.getRecordWriter(SequenceFileOutputFormat.java:62)
    at cascading.tap.hadoop.TapCollector.initalize(TapCollector.java:119)
    at cascading.tap.hadoop.TapCollector.<init>(TapCollector.java:96)
    at cascading.tap.hadoop.TapCollector.<init>(TapCollector.java:77)
    at cascading.tap.Hfs.openForWrite(Hfs.java:503)
"

Is because chmod is a Unix command? if so, what should I do ?

thank you.

Ken Krugler

unread,
Oct 20, 2014, 5:18:17 PM10/20/14
to cascadi...@googlegroups.com
Hi there,

This should help: http://bit.ly/1puU4JS


-- Ken


From: HD

Sent: October 20, 2014 2:12:58pm PDT

To: cascadi...@googlegroups.com

Subject: Windows : Exception running tool: Cannot run program "chmod": CreateProcess error=2, Le fichier spécifié est introuvable



--------------------------
Ken Krugler
custom big data solutions & training
Hadoop, Cascading, Cassandra & Solr





Reply all
Reply to author
Forward
0 new messages