[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hadoop-user
Subject:    Re: windows installation error
From:       Onder SEZGIN <ondersezgin () gmail ! com>
Date:       2015-09-27 11:27:16
Message-ID: CAE9ARBRT-YEL5va1a3Noo+9RnDMW2L+JaS4_6FYQfPnUp28R=Q () mail ! gmail ! com
[Download RAW message or body]

Hi,

I am writing this email as a note for other users to resolve if they come
across such issue.
Found the solution by trying numerous building hadoop distributions.
The problem is not due to hadoop distributions or versions obviously,
It is because of building winutils id hadoop-common project.

While building winutils, it was requiring

cvtres.exe to be called to build the Windows Solution
dependency(winutils.sln).

So if you installed .net 4.5 framework,

cvtres.exe was using a wrong version of dll dependency.

What i did was to uninstall .net framework 4.5 and installing 4.0 framework
which is using the right version dll file and helping maven package ...
command to get over the issue and build hadoop successfully,

Possibble other solutions which is reasoned by cvtres.exe are explained in
stackoverflow and in  this blog post and windows update reference site.

http://stackoverflow.com/questions/10888391/error-link-fatal-error-lnk1123-failure-during-conversion-to-coff-file-inval


https://aimslife.wordpress.com/2014/01/22/incremental-linking-lnk1123-error-in-vs2010-while-building-project/


http://blogs.msdn.com/b/heaths/archive/2011/04/01/visual-c-2010-sp1-compiler-update-for-the-windows-sdk-7-1.aspx


Thanks in advance...





On Sat, Sep 26, 2015 at 11:59 PM, Onder SEZGIN <ondersezgin@gmail.com>
wrote:

> Yes, the command i am running is
> 
> > mvn -e package -Pdist,native-win -DskipTests -Dtar
> 
> and i follow BUILDING.txt
> 
> Önder
> 
> On Sat, Sep 26, 2015 at 11:31 PM, Ted Yu <yuzhihong@gmail.com> wrote:
> 
> > Have you specified the following profile ?
> > 
> > -Pnative-win
> > 
> > Please see 'Building on Windows' section in BUILDING.txt
> > 
> > Details can be found in this commit:
> > 
> > 638801cce16fc1dc3259c541dc30a599faaddda1
> > 
> > Cheers
> > 
> > On Sat, Sep 26, 2015 at 6:51 AM, Onder SEZGIN <ondersezgin@gmail.com>
> > wrote:
> > 
> > > It was the latest release.
> > > -X gives the same output because i had already supplied -e option while
> > > running mvn package command.
> > > 
> > > On Saturday, September 26, 2015, Ted Yu <yuzhihong@gmail.com> wrote:
> > > 
> > > > Which release of hadoop are you installing ?
> > > > 
> > > > Have you tried supplying -X switch to see debug logs ?
> > > > 
> > > > Cheers
> > > > 
> > > > On Sat, Sep 26, 2015 at 5:46 AM, Onder SEZGIN <ondersezgin@gmail.com>
> > > > wrote:
> > > > 
> > > > > Hi,
> > > > > 
> > > > > I am trying to build hadoop on windows.
> > > > > and i am getting the error below.
> > > > > 
> > > > > Is there anyone who could get over the issue?
> > > > > 
> > > > > Cheers
> > > > > 
> > > > > [ERROR] Failed to execute goal
> > > > > org.codehaus.mojo:exec-maven-plugin:1.3.1:exec (c
> > > > > ompile-ms-winutils) on project hadoop-common: Command execution
> > > > > failed. Process
> > > > > exited with an error: 1 (Exit value: 1) -> [Help 1]
> > > > > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > > > > execute goal o
> > > > > rg.codehaus.mojo:exec-maven-plugin:1.3.1:exec (compile-ms-winutils) on
> > > > > project h
> > > > > adoop-common: Command execution failed.
> > > > > at
> > > > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
> > > > > .java:216)
> > > > > 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.buildProje
> > > > > ct(LifecycleModuleBuilder.java:84)
> > > > > at
> > > > > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
> > > > > ct(LifecycleModuleBuilder.java:59)
> > > > > at
> > > > > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
> > > > > ild(LifecycleStarter.java:183)
> > > > > at
> > > > > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
> > > > > eStarter.java:161)
> > > > > at
> > > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
> > > > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
> > > > > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
> > > > > 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:57)
> > > > > at
> > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > > > > sorImpl.java:43)
> > > > > at java.lang.reflect.Method.invoke(Method.java:606)
> > > > > at
> > > > > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
> > > > > cher.java:289)
> > > > > at
> > > > > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
> > > > > a:229)
> > > > > at
> > > > > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
> > > > > uncher.java:415)
> > > > > at
> > > > > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> > > > > 356)
> > > > > Caused by: org.apache.maven.plugin.MojoExecutionException: Command
> > > > > execution fai
> > > > > led.
> > > > > at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:303)
> > > > > at
> > > > > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
> > > > > BuildPluginManager.java:106)
> > > > > at
> > > > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
> > > > > .java:208)
> > > > > ... 19 more
> > > > > Caused by: org.apache.commons.exec.ExecuteException: Process exited
> > > > > with an erro
> > > > > r: 1 (Exit value: 1)
> > > > > at
> > > > > org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
> > > > > or.java:402)
> > > > > at
> > > > > org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
> > > > > 164)
> > > > > at
> > > > > org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:750)
> > > > > 
> > > > > at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:292)
> > > > > ... 21 more
> > > > > [ERROR]
> > > > > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > > > > [ERROR]
> > > > > [ERROR] For more information about the errors and possible solutions,
> > > > > please rea
> > > > > d the following articles:
> > > > > [ERROR] [Help 1]
> > > > > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
> > > > > xception
> > > > > [ERROR]
> > > > > [ERROR] After correcting the problems, you can resume the build with
> > > > > the command
> > > > > 
> > > > > [ERROR]   mvn <goals> -rf :hadoop-common
> > > > > --
> > > > > Regards
> > > > > Onder
> > > > > 
> > > > > 
> > > > 
> > > 
> > > --
> > > Sent from my iPhone
> > > 
> > 
> > 
> 
> 
> --
> Regards
> Onder
> 
> 


