Alright, I can't figure out what I'm doing wrong.  I've tried mvn install,
mvn package and mvn package -Ppackage.  I've tried running bin/whirr
directly from the checkout directory and from extracting the *-src.tar.gz.
 I keep getting this error:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/whirr/cli/Main
Caused by: java.lang.ClassNotFoundException: org.apache.whirr.cli.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.apache.whirr.cli.Main.  Program will
exit.

Googling for "noclassdeffounderror org apache whirr cli main", looks like
I'm not the only one, but I don't see a clear answer on how to fix.

-- Jim

On Tue, Jul 26, 2011 at 9:06 AM, Jim R. Wilson <wilson.ji...@gmail.com>wrote:

> Ugh, sorry for the spam - the problem was my hbase.properties file I had
> been working on and placed in the project dir.
>
> (target/rat.txt had this info)... trying again.
>
> -- Jim
>
>
> On Tue, Jul 26, 2011 at 9:03 AM, Jim R. Wilson <wilson.ji...@gmail.com>wrote:
>
>> When I try to mvn install, I get this:
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Too many unapproved licenses: 1
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.BuildFailureException: Too many unapproved licenses: 1
>>  at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>>  at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>  at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>  at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>>  at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>  at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by: org.apache.rat.mp.RatCheckException: Too many unapproved
>> licenses: 1
>> at org.apache.rat.mp.RatCheckMojo.check(RatCheckMojo.java:167)
>>  at org.apache.rat.mp.RatCheckMojo.execute(RatCheckMojo.java:159)
>> at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>  at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>> ... 17 more
>>
>> -- Jim
>>
>> On Tue, Jul 26, 2011 at 8:47 AM, Jim R. Wilson <wilson.ji...@gmail.com>wrote:
>>
>>> Never mind, I see it in your git branch, Bruno.  I'm building that to try
>>> it out.
>>>
>>> -- Jim
>>>
>>>
>>> On Tue, Jul 26, 2011 at 8:39 AM, Jim R. Wilson 
>>> <wilson.ji...@gmail.com>wrote:
>>>
>>>> I see the HBase/EC2/CDH recipe in trunk - does this mean the additions
>>>> mentioned in this thread have been committed?
>>>>
>>>> Does anyone have a recipe for stock hbase 0.90.3?  Thanks,
>>>>
>>>> -- Jim
>>>>
>>>>
>>>> On Mon, Jul 18, 2011 at 1:24 PM, Andrei Savu <savu.and...@gmail.com>wrote:
>>>>
>>>>> Thanks Bruno for taking the time to update the patches so that the
>>>>> integration tests work as expected. Hopefully we should be able to
>>>>> commit the code to the trunk now.
>>>>>
>>>>> Cheers,
>>>>>
>>>>> -- Andrei Savu / andreisavu.ro
>>>>>
>>>>> On Fri, Jul 15, 2011 at 8:46 AM, Bruno Dumon <br...@outerthought.org>
>>>>> wrote:
>>>>> > Hi,
>>>>> >
>>>>> > A quick update on my attempts to get HBase working.
>>>>> >
>>>>> > I have launched successfully clusters with:
>>>>> >
>>>>> >  * standard HBase 0.90.3. I tried it on top of Cloudera Hadoop (the
>>>>> .tar.gz
>>>>> > dist), but it should work equally well with other HBase-supported
>>>>> builds.
>>>>> > See WHIRR-240 and the new hbase-ec2-090 recipe.
>>>>> >  * the CDH3u0 linux packages. See WHIRR-334.
>>>>> >
>>>>> > I also added the ability to set hbase-site.xml properties from the
>>>>> cluster
>>>>> > configuration file (see WHIRR-339), similar as to how this is done
>>>>> for
>>>>> > Hadoop.
>>>>> >
>>>>> > If anyone wants to give it a try without going through the trouble of
>>>>> > applying the patches, you can get my fork at
>>>>> https://github.com/bdumon/whirr
>>>>> >
>>>>> > --
>>>>> > Bruno Dumon
>>>>> > Outerthought
>>>>> > http://outerthought.org/
>>>>> >
>>>>>
>>>>
>>>>
>>>
>>
>

Reply via email to