Problems running the examples

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems running the examples

deneche abdelhakim
I've been using Eclipse for all my testing and all just works fine. But now I want to build and test the examples using ant. I managed to modify the build.xml to generate the examples job. But when I run one of the examples (for example : ...clustering.syntheticcontrol.canopy.Job) I get the following errors:

$ ~/hadoop-0.17.0/bin/hadoop jar apache-mahout-0.1-dev-ex.jar org.apache.mahout
  .clustering.syntheticcontrol.canopy.Job
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

any hints on how to solve this ???




      _____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
Reply | Threaded
Open this post in threaded view
|

Re: Problems running the examples

Jeff Eastman
I had to use an -Xmx 256m to get the tests to run without heap problems.
Jeff


deneche abdelhakim wrote:

> I've been using Eclipse for all my testing and all just works fine. But now I want to build and test the examples using ant. I managed to modify the build.xml to generate the examples job. But when I run one of the examples (for example : ...clustering.syntheticcontrol.canopy.Job) I get the following errors:
>
> $ ~/hadoop-0.17.0/bin/hadoop jar apache-mahout-0.1-dev-ex.jar org.apache.mahout
>   .clustering.syntheticcontrol.canopy.Job
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
> Could not create the Java virtual machine.
>
> any hints on how to solve this ???
>
>
>
>
>       _____________________________________________________________________________
> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
>  

Reply | Threaded
Open this post in threaded view
|

Re: Problems running the examples

deneche abdelhakim
The test run fine, its the examples that didn't run correctly, but I found a way to run them, by playing with the HADOOP_HEAPSIZE option in conf/hadoop-env.sh, it defaults to 1000 MB, I just set it to 128 and now its ok...

by the way the Taste examples are missing a dependency (ejb.jar), is there a good reason not to include it (License issues perhaps) ?

--- En date de : Mar 1.7.08, Jeff Eastman <[hidden email]> a écrit :
De: Jeff Eastman <[hidden email]>
Objet: Re: Problems running the examples
À: [hidden email]
Date: Mardi 1 Juillet 2008, 17h32

I had to use an -Xmx 256m to get the tests to run without heap problems.
Jeff


deneche abdelhakim wrote:
> I've been using Eclipse for all my testing and all just works fine.
But now I want to build and test the examples using ant. I managed to modify
the build.xml to generate the examples job. But when I run one of the examples
(for example : ...clustering.syntheticcontrol.canopy.Job) I get the following
errors:
>
> $ ~/hadoop-0.17.0/bin/hadoop jar apache-mahout-0.1-dev-ex.jar
org.apache.mahout

>   .clustering.syntheticcontrol.canopy.Job
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
> Could not create the Java virtual machine.
>
> any hints on how to solve this ???
>
>
>
>
>      
_____________________________________________________________________________
> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente
http://mail.yahoo.fr
>


      _____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
Reply | Threaded
Open this post in threaded view
|

Re: Problems running the examples

Sean Owen
By the way, that heap size error message you got is not from running
out of memory, but from the JVM not being able to allocate the initial
heap size on startup. This usually comes from a typo of some kind in
the "-Xms" or "-Xmx" flag. For example "-Xmx256" does not mean 256MB,
it means 256 bytes. :) That causes this error. Or if you try
"-Xmx4096m" on a 32-bit machine, well, you're not going to quite make
it either.

Yes there is no ejb.jar for license reasons. Really... I am not sure
people use session EJBs anymore. I wrote that for EJB 2.1 a couple
years ago and don't know if anyone ever used it. In the transition to
"Taste 2.0" I shed some old stuff like that. I didn't remove it, just
put it in the examples directory.

On Tue, Jul 1, 2008 at 11:18 AM, deneche abdelhakim <[hidden email]> wrote:

> The test run fine, its the examples that didn't run correctly, but I found a way to run them, by playing with the HADOOP_HEAPSIZE option in conf/hadoop-env.sh, it defaults to 1000 MB, I just set it to 128 and now its ok...
>
> by the way the Taste examples are missing a dependency (ejb.jar), is there a good reason not to include it (License issues perhaps) ?
>
> --- En date de : Mar 1.7.08, Jeff Eastman <[hidden email]> a écrit :
> De: Jeff Eastman <[hidden email]>
> Objet: Re: Problems running the examples
> À: [hidden email]
> Date: Mardi 1 Juillet 2008, 17h32
>
> I had to use an -Xmx 256m to get the tests to run without heap problems.
> Jeff
>
>
> deneche abdelhakim wrote:
>> I've been using Eclipse for all my testing and all just works fine.
> But now I want to build and test the examples using ant. I managed to modify
> the build.xml to generate the examples job. But when I run one of the examples
> (for example : ...clustering.syntheticcontrol.canopy.Job) I get the following
> errors:
>>
>> $ ~/hadoop-0.17.0/bin/hadoop jar apache-mahout-0.1-dev-ex.jar
> org.apache.mahout
>>   .clustering.syntheticcontrol.canopy.Job
>> Error occurred during initialization of VM
>> Could not reserve enough space for object heap
>> Could not create the Java virtual machine.
>>
>> any hints on how to solve this ???
>>
>>
>>
>>
>>
> _____________________________________________________________________________
>> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente
> http://mail.yahoo.fr
>>
>
>
>      _____________________________________________________________________________
> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
Reply | Threaded
Open this post in threaded view
|

Re: Problems running the examples

Grant Ingersoll-2

On Jul 1, 2008, at 12:32 PM, Sean Owen wrote:

>
> Yes there is no ejb.jar for license reasons. Really... I am not sure
> people use session EJBs anymore. I wrote that for EJB 2.1 a couple
> years ago and don't know if anyone ever used it. In the transition to
> "Taste 2.0" I shed some old stuff like that. I didn't remove it, just
> put it in the examples directory.