-- 
Regards
Onder


[Attachment #3 (text/html)]

<div dir="ltr">Hi,<div><br></div><div>I am writing this email as a note for other \
users to resolve if they come across such issue.</div><div>Found the solution by \
trying numerous building hadoop distributions.</div><div>The problem is not due to \
hadoop distributions or versions obviously,</div><div>It is because of building \
winutils id hadoop-common project.</div><div><br></div><div>While building winutils, \
it was requiring  </div><div><br></div><div>cvtres.exe to be called to build the \
Windows Solution dependency(winutils.sln).</div><div><br></div><div>So if you \
installed .net 4.5 framework,</div><div><br></div><div>cvtres.exe was using a wrong \
version of dll dependency.</div><div><br></div><div>What i did was to uninstall .net \
framework 4.5 and installing 4.0 framework which is using the right version dll file \
and helping maven package ... command to get over the issue and build hadoop \
successfully,</div><div><br></div><div>Possibble other solutions which is reasoned by \
cvtres.exe are explained in stackoverflow and in   this blog post and windows update \
reference site.</div><div><br></div><div><a \
href="http://stackoverflow.com/questions/10888391/error-link-fatal-error-lnk1123-failu \
re-during-conversion-to-coff-file-inval">http://stackoverflow.com/questions/10888391/e \
rror-link-fatal-error-lnk1123-failure-during-conversion-to-coff-file-inval</a><br></div><div><br></div><div><a \
href="https://aimslife.wordpress.com/2014/01/22/incremental-linking-lnk1123-error-in-v \
s2010-while-building-project/">https://aimslife.wordpress.com/2014/01/22/incremental-l \
inking-lnk1123-error-in-vs2010-while-building-project/</a><br></div><div><br></div><div><a \
href="http://blogs.msdn.com/b/heaths/archive/2011/04/01/visual-c-2010-sp1-compiler-upd \
ate-for-the-windows-sdk-7-1.aspx">http://blogs.msdn.com/b/heaths/archive/2011/04/01/vi \
sual-c-2010-sp1-compiler-update-for-the-windows-sdk-7-1.aspx</a><br></div><div><br></div><div>Thanks \
in advance...</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 26, 2015 at 11:59 PM, \
Onder SEZGIN <span dir="ltr">&lt;<a href="mailto:ondersezgin@gmail.com" \
target="_blank">ondersezgin@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Yes, the command i am running is  \
<div><br></div><div>&gt;mvn -e package -Pdist,native-win -DskipTests \
-Dtar<br></div><div><br></div><div>and i follow \
BUILDING.txt</div><div><br></div><div>Önder</div></div><div \
class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Sat, Sep 26, \
2015 at 11:31 PM, Ted Yu <span dir="ltr">&lt;<a href="mailto:yuzhihong@gmail.com" \
target="_blank">yuzhihong@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Have you specified the following profile \
?<div><br><div>-Pnative-win<br></div></div><div><br></div><div>Please see \
&#39;Building on Windows&#39; section in  \
BUILDING.txt</div><div><br></div><div>Details can be found in this \
commit:</div><div><br></div><div>638801cce16fc1dc3259c541dc30a599faaddda1<br></div><div><br></div><div>Cheers</div></div><div><div><div \
class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 26, 2015 at 6:51 AM, \
Onder SEZGIN <span dir="ltr">&lt;<a href="mailto:ondersezgin@gmail.com" \
target="_blank">ondersezgin@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">It was the latest release.  <div>-X gives the same output \
because i had already supplied -e option while running mvn package \
command.<span></span><br><br>On Saturday, September 26, 2015, Ted Yu &lt;<a \
href="mailto:yuzhihong@gmail.com" target="_blank">yuzhihong@gmail.com</a>&gt; \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div dir="ltr">Which release of hadoop are you \
installing ?<div><br></div><div>Have you tried supplying -X switch to see debug logs \
?</div><div><br></div><div>Cheers</div></div><div><div><div \
class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 26, 2015 at 5:46 AM, \
Onder SEZGIN <span dir="ltr">&lt;<a>ondersezgin@gmail.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I am trying to \
build hadoop on windows.</div><div>and i am getting the error \
below.</div><div><br></div><div>Is there anyone who could get over the \
issue?</div><div><br></div><div>Cheers</div><div><br></div><div><div>[ERROR] Failed \
to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.1:exec \
(c</div><div>ompile-ms-winutils) on project hadoop-common: Command execution failed. \
Process</div><div>exited with an error: 1 (Exit value: 1) -&gt; [Help \
1]</div><div>org.apache.maven.lifecycle.LifecycleExecutionException: Failed to \
execute goal o</div><div>rg.codehaus.mojo:exec-maven-plugin:1.3.1:exec \
(compile-ms-winutils) on project h</div><div>adoop-common: Command execution \
failed.</div><div>            at \
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor</div><div>.java:216)</div><div> \
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor</div><div>.java:153)</div><div> \
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor</div><div>.java:145)</div><div> \
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje</div><div>ct(LifecycleModuleBuilder.java:84)</div><div> \
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje</div><div>ct(LifecycleModuleBuilder.java:59)</div><div> \
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu</div><div>ild(LifecycleStarter.java:183)</div><div> \
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl</div><div>eStarter.java:161)</div><div> \
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)</div><div>          \
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)</div><div>            \
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)</div><div>            at \
org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)</div><div>            at \
org.apache.maven.cli.MavenCli.main(MavenCli.java:158)</div><div>            at \
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</div><div>            at \
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.</div><div>java:57)</div><div> \
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces</div><div>sorImpl.java:43)</div><div> \
at java.lang.reflect.Method.invoke(Method.java:606)</div><div>            at \
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun</div><div>cher.java:289)</div><div> \
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav</div><div>a:229)</div><div> \
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La</div><div>uncher.java:415)</div><div> \
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:</div><div>356)</div><div>Caused \
by: org.apache.maven.plugin.MojoExecutionException: Command execution \
fai</div><div>led.</div><div>            at \
org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:303)</div><div>            at \
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default</div><div>BuildPluginManager.java:106)</div><div> \
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor</div><div>.java:208)</div><div> \
... 19 more</div><div>Caused by: org.apache.commons.exec.ExecuteException: Process \
exited with an erro</div><div>r: 1 (Exit value: 1)</div><div>            at \
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut</div><div>or.java:402)</div><div> \
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:</div><div>164)</div><div> \
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:750)</div><div><br></div><div> \
at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:292)</div><div>            \
... 21 more</div><div>[ERROR]</div><div>[ERROR] Re-run Maven using the -X switch to \
enable full debug logging.</div><div>[ERROR]</div><div>[ERROR] For more information \
about the errors and possible solutions, please rea</div><div>d the following \
articles:</div><div>[ERROR] [Help 1] <a \
href="http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE" \
target="_blank">http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE</a></div><div>xception</div><div>[ERROR]</div><div>[ERROR] \
After correcting the problems, you can resume the build with the \
command</div><div><br></div><div>[ERROR]    mvn &lt;goals&gt; -rf \
:hadoop-common</div></div><span><font color="#888888"><div>-- <br><div><div \
dir="ltr"><div>Regards</div><div>Onder</div><div><br></div></div></div> \
</div></font></span></div> </blockquote></div><br></div>
</div></div></blockquote></div><span><font color="#888888"><br><br>-- <br>Sent from \
my iPhone<br> </font></span></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span \
class="HOEnZb"><font color="#888888">-- <br><div><div \
dir="ltr"><div>Regards</div><div>Onder</div><div><br></div></div></div> \
</font></span></div> </blockquote></div><br><br clear="all"><div><br></div>-- \
<br><div class="gmail_signature"><div \
dir="ltr"><div>Regards</div><div>Onder</div><div><br></div></div></div> </div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic