You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Wasim <wa...@gmail.com> on 2011/03/10 21:24:51 UTC

File not found exception running mahout-examples-0.4.job.jar

Hi,

I am trying to run Synthetic Control Data example for clustering. I am using
Cygwin on Windows. I have got the following error:


$ bin/mahout org.apache.mahout.clustering.syntheticcontrol.kmeans.Job
Running on hadoop, using
HADOOP_HOME=/cygdrive/c/Users/Wasim/Downloads/hadoop-0.
20.2
No HADOOP_CONF_DIR set, using
/cygdrive/c/Users/Wasim/Downloads/hadoop-0.20.2/co
nf
Exception in thread "main" java.io.IOException: Error opening job jar:
/cygdrive
/c/users/wasim/Downloads/mahout-distribution-0.4/mahout-examples-0.4-job.jar
        at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
Caused by: java.io.FileNotFoundException:
\cygdrive\c\users\wasim\Downloads\maho
ut-distribution-0.4\mahout-examples-0.4-job.jar (The system cannot find the
path
 specified)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
        at java.util.jar.JarFile.<init>(JarFile.java:133)
        at java.util.jar.JarFile.<init>(JarFile.java:70)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:88)

I have even mounted the c drive but still get the same error:

Exception in thread "main" java.io.IOException: Error opening job jar:
/c/Users/
Wasim/Downloads/mahout-distribution-0.4/mahout-examples-0.4-job.jar
        at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
Caused by: java.io.FileNotFoundException:
\c\Users\Wasim\Downloads\mahout-distri
bution-0.4\mahout-examples-0.4-job.jar (The system cannot find the path
specifie
d)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
        at java.util.jar.JarFile.<init>(JarFile.java:133)
        at java.util.jar.JarFile.<init>(JarFile.java:70)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:88)

The file mahout-examples-0.4-job.jar is in its place.
-- 
Thank you & Regards
Muhammad Wasimullah Khan
Mobile:+46 72 03 29 205
Alt.Telephone: +92 345 21 98 45
Email: mwkhan@kth.se
Skype: muhammad.wasim.khan

Re: File not found exception running mahout-examples-0.4.job.jar

Posted by Mike Nute <mi...@gmail.com>.
Wasim,

In that first error it says you don't have HADOOP_CONF_DIR set. This should be set as an enivironment variable to be the /conf/ subdirectory of the Hadoop home directory (explicitly named of course).  That could be the issue tho others can correct me if I'm wrong.

Mike
-----Original Message-----
From: Wasim <wa...@gmail.com>
Date: Thu, 10 Mar 2011 21:24:51 
To: <us...@mahout.apache.org>
Reply-To: user@mahout.apache.org
Subject: File not found exception running mahout-examples-0.4.job.jar

Hi,

I am trying to run Synthetic Control Data example for clustering. I am using
Cygwin on Windows. I have got the following error:


$ bin/mahout org.apache.mahout.clustering.syntheticcontrol.kmeans.Job
Running on hadoop, using
HADOOP_HOME=/cygdrive/c/Users/Wasim/Downloads/hadoop-0.
20.2
No HADOOP_CONF_DIR set, using
/cygdrive/c/Users/Wasim/Downloads/hadoop-0.20.2/co
nf
Exception in thread "main" java.io.IOException: Error opening job jar:
/cygdrive
/c/users/wasim/Downloads/mahout-distribution-0.4/mahout-examples-0.4-job.jar
        at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
Caused by: java.io.FileNotFoundException:
\cygdrive\c\users\wasim\Downloads\maho
ut-distribution-0.4\mahout-examples-0.4-job.jar (The system cannot find the
path
 specified)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
        at java.util.jar.JarFile.<init>(JarFile.java:133)
        at java.util.jar.JarFile.<init>(JarFile.java:70)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:88)

I have even mounted the c drive but still get the same error:

Exception in thread "main" java.io.IOException: Error opening job jar:
/c/Users/
Wasim/Downloads/mahout-distribution-0.4/mahout-examples-0.4-job.jar
        at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