Should we just add in ejb.jar then?  I notice http://openejb.apache.org/download.html 
  has it in there distribution (well, it has javaee-api-5.0-1.jar that  
is, but it makes the examples compile with Deneche's MAHOUT-56 patch)

I think I will just commit it.  We can always factor it out.

-Grant

>
>
> On Tue, Jul 1, 2008 at 11:18 AM, deneche abdelhakim <[hidden email]
> > wrote:
>> The test run fine, its the examples that didn't run correctly, but  
>> I found a way to run them, by playing with the HADOOP_HEAPSIZE  
>> option in conf/hadoop-env.sh, it defaults to 1000 MB, I just set it  
>> to 128 and now its ok...
>>
>> by the way the Taste examples are missing a dependency (ejb.jar),  
>> is there a good reason not to include it (License issues perhaps) ?
>>
>> --- En date de : Mar 1.7.08, Jeff Eastman  
>> <[hidden email]> a écrit :
>> De: Jeff Eastman <[hidden email]>
>> Objet: Re: Problems running the examples
>> À: [hidden email]
>> Date: Mardi 1 Juillet 2008, 17h32
>>
>> I had to use an -Xmx 256m to get the tests to run without heap  
>> problems.
>> Jeff
>>
>>
>> deneche abdelhakim wrote:
>>> I've been using Eclipse for all my testing and all just works fine.
>> But now I want to build and test the examples using ant. I managed  
>> to modify
>> the build.xml to generate the examples job. But when I run one of  
>> the examples
>> (for example : ...clustering.syntheticcontrol.canopy.Job) I get the  
>> following
>> errors:
>>>
>>> $ ~/hadoop-0.17.0/bin/hadoop jar apache-mahout-0.1-dev-ex.jar
>> org.apache.mahout
>>>  .clustering.syntheticcontrol.canopy.Job
>>> Error occurred during initialization of VM
>>> Could not reserve enough space for object heap
>>> Could not create the Java virtual machine.
>>>
>>> any hints on how to solve this ???
>>>
>>>
>>>
>>>
>>>
>> _____________________________________________________________________________
>>> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente
>> http://mail.yahoo.fr
>>>
>>
>>
>>      
>> _____________________________________________________________________________
>> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr

--------------------------
Grant Ingersoll
http://www.lucidimagination.com

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ







Reply | Threaded
Open this post in threaded view
|

Re: Problems running the examples

Sean Owen
I'm fine with that. I had an Apache-licensed project and included it.
I have not found a crystal-clear statement on how the EJB
specification classes are licensed, but I would be shocked if one
cannot redistribute these API jars.

I moved this out of the main code and into an examples directory so at
least the main code does not depend on this either way, so that it
would be less of an issue. You could argue it's fine to ask users to
download ejb.jar to build examples... but I personally also think it
is OK to include the EJB spec classes in this project's distribution.

On Fri, Jul 11, 2008 at 10:29 PM, Grant Ingersoll <[hidden email]> wrote:

>
> On Jul 1, 2008, at 12:32 PM, Sean Owen wrote:
>
>>
>> Yes there is no ejb.jar for license reasons. Really... I am not sure
>> people use session EJBs anymore. I wrote that for EJB 2.1 a couple
>> years ago and don't know if anyone ever used it. In the transition to
>> "Taste 2.0" I shed some old stuff like that. I didn't remove it, just
>> put it in the examples directory.
>
> Should we just add in ejb.jar then?  I notice
> http://openejb.apache.org/download.html has it in there distribution (well,
> it has javaee-api-5.0-1.jar that is, but it makes the examples compile with
> Deneche's MAHOUT-56 patch)
>
> I think I will just commit it.  We can always factor it out.
>
> -Grant
>
>>
>>
>> On Tue, Jul 1, 2008 at 11:18 AM, deneche abdelhakim <[hidden email]>
>> wrote:
>>>
>>> The test run fine, its the examples that didn't run correctly, but I
>>> found a way to run them, by playing with the HADOOP_HEAPSIZE option in
>>> conf/hadoop-env.sh, it defaults to 1000 MB, I just set it to 128 and now its
>>> ok...
>>>
>>> by the way the Taste examples are missing a dependency (ejb.jar), is
>>> there a good reason not to include it (License issues perhaps) ?
>>>
>>> --- En date de : Mar 1.7.08, Jeff Eastman <[hidden email]> a
>>> écrit :
>>> De: Jeff Eastman <[hidden email]>
>>> Objet: Re: Problems running the examples
>>> À: [hidden email]
>>> Date: Mardi 1 Juillet 2008, 17h32
>>>
>>> I had to use an -Xmx 256m to get the tests to run without heap problems.
>>> Jeff
>>>
>>>
>>> deneche abdelhakim wrote:
>>>>
>>>> I've been using Eclipse for all my testing and all just works fine.
>>>
>>> But now I want to build and test the examples using ant. I managed to
>>> modify
>>> the build.xml to generate the examples job. But when I run one of the
>>> examples
>>> (for example : ...clustering.syntheticcontrol.canopy.Job) I get the
>>> following
>>> errors:
>>>>
>>>> $ ~/hadoop-0.17.0/bin/hadoop jar apache-mahout-0.1-dev-ex.jar
>>>
>>> org.apache.mahout
>>>>
>>>>  .clustering.syntheticcontrol.canopy.Job
>>>> Error occurred during initialization of VM
>>>> Could not reserve enough space for object heap
>>>> Could not create the Java virtual machine.
>>>>
>>>> any hints on how to solve this ???
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> _____________________________________________________________________________
>>>>
>>>> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente
>>>
>>> http://mail.yahoo.fr
>>>>
>>>
>>>
>>>
>>>  _____________________________________________________________________________
>>> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente
>>> http://mail.yahoo.fr
>
> --------------------------
> Grant Ingersoll
> http://www.lucidimagination.com
>
> Lucene Helpful Hints:
> http://wiki.apache.org/lucene-java/BasicsOfPerformance
> http://wiki.apache.org/lucene-java/LuceneFAQ
>
>
>
>
>
>
>
>