Likely the hadoop 2 profile is missing the servlet api dependency.  I will
take another look this evening at it.  In the meantime the blur-gui project
is the one that has that dependency if you would like to take a look.

Thanks,
Aaron


On Thu, Feb 27, 2014 at 1:55 PM, Chris Bell <[email protected]> wrote:

> Thanks for the welcome and the help!
>
> Building with -Dhadoop2 seems to have resolved my issue with the
> LogFactory. I'm now getting an error when starting:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/servlet/Servlet
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)
> at java.lang.Class.getMethod0(Class.java:2694)
> at java.lang.Class.getMethod(Class.java:1622)
> at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
> at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
> Caused by: java.lang.ClassNotFoundException: javax.servlet.Servlet
> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> ... 6 more
>
>
> Looking through the source code, I noticed there were some dependencies
> related to Jetty. Is this expecting Jetty to be installed somewhere, or is
> there a dependency issue I'm not seeing?
>
> Thanks again for the help!
>
> Chris
>
> >First off welcome!  Hopefully we can work through this issue.
> >
> >The profile management recently changed so the current way to compile
> >against hadoop2 would be to add a -Dhadoop2 to any mvn command.  I'm not
> >sure I really like this way but it seemed to be the only way to
> >consistently get maven to work against only 1 of the 2 hadoop profiles.
> >
> >So for example to run install in maven:
> >
> >mvn install -Dhadoop2
> >
> >NOTE: Currently the MR minicluster used in the blur-mapred project is
> >broken, so those tests with hadoop2 will be broken.  However I believe the
> >code should work.
> >
> >Let me know how it goes and if you have anymore questions.
> >
> >Aaron
> >
> >
> >On Thu, Feb 27, 2014 at 9:53 AM, Chris Bell <[email protected]> wrote:
> >
> >> Hi All,
> >>
> >> I am trying to install apache-blur-0.2 out of git but I am running into
> an
> >> issue.
> >> I have the project built and the distro deployed, but when I try to run
> >> ./start-all.sh, I recieve an error indicating compilation problems:
> >>
> >> Exception in thread "main" java.lang.Error: Unresolved compilation
> problem:
> >> org.apache.commons.logging.LogFactory cannot be resolved to a type
> >> at org.apache.blur.log.LogFactory.getLog(LogFactory.java:26)
> >> at org.apache.blur.thrift.ThriftServer.<clinit>(ThriftServer.java:68)
> >>
> >> I've attempted adding in a commons-logging provided dependency to the
> >> blur-util sub-project, but that just leads to another issue:
> >>
> >> Exception in thread "main" java.lang.Error: Unresolved compilation
> problem:
> >> at
> >>
> >> org.apache.blur.thrift.ThriftBlurControllerServer.main(
> ThriftBlurControllerServer.java:79)
> >>
> >> I'm working against the hadoop-2.2 profile.
> >>
> >> Any help would be appreciated.
> >>
> >> Thanks!
> >>
> >> Chris
> >>
>

Reply via email to