Caused by: java.io.FileNotFoundException:
\c\Users\Wasim\Downloads\mahout-distri
bution-0.4\mahout-examples-0.4-job.jar (The system cannot find the path
specifie
d)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
        at java.util.jar.JarFile.<init>(JarFile.java:133)
        at java.util.jar.JarFile.<init>(JarFile.java:70)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:88)

The file mahout-examples-0.4-job.jar is in its place.
-- 
Thank you & Regards
Muhammad Wasimullah Khan
Mobile:+46 72 03 29 205
Alt.Telephone: +92 345 21 98 45
Email: mwkhan@kth.se
Skype: muhammad.wasim.khan


Re: File not found exception running mahout-examples-0.4.job.jar

Posted by Benson Margulies <bi...@gmail.com>.
Wasim,

I'm a little confused because I'm not in a position to try this
myself, but if you have a pathname inside your own java code inside
that jar file, it needs to be a plain old windows pathname.

Perhaps some other windows user can chime in?

--benson



On Thu, Mar 10, 2011 at 6:34 PM, Wasim <wa...@gmail.com> wrote:
> Hi Benson,
>
> I am a newbie to mahout and cygwin.
>
> and you seemed to be pointing in the correct direction (in fact i knew that
> is the issue, but have no solution). I am just running the k-means on
> Synthetic Control Data from mahout wiki page, which looks for
> examples-job.jar in my file system.
>
> I have read about cygpath from here:
> http://www.cygwin.com/cygwin-ug-net/using-utils.html but don't know how to
> use it in my case i.e. how can i tell the following command to use the
> output from cygpath.
>
> $MAHOUT_HOME/bin/mahout
> org.apache.mahout.clustering.syntheticcontrol.kmeans.Job
>
> which looks for mahout-examples-0.4-job.jar in my file system. are
> there any options which i can
> specify?, like with java command i can specify the classpath.
> for e.g. i can use cygpath in following way for specifying java class path:
>
> javac -cp "$(cygpath -pw "$CLASSPATH")" hello.java
>
> what are the options in my case of explicitly specifying the path of jar
> file.
>
>
>
> On Thu, Mar 10, 2011 at 9:50 PM, Benson Margulies <bi...@gmail.com>wrote:
>
>> Java doesn't know about /cygdrive. It can't. It's not a cygwin app.
>> You need to use the output of cygpath -w.
>>
>>
>> On Thu, Mar 10, 2011 at 3:24 PM, Wasim <wa...@gmail.com> wrote:
>> > Hi,
>> >
>> > I am trying to run Synthetic Control Data example for clustering. I am
>> using
>> > Cygwin on Windows. I have got the following error:
>> >
>> >
>> > $ bin/mahout org.apache.mahout.clustering.syntheticcontrol.kmeans.Job
>> > Running on hadoop, using
>> > HADOOP_HOME=/cygdrive/c/Users/Wasim/Downloads/hadoop-0.
>> > 20.2
>> > No HADOOP_CONF_DIR set, using
>> > /cygdrive/c/Users/Wasim/Downloads/hadoop-0.20.2/co
>> > nf
>> > Exception in thread "main" java.io.IOException: Error opening job jar:
>> > /cygdrive
>> >
>> /c/users/wasim/Downloads/mahout-distribution-0.4/mahout-examples-0.4-job.jar
>> >        at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
>> > Caused by: java.io.FileNotFoundException:
>> > \cygdrive\c\users\wasim\Downloads\maho
>> > ut-distribution-0.4\mahout-examples-0.4-job.jar (The system cannot find
>> the
>> > path
>> >  specified)
>> >        at java.util.zip.ZipFile.open(Native Method)
>> >        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
>> >        at java.util.jar.JarFile.<init>(JarFile.java:133)
>> >        at java.util.jar.JarFile.<init>(JarFile.java:70)
>> >        at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
>> >
>> > I have even mounted the c drive but still get the same error:
>> >
>> > Exception in thread "main" java.io.IOException: Error opening job jar:
>> > /c/Users/
>> > Wasim/Downloads/mahout-distribution-0.4/mahout-examples-0.4-job.jar
>> >        at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
>> > Caused by: java.io.FileNotFoundException:
>> > \c\Users\Wasim\Downloads\mahout-distri
>> > bution-0.4\mahout-examples-0.4-job.jar (The system cannot find the path
>> > specifie
>> > d)
>> >        at java.util.zip.ZipFile.open(Native Method)
>> >        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
>> >        at java.util.jar.JarFile.<init>(JarFile.java:133)
>> >        at java.util.jar.JarFile.<init>(JarFile.java:70)
>> >        at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
>> >
>> > The file mahout-examples-0.4-job.jar is in its place.
>> > --
>> > Thank you & Regards
>> > Muhammad Wasimullah Khan
>> > Mobile:+46 72 03 29 205
>> > Alt.Telephone: +92 345 21 98 45
>> > Email: mwkhan@kth.se
>> > Skype: muhammad.wasim.khan
>> >
>>
>
>
>
> --
> Thank you & Regards
> Muhammad Wasimullah Khan
> Mobile:+46 72 03 29 205
> Alt.Telephone: +92 345 21 98 451
> Email: mwkhan@kth.se
> Skype: muhammad.wasim.khan
>

