AnsweredAssumed Answered

m3: Hadoop Version and overlapping prototypes

Question asked by mapr123 on Oct 3, 2013
Latest reply on Oct 3, 2013 by mapr123
Hello:

We are porting a tomcat application (Groovy code) from Cloudera into MapR.
But I am having a problem. I suspect it is because I am using the wrong jars for apache hadoop.

I was able to use Cloudera' jars directly. But I did not find a nice 1-1 mapping between the two products.
For instance we used hadoop-hdfs-2.0.0-cdh4.2.0.jar, which from I can tell means that is part of the apache
hadoop 2.0.0 distro. MapR does not seem to have the same packaging as CDH.

So I needed to download from the URL http://mvnrepository.com/artifact/org.apache.hadoop.
I downloaded the 2.0.0 version since that seems to be what Cloudera is at.

The question is what version should I be downloading for the mapr distro??

Thanks
bg


Oct 2, 2013 10:23:04 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [/hbase] threw exception [javax.servlet.ServletException: javax.script.ScriptException: javax.script.ScriptException: groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method org.apache.hadoop.hbase.client.HTable#<init>.
Cannot resolve which method to invoke for [class org.apache.hadoop.conf.Configuration, null] due to overlapping prototypes between:
        [class org.apache.hadoop.conf.Configuration, class java.lang.String]
        [class org.apache.hadoop.conf.Configuration, class [B]] with root cause
groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method org.apache.hadoop.hbase.client.HTable#<init>.
Cannot resolve which method to invoke for [class org.apache.hadoop.conf.Configuration, null] due to overlapping prototypes between:
        [class org.apache.hadoop.conf.Configuration, class java.lang.String]
        [class org.apache.hadoop.conf.Configuration, class [B]
        at groovy.lang.MetaClassImpl.chooseMostSpecificParams(MetaClassImpl.java:2981)
        at groovy.lang.MetaClassImpl.chooseMethodInternal(MetaClassImpl.java:2934)
        at groovy.lang.MetaClassImpl.chooseMethod(MetaClassImpl.java:2875)
        at groovy.lang.MetaClassImpl.createConstructorSite(MetaClassImpl.java:3130)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallConstructorSite(CallSiteArray.java:88)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:194)
        at Script6.scan2(Script6.groovy:126)
        at Script6.read(Script6.groovy:76)
        at Script6.run(Script6.groovy:60)
        at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:346)
        at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:146)
        at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:123)
        at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:195)
        at org.apache.jsp.server.index_jsp._jspService(index_jsp.java:97)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:439)
        at org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:178)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)

Outcomes