You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@crunch.apache.org by Renato Marroquín Mogrovejo <re...@gmail.com> on 2012/12/27 19:38:44 UTC

Running first example

Hi all,

First of all, congrats for the project, I think it is awesome! I hope
I can use it and who knows maybe contribute (:
Anyways, I don't want to sound too clumsy but I was looking at the
project [1] and I haven't been able to run the first example which is:

{code}
./hadoop -jar ../../../ApacheCrunch/apache-crunch-0.4.0-incubating-src/crunch-examples/target/crunch-examples-0.4.0-incubating-job.jar
org.apache.crunch.examples.WordCount
../../../ApacheCrunch/apache-crunch-0.4.0-incubating-src/crunch-examples/src/main/resources/access_logs.tar.gz
.
{/code}

I keep getting this:

Failed to load Main-Class manifest attribute from
../../../ApacheCrunch/apache-crunch-0.4.0-incubating-src/crunch-examples/target/crunch-examples-0.4.0-incubating-job.jar

I am using hadoop 1.0.3 within MacOS and what I did is to download the
sources and run mvn clean install. Any hints?
Thanks in advance!


Renato M.

[1] http://incubator.apache.org/crunch/intro.html

Re: Running first example

Posted by Renato Marroquín Mogrovejo <re...@gmail.com>.
Thanks Josh! My bad!


Renato M.

2012/12/27 Josh Wills <jw...@cloudera.com>:
> Are you running hadoop -jar, or hadoop jar? The latter is the right one,
> IIRC.
>
> J
>
>
> On Thu, Dec 27, 2012 at 10:38 AM, Renato Marroquín Mogrovejo
> <re...@gmail.com> wrote:
>>
>> Hi all,
>>
>> First of all, congrats for the project, I think it is awesome! I hope
>> I can use it and who knows maybe contribute (:
>> Anyways, I don't want to sound too clumsy but I was looking at the
>> project [1] and I haven't been able to run the first example which is:
>>
>> {code}
>> ./hadoop -jar
>> ../../../ApacheCrunch/apache-crunch-0.4.0-incubating-src/crunch-examples/target/crunch-examples-0.4.0-incubating-job.jar
>> org.apache.crunch.examples.WordCount
>>
>> ../../../ApacheCrunch/apache-crunch-0.4.0-incubating-src/crunch-examples/src/main/resources/access_logs.tar.gz
>> .
>> {/code}
>>
>> I keep getting this:
>>
>> Failed to load Main-Class manifest attribute from
>>
>> ../../../ApacheCrunch/apache-crunch-0.4.0-incubating-src/crunch-examples/target/crunch-examples-0.4.0-incubating-job.jar
>>
>> I am using hadoop 1.0.3 within MacOS and what I did is to download the
>> sources and run mvn clean install. Any hints?
>> Thanks in advance!
>>
>>
>> Renato M.
>>
>> [1] http://incubator.apache.org/crunch/intro.html
>
>
>
>
> --
> Director of Data Science
> Cloudera
> Twitter: @josh_wills

Re: Running first example

Posted by Josh Wills <jw...@cloudera.com>.
Are you running hadoop -jar, or hadoop jar? The latter is the right one,
IIRC.

J


On Thu, Dec 27, 2012 at 10:38 AM, Renato Marroquín Mogrovejo <
renatoj.marroquin@gmail.com> wrote:

> Hi all,
>
> First of all, congrats for the project, I think it is awesome! I hope
> I can use it and who knows maybe contribute (:
> Anyways, I don't want to sound too clumsy but I was looking at the
> project [1] and I haven't been able to run the first example which is:
>
> {code}
> ./hadoop -jar
> ../../../ApacheCrunch/apache-crunch-0.4.0-incubating-src/crunch-examples/target/crunch-examples-0.4.0-incubating-job.jar
> org.apache.crunch.examples.WordCount
>
> ../../../ApacheCrunch/apache-crunch-0.4.0-incubating-src/crunch-examples/src/main/resources/access_logs.tar.gz
> .
> {/code}
>
> I keep getting this:
>
> Failed to load Main-Class manifest attribute from
>
> ../../../ApacheCrunch/apache-crunch-0.4.0-incubating-src/crunch-examples/target/crunch-examples-0.4.0-incubating-job.jar
>
> I am using hadoop 1.0.3 within MacOS and what I did is to download the
> sources and run mvn clean install. Any hints?
> Thanks in advance!
>
>
> Renato M.
>
> [1] http://incubator.apache.org/crunch/intro.html
>



-- 
Director of Data Science
Cloudera <http://www.cloudera.com>
Twitter: @josh_wills <http://twitter.com/josh_wills>