Re: File not found exception running mahout-examples-0.4.job.jar

Posted by Wasim <wa...@gmail.com>.
Hi Benson,

I am a newbie to mahout and cygwin.

and you seemed to be pointing in the correct direction (in fact i knew that
is the issue, but have no solution). I am just running the k-means on
Synthetic Control Data from mahout wiki page, which looks for
examples-job.jar in my file system.

I have read about cygpath from here:
http://www.cygwin.com/cygwin-ug-net/using-utils.html but don't know how to
use it in my case i.e. how can i tell the following command to use the
output from cygpath.

$MAHOUT_HOME/bin/mahout
org.apache.mahout.clustering.syntheticcontrol.kmeans.Job

which looks for mahout-examples-0.4-job.jar in my file system. are
there any options which i can
specify?, like with java command i can specify the classpath.
for e.g. i can use cygpath in following way for specifying java class path:

javac -cp "$(cygpath -pw "$CLASSPATH")" hello.java

what are the options in my case of explicitly specifying the path of jar
file.



On Thu, Mar 10, 2011 at 9:50 PM, Benson Margulies <bi...@gmail.com>wrote:

> Java doesn't know about /cygdrive. It can't. It's not a cygwin app.
> You need to use the output of cygpath -w.
>
>
> On Thu, Mar 10, 2011 at 3:24 PM, Wasim <wa...@gmail.com> wrote:
> > Hi,
> >
> > I am trying to run Synthetic Control Data example for clustering. I am
> using
> > Cygwin on Windows. I have got the following error:
> >
> >
> > $ bin/mahout org.apache.mahout.clustering.syntheticcontrol.kmeans.Job
> > Running on hadoop, using
> > HADOOP_HOME=/cygdrive/c/Users/Wasim/Downloads/hadoop-0.
> > 20.2
> > No HADOOP_CONF_DIR set, using
> > /cygdrive/c/Users/Wasim/Downloads/hadoop-0.20.2/co
> > nf
> > Exception in thread "main" java.io.IOException: Error opening job jar:
> > /cygdrive
> >
> /c/users/wasim/Downloads/mahout-distribution-0.4/mahout-examples-0.4-job.jar
> >        at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
> > Caused by: java.io.FileNotFoundException:
> > \cygdrive\c\users\wasim\Downloads\maho
> > ut-distribution-0.4\mahout-examples-0.4-job.jar (The system cannot find
> the
> > path
> >  specified)
> >        at java.util.zip.ZipFile.open(Native Method)
> >        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
> >        at java.util.jar.JarFile.<init>(JarFile.java:133)
> >        at java.util.jar.JarFile.<init>(JarFile.java:70)
> >        at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
> >
> > I have even mounted the c drive but still get the same error:
> >
> > Exception in thread "main" java.io.IOException: Error opening job jar:
> > /c/Users/
> > Wasim/Downloads/mahout-distribution-0.4/mahout-examples-0.4-job.jar
> >        at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
> > Caused by: java.io.FileNotFoundException:
> > \c\Users\Wasim\Downloads\mahout-distri
> > bution-0.4\mahout-examples-0.4-job.jar (The system cannot find the path
> > specifie
> > d)
> >        at java.util.zip.ZipFile.open(Native Method)
> >        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
> >        at java.util.jar.JarFile.<init>(JarFile.java:133)
> >        at java.util.jar.JarFile.<init>(JarFile.java:70)
> >        at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
> >
> > The file mahout-examples-0.4-job.jar is in its place.
> > --
> > Thank you & Regards
> > Muhammad Wasimullah Khan
> > Mobile:+46 72 03 29 205
> > Alt.Telephone: +92 345 21 98 45
> > Email: mwkhan@kth.se
> > Skype: muhammad.wasim.khan
> >
>



