hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Venkat Ramakrishnan <venkat.archit...@gmail.com>
Subject Re: Compilation failing for AuthenticatedURL (no suitable constructor found) Hadoop 2.6.0
Date Thu, 05 Feb 2015 15:24:21 GMT
I opened a bug in JIRA. They closed it saying Hadoop 2.6.0 builds perfectly
on Windows. So, I am going to stick with Windows.

Yes, I can check out the whole code again. But, I wonder why is it not
possible to pinpoint why this error is happening.

Thanks,
Venkat.



On Thu, Feb 5, 2015 at 2:51 PM, Azuryy Yu <azuryyyu@gmail.com> wrote:

> Can you build Hadoop on Linux? or can you check out the whole code from
> branch-2 again, then build it?
>
> On Thu, Feb 5, 2015 at 10:21 AM, Venkat Ramakrishnan <
> venkat.architect@gmail.com> wrote:
>
>> I need to compile Hadoop, and I am not able to
>> figure out why this error is occuring.
>>
>> Can someone please help?
>>
>> Thanks,
>> Venkat.
>>
>>
>> On Fri, Dec 26, 2014 at 10:48 AM, Venkat Ramakrishnan <
>> venkat.architect@gmail.com> wrote:
>>
>>> Forgot to mention that I'm on Windows 7.
>>>
>>> Thx,
>>> Venkat.
>>>
>>>
>>> On Fri, Dec 26, 2014 at 10:09 AM, Ted Yu <yuzhihong@gmail.com> wrote:
>>>
>>>> I performed the same command on branch-2 and didn't see any compilation
>>>> error.
>>>>
>>>> hadoop 2.6.0 has been published in maven repo. You should be able to
>>>> utilize that - if you don't make modification to hadoop source.
>>>>
>>>> Cheers
>>>>
>>>> On Thu, Dec 25, 2014 at 6:54 PM, Venkat Ramakrishnan <
>>>> venkat.architect@gmail.com> wrote:
>>>>
>>>>> Thanks Ted, but the issue seem to be specifically
>>>>> with AuthenticatedURL, as mentioned in the error.
>>>>> I am not able to locate the latest documentation for
>>>>> AuthenticatedURL, but, it looks like it has two constructors
>>>>> one with arguments and one without any.
>>>>>
>>>>> I am not a developer. I am just trying to build Hadoop 2.6.0,
>>>>> on my way to eventually run Pig.  I was expecting that Hadoop
>>>>> will build clean without any errors, but I am stuck now.
>>>>>
>>>>> Any pointers on how to resolve the below-mentioned error
>>>>> would be appreciated.
>>>>>
>>>>> Thanks,
>>>>> Venkat.
>>>>>
>>>>> On Fri, Dec 26, 2014 at 7:14 AM, Ted Yu <yuzhihong@gmail.com> wrote:
>>>>>
>>>>>> I copied your file to the path (corresponding to clone of trunk
>>>>>> branch) shown in your email and issued 'mvn package -DskipTests'
>>>>>> After which I was able to find the class file:
>>>>>>
>>>>>> $ find hadoop-common-project/hadoop-auth-examples/target/ -name
>>>>>> WhoClient.class
>>>>>>
>>>>>> hadoop-common-project/hadoop-auth-examples/target//classes/org/apache/hadoop/security/authentication/examples/WhoClient.class
>>>>>>
>>>>>> FYI
>>>>>>
>>>>>> On Thu, Dec 25, 2014 at 2:25 AM, Venkat Ramakrishnan <
>>>>>> venkat.architect@gmail.com> wrote:
>>>>>>
>>>>>>> Hello all,
>>>>>>>
>>>>>>> The following error is encountered while compiling
>>>>>>> hadoop-auth-examples
>>>>>>> with WhoClient.java file. What should be done?
>>>>>>>
>>>>>>> Source file attached.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Venkat.
>>>>>>>
>>>>>>> [ERROR] Failed to execute goal
>>>>>>> org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
>>>>>>> (default-compile) on project hadoop-auth-examples: Compilation
failure
>>>>>>> [ERROR]
>>>>>>> D:\h\hadoop-2.6.0-src\hadoop-common-project\hadoop-auth-examples\src\main\java\org\apache\hadoop\security\authentication\examples\WhoClient.java:[36,31]
>>>>>>> error: no suitable constructor found for AuthenticatedURL(no
arguments)
>>>>>>> [ERROR] -> [Help 1]
>>>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed
to
>>>>>>> execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
>>>>>>> (default-compile) on project hadoop-auth-examples: Compilation
failure
>>>>>>> D:\h\hadoop-2.6.0-src\hadoop-common-project\hadoop-auth-examples\src\main\java\org\apache\hadoop\security\authentication\examples\WhoClient.java:[36,31]
>>>>>>> error: no suitable constructor found for AuthenticatedURL(no
arguments)
>>>>>>>
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
>>>>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
>>>>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
>>>>>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
>>>>>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>>>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>> at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>>>>> at
>>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>>>>>>> at
>>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>>>>>> at
>>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>>>>>>> at
>>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>>>>>>> Caused by: org.apache.maven.plugin.CompilationFailureException:
>>>>>>> Compilation failure
>>>>>>> D:\h\hadoop-2.6.0-src\hadoop-common-project\hadoop-auth-examples\src\main\java\org\apache\hadoop\security\authentication\examples\WhoClient.java:[36,31]
>>>>>>> error: no suitable constructor found for AuthenticatedURL(no
arguments)
>>>>>>>
>>>>>>> at
>>>>>>> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:729)
>>>>>>> at
>>>>>>> org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
>>>>>>> at
>>>>>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>>>>>>> ... 19 more
>>>>>>> [ERROR]
>>>>>>> [ERROR]
>>>>>>> [ERROR] For more information about the errors and possible
>>>>>>> solutions, please read the following articles:
>>>>>>> [ERROR] [Help 1]
>>>>>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>>>>>>> [ERROR]
>>>>>>> [ERROR] After correcting the problems, you can resume the build
with
>>>>>>> the command
>>>>>>> [ERROR]   mvn <goals> -rf :hadoop-auth-examples
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

Mime
View raw message