-- 
Thank you & Regards
Muhammad Wasimullah Khan
Mobile:+46 72 03 29 205
Alt.Telephone: +92 345 21 98 451
Email: mwkhan@kth.se
Skype: muhammad.wasim.khan

Re: File not found exception running mahout-examples-0.4.job.jar

Posted by Benson Margulies <bi...@gmail.com>.
Java doesn't know about /cygdrive. It can't. It's not a cygwin app.
You need to use the output of cygpath -w.


On Thu, Mar 10, 2011 at 3:24 PM, Wasim <wa...@gmail.com> wrote:
> Hi,
>
> I am trying to run Synthetic Control Data example for clustering. I am using
> Cygwin on Windows. I have got the following error:
>
>
> $ bin/mahout org.apache.mahout.clustering.syntheticcontrol.kmeans.Job
> Running on hadoop, using
> HADOOP_HOME=/cygdrive/c/Users/Wasim/Downloads/hadoop-0.
> 20.2
> No HADOOP_CONF_DIR set, using
> /cygdrive/c/Users/Wasim/Downloads/hadoop-0.20.2/co
> nf
> Exception in thread "main" java.io.IOException: Error opening job jar:
> /cygdrive
> /c/users/wasim/Downloads/mahout-distribution-0.4/mahout-examples-0.4-job.jar
>        at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
> Caused by: java.io.FileNotFoundException:
> \cygdrive\c\users\wasim\Downloads\maho
> ut-distribution-0.4\mahout-examples-0.4-job.jar (The system cannot find the
> path
>  specified)
>        at java.util.zip.ZipFile.open(Native Method)
>        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
>        at java.util.jar.JarFile.<init>(JarFile.java:133)
>        at java.util.jar.JarFile.<init>(JarFile.java:70)
>        at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
>
> I have even mounted the c drive but still get the same error:
>
> Exception in thread "main" java.io.IOException: Error opening job jar:
> /c/Users/
> Wasim/Downloads/mahout-distribution-0.4/mahout-examples-0.4-job.jar
>        at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
> Caused by: java.io.FileNotFoundException:
> \c\Users\Wasim\Downloads\mahout-distri
> bution-0.4\mahout-examples-0.4-job.jar (The system cannot find the path
> specifie
> d)
>        at java.util.zip.ZipFile.open(Native Method)
>        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
>        at java.util.jar.JarFile.<init>(JarFile.java:133)
>        at java.util.jar.JarFile.<init>(JarFile.java:70)
>        at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
>
> The file mahout-examples-0.4-job.jar is in its place.
> --
> Thank you & Regards
> Muhammad Wasimullah Khan
> Mobile:+46 72 03 29 205
> Alt.Telephone: +92 345 21 98 45
> Email: mwkhan@kth.se
> Skype: muhammad.wasim.khan
>