You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by Nirmal Kumar <ni...@impetus.co.in> on 2014/01/17 11:29:34 UTC

Building Hadoop 2.2.0 On Windows 7 64-bit

Hi All,

I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.

Can you let me know what else is needed for building Hadoop 2.2.0 On Windows platform?

I am getting the following error building *hadoop-common* project:

[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Hadoop Common 2.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hadoop-common ---
[INFO] Deleting D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
[INFO]
[INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ hadoop-common ---
[INFO] Executing tasks

main:
    [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
    [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
[INFO] Executed tasks
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @ hadoop-common ---
[INFO]
[INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @ hadoop-common ---
[WARNING] [protoc, --version] failed: java.io.IOException: Cannot run program "protoc": CreateProcess error=2, The system cannot find the file specified
[ERROR] stdout: []
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.153s
[INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>

Thanks,
-Nirmal

________________________________






NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.

RE: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Nirmal Kumar <ni...@impetus.co.in>.
Hi Silvi,

I'm trying installing protocol buffers using MinGW but getting the following errors with *make* command :

I am doing the following steps:
Open a MINGW32 shell from your start menu (installed with mingw) and change directories to the protobuf folder. Note that to build static libraries you can pass '--enable-static' and'--disable-shared' to the configure step in order to produce '.a' static libraries instead of '.dll' dynamic linked libraries.
     cd protobuf-2.4.1
    ./configure --prefix=`pwd`
    make
    make install

But make gives me error:

$ make
make  all-recursive
make[1]: Entering directory `/home/nirmal.kumar/protobuf-2.5.0'
Making all in .
make[2]: Entering directory `/home/nirmal.kumar/protobuf-2.5.0'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/nirmal.kumar/protobuf-2.5.0'
Making all in src
make[2]: Entering directory `/home/nirmal.kumar/protobuf-2.5.0/src'
g++ -DHAVE_CONFIG_H -I. -I..     -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -MT main.o -MD -MP -MF .deps/m
ain.Tpo -c -o main.o `test -f 'google/protobuf/compiler/main.cc' || echo './'`google/protobuf/compiler/main.cc
In file included from ./google/protobuf/compiler/command_line_interface.h:41,
                 from google/protobuf/compiler/main.cc:33:
./google/protobuf/stubs/common.h:48:20: stdint.h: No such file or directory
In file included from ./google/protobuf/compiler/command_line_interface.h:41,
                 from google/protobuf/compiler/main.cc:33:
./google/protobuf/stubs/common.h:175: error: `uint8_t' does not name a type
./google/protobuf/stubs/common.h:176: error: `uint16_t' does not name a type
./google/protobuf/stubs/common.h:177: error: `uint32_t' does not name a type
./google/protobuf/stubs/common.h:178: error: `uint64_t' does not name a type
./google/protobuf/stubs/common.h:201: error: `uint32' does not name a type
./google/protobuf/stubs/common.h:202: error: `uint64' does not name a type
./google/protobuf/stubs/common.h:1169: error: `uint32' does not name a type
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/nirmal.kumar/protobuf-2.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nirmal.kumar/protobuf-2.5.0'
make: *** [all] Error 2

Not sure if I downloaded the correct protocol buffers for Windows 7 64-bit.  I tried the below highlighted ones.

[cid:image001.png@01CF13AE.07164150]

Any idea?

Thanks,
-Nirmal

From: Silvina Caíno Lores [mailto:silvi.caino@gmail.com]
Sent: Friday, January 17, 2014 4:15 PM
To: user@hadoop.apache.org
Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit

'protoc --version' did not return a version

Are you sure that you have Protocol Buffers installed?


On 17 January 2014 11:29, Nirmal Kumar <ni...@impetus.co.in>> wrote:
Hi All,

I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.

Can you let me know what else is needed for building Hadoop 2.2.0 On Windows platform?

I am getting the following error building *hadoop-common* project:

[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Hadoop Common 2.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hadoop-common ---
[INFO] Deleting D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
[INFO]
[INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ hadoop-common ---
[INFO] Executing tasks

main:
    [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
    [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
[INFO] Executed tasks
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @ hadoop-common ---
[INFO]
[INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @ hadoop-common ---
[WARNING] [protoc, --version] failed: java.io.IOException: Cannot run program "protoc": CreateProcess error=2, The system cannot find the file specified
[ERROR] stdout: []
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.153s
[INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>

Thanks,
-Nirmal

________________________________






NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.


________________________________






NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Dan Sandler <da...@the-sandlers.com>.
Nirmal/Nikshe,

I got Hadoop to build on a Windows 7 64-bit host. I am using the version
2.5.0 of Protocol Buffers.

dsandler@dans-t61p7 ~
$ protoc --version
libprotoc 2.5.0


As you found, I tried to build protoc from the source, but I experienced
the same error, and gave up.  I also found it was not needed.  Instead, I
downloaded protoc-2.5.0-win32.zip<https://protobuf.googlecode.com/files/protoc-2.5.0-win32.zip>
and
unzipped protoc.exe from the zip file (as opposed to building protoc.exe
from the source), placed protoc.exe in a directory referenced in my $PATH,
and then restarted the Hadoop build.

Some other steps I took, you might have already done these but it is worth
mentioning:


   - Set 64-bit platform environment variable (export Platform=x64).  This
   should fix the compile-ms-native-dll error
   - Add .NET MSBuild.exe home directory to your path (export
   PATH=C:\Windows\Microsoft.NET\Framework64\v4.0.30319:$PATH)

It is worth mentioning I am using Cygwin 64-bit.  More information on the
step-by-step process can be found
here<http://www.datadansandler.com/2013/09/building-hadoop-on-windows.html>
.

Regards,

Dan


On Fri, Jan 17, 2014 at 9:18 AM, Jian Feng JF She <sh...@cn.ibm.com>wrote:

> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
> installed the protocbuf previously,and according to the guide, put
> protoc.exe and
>
> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>
> run "protoc --version" will get output libprotoc 2.5.0
>
> Now it seems everything ready, but when run mvn install -DskipTests -e
> will get an error message:
>
> can not execute: compile-ms-native-dll in
> ..\hadoop-common-project\hadoop-common\pom.xml
>
> do you have any suggestions?
>
> Thanks.
>
> Nikshe
>
>
> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
> version Are you sure that you have Protocol Buffers installed?
>
> From: Silvina Caíno Lores <si...@gmail.com>
> To: user@hadoop.apache.org,
> Date: 01/17/2014 06:43 PM
> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
> ------------------------------
>
>
>
> 'protoc --version' did not return a version
>
> Are you sure that you have Protocol Buffers installed?
>
>
>
> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
> wrote:
>
>    Hi All,
>
>
>
>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>
>
>
>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>    Windows platform?
>
>
>
>    I am getting the following error building **hadoop-common** project:
>
>
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Building Apache Hadoop Common 2.2.0
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO]
>
>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>    hadoop-common ---
>
>    [INFO] Deleting
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>
>    [INFO]
>
>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>    hadoop-common ---
>
>    [INFO] Executing tasks
>
>
>
>    main:
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>
>    [INFO] Executed tasks
>
>    [INFO]
>
>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>    hadoop-common ---
>
>    [INFO]
>
>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>    hadoop-common ---
>
>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
>    program "protoc": CreateProcess error=2, The system cannot find the file
>    specified
>
>    [ERROR] stdout: []
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] BUILD FAILURE
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Total time: 1.153s
>
>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>
>    [INFO] Final Memory: 7M/18M
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [ERROR] Failed to execute goal
>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>    'protoc --version' did not return a version -> [Help 1]
>
>    [ERROR]
>
>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>    the -e switch.
>
>    [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 read the following articles:
>
>    [ERROR] [Help 1]
>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>
>
>
>    Thanks,
>
>    -Nirmal
>
>    ------------------------------
>
>
>
>
>
>
>    NOTE: This message may contain information that is confidential,
>    proprietary, privileged or otherwise protected by law. The message is
>    intended solely for the named addressee. If received in error, please
>    destroy and notify the sender. Any use of this email is prohibited when
>    received in error. Impetus does not represent, warrant and/or guarantee,
>    that the integrity of this communication has been maintained nor that the
>    communication is free of errors, virus, interception or interference.
>
>
>
>

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Arpit Agarwal <aa...@hortonworks.com>.
Folks, please refer to the wiki page
https://wiki.apache.org/hadoop/Hadoop2OnWindows and also BUILDING.txt in
the source tree. We believe we captured all the prerequisites in
BUILDING.txt so let us know if anything is missing.



On Fri, Jan 17, 2014 at 8:16 AM, Steve Lewis <lo...@gmail.com> wrote:

> At lease for development work I find that replacing two classes in the
> Hadoop jar (say putting the following code ahead of the hadoop jars in a
> project fixes most windows issues - at least in my hands
>
>
> On Fri, Jan 17, 2014 at 6:41 AM, Silvina Caíno Lores <
> silvi.caino@gmail.com> wrote:
>
>> Hey again,
>>
>> I'm not a Windows user so I'm not very familiar with these issues.
>> However, I recall this link<http://www.srccodes.com/p/article/38/build-install-configure-run-apache-hadoop-2.2.0-microsoft-windows-os>as a useful source for installation problems I've had on my own, since it's
>> for Windows it might help you even further.
>>
>> The error
>>
>> stdint.h: No such file or directory
>>
>>  is causing your build to fail, it seems like you don't have the headers
>> installed or they aren't properly referenced. Sorry that I can't be of more
>> help, I'm not sure how MinGW handles these includes.
>>
>> Good luck :D
>>
>>
>>
>> On 17 January 2014 15:18, Jian Feng JF She <sh...@cn.ibm.com> wrote:
>>
>>> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
>>> installed the protocbuf previously,and according to the guide, put
>>> protoc.exe and
>>>
>>> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>>>
>>> run "protoc --version" will get output libprotoc 2.5.0
>>>
>>> Now it seems everything ready, but when run mvn install -DskipTests -e
>>> will get an error message:
>>>
>>> can not execute: compile-ms-native-dll in
>>> ..\hadoop-common-project\hadoop-common\pom.xml
>>>
>>> do you have any suggestions?
>>>
>>> Thanks.
>>>
>>> Nikshe
>>>
>>>
>>> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
>>> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
>>> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
>>> version Are you sure that you have Protocol Buffers installed?
>>>
>>> From: Silvina Caíno Lores <si...@gmail.com>
>>> To: user@hadoop.apache.org,
>>> Date: 01/17/2014 06:43 PM
>>>
>>> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
>>> ------------------------------
>>>
>>>
>>>
>>> 'protoc --version' did not return a version
>>>
>>> Are you sure that you have Protocol Buffers installed?
>>>
>>>
>>>
>>> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
>>> wrote:
>>>
>>>    Hi All,
>>>
>>>
>>>
>>>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>>>
>>>
>>>
>>>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>>>    Windows platform?
>>>
>>>
>>>
>>>    I am getting the following error building **hadoop-common** project:
>>>
>>>
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO] Building Apache Hadoop Common 2.2.0
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>>>    hadoop-common ---
>>>
>>>    [INFO] Deleting
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>>>    hadoop-common ---
>>>
>>>    [INFO] Executing tasks
>>>
>>>
>>>
>>>    main:
>>>
>>>        [mkdir] Created dir:
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>>>
>>>        [mkdir] Created dir:
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>>>
>>>    [INFO] Executed tasks
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>>>    hadoop-common ---
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>>>    hadoop-common ---
>>>
>>>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot
>>>    run program "protoc": CreateProcess error=2, The system cannot find the
>>>    file specified
>>>
>>>    [ERROR] stdout: []
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO] BUILD FAILURE
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO] Total time: 1.153s
>>>
>>>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>>>
>>>    [INFO] Final Memory: 7M/18M
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [ERROR] Failed to execute goal
>>>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>>>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>>>    'protoc --version' did not return a version -> [Help 1]
>>>
>>>    [ERROR]
>>>
>>>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>>>    the -e switch.
>>>
>>>    [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 read the following articles:
>>>
>>>    [ERROR] [Help 1]
>>>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>>>
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>>>
>>>
>>>
>>>    Thanks,
>>>
>>>    -Nirmal
>>>
>>>    ------------------------------
>>>
>>>
>>>
>>>
>>>
>>>
>>>    NOTE: This message may contain information that is confidential,
>>>    proprietary, privileged or otherwise protected by law. The message is
>>>    intended solely for the named addressee. If received in error, please
>>>    destroy and notify the sender. Any use of this email is prohibited when
>>>    received in error. Impetus does not represent, warrant and/or guarantee,
>>>    that the integrity of this communication has been maintained nor that the
>>>    communication is free of errors, virus, interception or interference.
>>>
>>>
>>>
>>>
>>
>
>
> --
> Steven M. Lewis PhD
> 4221 105th Ave NE
> Kirkland, WA 98033
> 206-384-1340 (cell)
> Skype lordjoe_com
>
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Arpit Agarwal <aa...@hortonworks.com>.
Folks, please refer to the wiki page
https://wiki.apache.org/hadoop/Hadoop2OnWindows and also BUILDING.txt in
the source tree. We believe we captured all the prerequisites in
BUILDING.txt so let us know if anything is missing.



On Fri, Jan 17, 2014 at 8:16 AM, Steve Lewis <lo...@gmail.com> wrote:

> At lease for development work I find that replacing two classes in the
> Hadoop jar (say putting the following code ahead of the hadoop jars in a
> project fixes most windows issues - at least in my hands
>
>
> On Fri, Jan 17, 2014 at 6:41 AM, Silvina Caíno Lores <
> silvi.caino@gmail.com> wrote:
>
>> Hey again,
>>
>> I'm not a Windows user so I'm not very familiar with these issues.
>> However, I recall this link<http://www.srccodes.com/p/article/38/build-install-configure-run-apache-hadoop-2.2.0-microsoft-windows-os>as a useful source for installation problems I've had on my own, since it's
>> for Windows it might help you even further.
>>
>> The error
>>
>> stdint.h: No such file or directory
>>
>>  is causing your build to fail, it seems like you don't have the headers
>> installed or they aren't properly referenced. Sorry that I can't be of more
>> help, I'm not sure how MinGW handles these includes.
>>
>> Good luck :D
>>
>>
>>
>> On 17 January 2014 15:18, Jian Feng JF She <sh...@cn.ibm.com> wrote:
>>
>>> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
>>> installed the protocbuf previously,and according to the guide, put
>>> protoc.exe and
>>>
>>> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>>>
>>> run "protoc --version" will get output libprotoc 2.5.0
>>>
>>> Now it seems everything ready, but when run mvn install -DskipTests -e
>>> will get an error message:
>>>
>>> can not execute: compile-ms-native-dll in
>>> ..\hadoop-common-project\hadoop-common\pom.xml
>>>
>>> do you have any suggestions?
>>>
>>> Thanks.
>>>
>>> Nikshe
>>>
>>>
>>> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
>>> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
>>> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
>>> version Are you sure that you have Protocol Buffers installed?
>>>
>>> From: Silvina Caíno Lores <si...@gmail.com>
>>> To: user@hadoop.apache.org,
>>> Date: 01/17/2014 06:43 PM
>>>
>>> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
>>> ------------------------------
>>>
>>>
>>>
>>> 'protoc --version' did not return a version
>>>
>>> Are you sure that you have Protocol Buffers installed?
>>>
>>>
>>>
>>> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
>>> wrote:
>>>
>>>    Hi All,
>>>
>>>
>>>
>>>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>>>
>>>
>>>
>>>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>>>    Windows platform?
>>>
>>>
>>>
>>>    I am getting the following error building **hadoop-common** project:
>>>
>>>
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO] Building Apache Hadoop Common 2.2.0
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>>>    hadoop-common ---
>>>
>>>    [INFO] Deleting
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>>>    hadoop-common ---
>>>
>>>    [INFO] Executing tasks
>>>
>>>
>>>
>>>    main:
>>>
>>>        [mkdir] Created dir:
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>>>
>>>        [mkdir] Created dir:
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>>>
>>>    [INFO] Executed tasks
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>>>    hadoop-common ---
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>>>    hadoop-common ---
>>>
>>>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot
>>>    run program "protoc": CreateProcess error=2, The system cannot find the
>>>    file specified
>>>
>>>    [ERROR] stdout: []
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO] BUILD FAILURE
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO] Total time: 1.153s
>>>
>>>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>>>
>>>    [INFO] Final Memory: 7M/18M
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [ERROR] Failed to execute goal
>>>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>>>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>>>    'protoc --version' did not return a version -> [Help 1]
>>>
>>>    [ERROR]
>>>
>>>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>>>    the -e switch.
>>>
>>>    [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 read the following articles:
>>>
>>>    [ERROR] [Help 1]
>>>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>>>
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>>>
>>>
>>>
>>>    Thanks,
>>>
>>>    -Nirmal
>>>
>>>    ------------------------------
>>>
>>>
>>>
>>>
>>>
>>>
>>>    NOTE: This message may contain information that is confidential,
>>>    proprietary, privileged or otherwise protected by law. The message is
>>>    intended solely for the named addressee. If received in error, please
>>>    destroy and notify the sender. Any use of this email is prohibited when
>>>    received in error. Impetus does not represent, warrant and/or guarantee,
>>>    that the integrity of this communication has been maintained nor that the
>>>    communication is free of errors, virus, interception or interference.
>>>
>>>
>>>
>>>
>>
>
>
> --
> Steven M. Lewis PhD
> 4221 105th Ave NE
> Kirkland, WA 98033
> 206-384-1340 (cell)
> Skype lordjoe_com
>
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Arpit Agarwal <aa...@hortonworks.com>.
Folks, please refer to the wiki page
https://wiki.apache.org/hadoop/Hadoop2OnWindows and also BUILDING.txt in
the source tree. We believe we captured all the prerequisites in
BUILDING.txt so let us know if anything is missing.



On Fri, Jan 17, 2014 at 8:16 AM, Steve Lewis <lo...@gmail.com> wrote:

> At lease for development work I find that replacing two classes in the
> Hadoop jar (say putting the following code ahead of the hadoop jars in a
> project fixes most windows issues - at least in my hands
>
>
> On Fri, Jan 17, 2014 at 6:41 AM, Silvina Caíno Lores <
> silvi.caino@gmail.com> wrote:
>
>> Hey again,
>>
>> I'm not a Windows user so I'm not very familiar with these issues.
>> However, I recall this link<http://www.srccodes.com/p/article/38/build-install-configure-run-apache-hadoop-2.2.0-microsoft-windows-os>as a useful source for installation problems I've had on my own, since it's
>> for Windows it might help you even further.
>>
>> The error
>>
>> stdint.h: No such file or directory
>>
>>  is causing your build to fail, it seems like you don't have the headers
>> installed or they aren't properly referenced. Sorry that I can't be of more
>> help, I'm not sure how MinGW handles these includes.
>>
>> Good luck :D
>>
>>
>>
>> On 17 January 2014 15:18, Jian Feng JF She <sh...@cn.ibm.com> wrote:
>>
>>> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
>>> installed the protocbuf previously,and according to the guide, put
>>> protoc.exe and
>>>
>>> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>>>
>>> run "protoc --version" will get output libprotoc 2.5.0
>>>
>>> Now it seems everything ready, but when run mvn install -DskipTests -e
>>> will get an error message:
>>>
>>> can not execute: compile-ms-native-dll in
>>> ..\hadoop-common-project\hadoop-common\pom.xml
>>>
>>> do you have any suggestions?
>>>
>>> Thanks.
>>>
>>> Nikshe
>>>
>>>
>>> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
>>> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
>>> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
>>> version Are you sure that you have Protocol Buffers installed?
>>>
>>> From: Silvina Caíno Lores <si...@gmail.com>
>>> To: user@hadoop.apache.org,
>>> Date: 01/17/2014 06:43 PM
>>>
>>> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
>>> ------------------------------
>>>
>>>
>>>
>>> 'protoc --version' did not return a version
>>>
>>> Are you sure that you have Protocol Buffers installed?
>>>
>>>
>>>
>>> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
>>> wrote:
>>>
>>>    Hi All,
>>>
>>>
>>>
>>>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>>>
>>>
>>>
>>>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>>>    Windows platform?
>>>
>>>
>>>
>>>    I am getting the following error building **hadoop-common** project:
>>>
>>>
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO] Building Apache Hadoop Common 2.2.0
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>>>    hadoop-common ---
>>>
>>>    [INFO] Deleting
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>>>    hadoop-common ---
>>>
>>>    [INFO] Executing tasks
>>>
>>>
>>>
>>>    main:
>>>
>>>        [mkdir] Created dir:
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>>>
>>>        [mkdir] Created dir:
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>>>
>>>    [INFO] Executed tasks
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>>>    hadoop-common ---
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>>>    hadoop-common ---
>>>
>>>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot
>>>    run program "protoc": CreateProcess error=2, The system cannot find the
>>>    file specified
>>>
>>>    [ERROR] stdout: []
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO] BUILD FAILURE
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO] Total time: 1.153s
>>>
>>>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>>>
>>>    [INFO] Final Memory: 7M/18M
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [ERROR] Failed to execute goal
>>>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>>>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>>>    'protoc --version' did not return a version -> [Help 1]
>>>
>>>    [ERROR]
>>>
>>>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>>>    the -e switch.
>>>
>>>    [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 read the following articles:
>>>
>>>    [ERROR] [Help 1]
>>>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>>>
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>>>
>>>
>>>
>>>    Thanks,
>>>
>>>    -Nirmal
>>>
>>>    ------------------------------
>>>
>>>
>>>
>>>
>>>
>>>
>>>    NOTE: This message may contain information that is confidential,
>>>    proprietary, privileged or otherwise protected by law. The message is
>>>    intended solely for the named addressee. If received in error, please
>>>    destroy and notify the sender. Any use of this email is prohibited when
>>>    received in error. Impetus does not represent, warrant and/or guarantee,
>>>    that the integrity of this communication has been maintained nor that the
>>>    communication is free of errors, virus, interception or interference.
>>>
>>>
>>>
>>>
>>
>
>
> --
> Steven M. Lewis PhD
> 4221 105th Ave NE
> Kirkland, WA 98033
> 206-384-1340 (cell)
> Skype lordjoe_com
>
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Arpit Agarwal <aa...@hortonworks.com>.
Folks, please refer to the wiki page
https://wiki.apache.org/hadoop/Hadoop2OnWindows and also BUILDING.txt in
the source tree. We believe we captured all the prerequisites in
BUILDING.txt so let us know if anything is missing.



On Fri, Jan 17, 2014 at 8:16 AM, Steve Lewis <lo...@gmail.com> wrote:

> At lease for development work I find that replacing two classes in the
> Hadoop jar (say putting the following code ahead of the hadoop jars in a
> project fixes most windows issues - at least in my hands
>
>
> On Fri, Jan 17, 2014 at 6:41 AM, Silvina Caíno Lores <
> silvi.caino@gmail.com> wrote:
>
>> Hey again,
>>
>> I'm not a Windows user so I'm not very familiar with these issues.
>> However, I recall this link<http://www.srccodes.com/p/article/38/build-install-configure-run-apache-hadoop-2.2.0-microsoft-windows-os>as a useful source for installation problems I've had on my own, since it's
>> for Windows it might help you even further.
>>
>> The error
>>
>> stdint.h: No such file or directory
>>
>>  is causing your build to fail, it seems like you don't have the headers
>> installed or they aren't properly referenced. Sorry that I can't be of more
>> help, I'm not sure how MinGW handles these includes.
>>
>> Good luck :D
>>
>>
>>
>> On 17 January 2014 15:18, Jian Feng JF She <sh...@cn.ibm.com> wrote:
>>
>>> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
>>> installed the protocbuf previously,and according to the guide, put
>>> protoc.exe and
>>>
>>> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>>>
>>> run "protoc --version" will get output libprotoc 2.5.0
>>>
>>> Now it seems everything ready, but when run mvn install -DskipTests -e
>>> will get an error message:
>>>
>>> can not execute: compile-ms-native-dll in
>>> ..\hadoop-common-project\hadoop-common\pom.xml
>>>
>>> do you have any suggestions?
>>>
>>> Thanks.
>>>
>>> Nikshe
>>>
>>>
>>> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
>>> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
>>> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
>>> version Are you sure that you have Protocol Buffers installed?
>>>
>>> From: Silvina Caíno Lores <si...@gmail.com>
>>> To: user@hadoop.apache.org,
>>> Date: 01/17/2014 06:43 PM
>>>
>>> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
>>> ------------------------------
>>>
>>>
>>>
>>> 'protoc --version' did not return a version
>>>
>>> Are you sure that you have Protocol Buffers installed?
>>>
>>>
>>>
>>> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
>>> wrote:
>>>
>>>    Hi All,
>>>
>>>
>>>
>>>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>>>
>>>
>>>
>>>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>>>    Windows platform?
>>>
>>>
>>>
>>>    I am getting the following error building **hadoop-common** project:
>>>
>>>
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO] Building Apache Hadoop Common 2.2.0
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>>>    hadoop-common ---
>>>
>>>    [INFO] Deleting
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>>>    hadoop-common ---
>>>
>>>    [INFO] Executing tasks
>>>
>>>
>>>
>>>    main:
>>>
>>>        [mkdir] Created dir:
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>>>
>>>        [mkdir] Created dir:
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>>>
>>>    [INFO] Executed tasks
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>>>    hadoop-common ---
>>>
>>>    [INFO]
>>>
>>>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>>>    hadoop-common ---
>>>
>>>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot
>>>    run program "protoc": CreateProcess error=2, The system cannot find the
>>>    file specified
>>>
>>>    [ERROR] stdout: []
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO] BUILD FAILURE
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [INFO] Total time: 1.153s
>>>
>>>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>>>
>>>    [INFO] Final Memory: 7M/18M
>>>
>>>    [INFO]
>>>    ------------------------------------------------------------------------
>>>
>>>    [ERROR] Failed to execute goal
>>>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>>>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>>>    'protoc --version' did not return a version -> [Help 1]
>>>
>>>    [ERROR]
>>>
>>>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>>>    the -e switch.
>>>
>>>    [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 read the following articles:
>>>
>>>    [ERROR] [Help 1]
>>>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>>>
>>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>>>
>>>
>>>
>>>    Thanks,
>>>
>>>    -Nirmal
>>>
>>>    ------------------------------
>>>
>>>
>>>
>>>
>>>
>>>
>>>    NOTE: This message may contain information that is confidential,
>>>    proprietary, privileged or otherwise protected by law. The message is
>>>    intended solely for the named addressee. If received in error, please
>>>    destroy and notify the sender. Any use of this email is prohibited when
>>>    received in error. Impetus does not represent, warrant and/or guarantee,
>>>    that the integrity of this communication has been maintained nor that the
>>>    communication is free of errors, virus, interception or interference.
>>>
>>>
>>>
>>>
>>
>
>
> --
> Steven M. Lewis PhD
> 4221 105th Ave NE
> Kirkland, WA 98033
> 206-384-1340 (cell)
> Skype lordjoe_com
>
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Steve Lewis <lo...@gmail.com>.
At lease for development work I find that replacing two classes in the
Hadoop jar (say putting the following code ahead of the hadoop jars in a
project fixes most windows issues - at least in my hands


On Fri, Jan 17, 2014 at 6:41 AM, Silvina Caíno Lores
<si...@gmail.com>wrote:

> Hey again,
>
> I'm not a Windows user so I'm not very familiar with these issues.
> However, I recall this link<http://www.srccodes.com/p/article/38/build-install-configure-run-apache-hadoop-2.2.0-microsoft-windows-os>as a useful source for installation problems I've had on my own, since it's
> for Windows it might help you even further.
>
> The error
>
> stdint.h: No such file or directory
>
> is causing your build to fail, it seems like you don't have the headers
> installed or they aren't properly referenced. Sorry that I can't be of more
> help, I'm not sure how MinGW handles these includes.
>
> Good luck :D
>
>
>
> On 17 January 2014 15:18, Jian Feng JF She <sh...@cn.ibm.com> wrote:
>
>> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
>> installed the protocbuf previously,and according to the guide, put
>> protoc.exe and
>>
>> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>>
>> run "protoc --version" will get output libprotoc 2.5.0
>>
>> Now it seems everything ready, but when run mvn install -DskipTests -e
>> will get an error message:
>>
>> can not execute: compile-ms-native-dll in
>> ..\hadoop-common-project\hadoop-common\pom.xml
>>
>> do you have any suggestions?
>>
>> Thanks.
>>
>> Nikshe
>>
>>
>> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
>> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
>> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
>> version Are you sure that you have Protocol Buffers installed?
>>
>> From: Silvina Caíno Lores <si...@gmail.com>
>> To: user@hadoop.apache.org,
>> Date: 01/17/2014 06:43 PM
>>
>> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
>> ------------------------------
>>
>>
>>
>> 'protoc --version' did not return a version
>>
>> Are you sure that you have Protocol Buffers installed?
>>
>>
>>
>> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
>> wrote:
>>
>>    Hi All,
>>
>>
>>
>>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>>
>>
>>
>>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>>    Windows platform?
>>
>>
>>
>>    I am getting the following error building **hadoop-common** project:
>>
>>
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO] Building Apache Hadoop Common 2.2.0
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO]
>>
>>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>>    hadoop-common ---
>>
>>    [INFO] Deleting
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>>
>>    [INFO]
>>
>>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>>    hadoop-common ---
>>
>>    [INFO] Executing tasks
>>
>>
>>
>>    main:
>>
>>        [mkdir] Created dir:
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>>
>>        [mkdir] Created dir:
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>>
>>    [INFO] Executed tasks
>>
>>    [INFO]
>>
>>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>>    hadoop-common ---
>>
>>    [INFO]
>>
>>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>>    hadoop-common ---
>>
>>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
>>    program "protoc": CreateProcess error=2, The system cannot find the file
>>    specified
>>
>>    [ERROR] stdout: []
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO] BUILD FAILURE
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO] Total time: 1.153s
>>
>>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>>
>>    [INFO] Final Memory: 7M/18M
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [ERROR] Failed to execute goal
>>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>>    'protoc --version' did not return a version -> [Help 1]
>>
>>    [ERROR]
>>
>>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>>    the -e switch.
>>
>>    [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 read the following articles:
>>
>>    [ERROR] [Help 1]
>>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>>
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>>
>>
>>
>>    Thanks,
>>
>>    -Nirmal
>>
>>    ------------------------------
>>
>>
>>
>>
>>
>>
>>    NOTE: This message may contain information that is confidential,
>>    proprietary, privileged or otherwise protected by law. The message is
>>    intended solely for the named addressee. If received in error, please
>>    destroy and notify the sender. Any use of this email is prohibited when
>>    received in error. Impetus does not represent, warrant and/or guarantee,
>>    that the integrity of this communication has been maintained nor that the
>>    communication is free of errors, virus, interception or interference.
>>
>>
>>
>>
>


-- 
Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
206-384-1340 (cell)
Skype lordjoe_com

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Steve Lewis <lo...@gmail.com>.
At lease for development work I find that replacing two classes in the
Hadoop jar (say putting the following code ahead of the hadoop jars in a
project fixes most windows issues - at least in my hands


On Fri, Jan 17, 2014 at 6:41 AM, Silvina Caíno Lores
<si...@gmail.com>wrote:

> Hey again,
>
> I'm not a Windows user so I'm not very familiar with these issues.
> However, I recall this link<http://www.srccodes.com/p/article/38/build-install-configure-run-apache-hadoop-2.2.0-microsoft-windows-os>as a useful source for installation problems I've had on my own, since it's
> for Windows it might help you even further.
>
> The error
>
> stdint.h: No such file or directory
>
> is causing your build to fail, it seems like you don't have the headers
> installed or they aren't properly referenced. Sorry that I can't be of more
> help, I'm not sure how MinGW handles these includes.
>
> Good luck :D
>
>
>
> On 17 January 2014 15:18, Jian Feng JF She <sh...@cn.ibm.com> wrote:
>
>> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
>> installed the protocbuf previously,and according to the guide, put
>> protoc.exe and
>>
>> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>>
>> run "protoc --version" will get output libprotoc 2.5.0
>>
>> Now it seems everything ready, but when run mvn install -DskipTests -e
>> will get an error message:
>>
>> can not execute: compile-ms-native-dll in
>> ..\hadoop-common-project\hadoop-common\pom.xml
>>
>> do you have any suggestions?
>>
>> Thanks.
>>
>> Nikshe
>>
>>
>> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
>> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
>> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
>> version Are you sure that you have Protocol Buffers installed?
>>
>> From: Silvina Caíno Lores <si...@gmail.com>
>> To: user@hadoop.apache.org,
>> Date: 01/17/2014 06:43 PM
>>
>> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
>> ------------------------------
>>
>>
>>
>> 'protoc --version' did not return a version
>>
>> Are you sure that you have Protocol Buffers installed?
>>
>>
>>
>> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
>> wrote:
>>
>>    Hi All,
>>
>>
>>
>>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>>
>>
>>
>>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>>    Windows platform?
>>
>>
>>
>>    I am getting the following error building **hadoop-common** project:
>>
>>
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO] Building Apache Hadoop Common 2.2.0
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO]
>>
>>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>>    hadoop-common ---
>>
>>    [INFO] Deleting
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>>
>>    [INFO]
>>
>>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>>    hadoop-common ---
>>
>>    [INFO] Executing tasks
>>
>>
>>
>>    main:
>>
>>        [mkdir] Created dir:
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>>
>>        [mkdir] Created dir:
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>>
>>    [INFO] Executed tasks
>>
>>    [INFO]
>>
>>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>>    hadoop-common ---
>>
>>    [INFO]
>>
>>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>>    hadoop-common ---
>>
>>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
>>    program "protoc": CreateProcess error=2, The system cannot find the file
>>    specified
>>
>>    [ERROR] stdout: []
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO] BUILD FAILURE
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO] Total time: 1.153s
>>
>>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>>
>>    [INFO] Final Memory: 7M/18M
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [ERROR] Failed to execute goal
>>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>>    'protoc --version' did not return a version -> [Help 1]
>>
>>    [ERROR]
>>
>>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>>    the -e switch.
>>
>>    [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 read the following articles:
>>
>>    [ERROR] [Help 1]
>>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>>
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>>
>>
>>
>>    Thanks,
>>
>>    -Nirmal
>>
>>    ------------------------------
>>
>>
>>
>>
>>
>>
>>    NOTE: This message may contain information that is confidential,
>>    proprietary, privileged or otherwise protected by law. The message is
>>    intended solely for the named addressee. If received in error, please
>>    destroy and notify the sender. Any use of this email is prohibited when
>>    received in error. Impetus does not represent, warrant and/or guarantee,
>>    that the integrity of this communication has been maintained nor that the
>>    communication is free of errors, virus, interception or interference.
>>
>>
>>
>>
>


-- 
Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
206-384-1340 (cell)
Skype lordjoe_com

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Steve Lewis <lo...@gmail.com>.
At lease for development work I find that replacing two classes in the
Hadoop jar (say putting the following code ahead of the hadoop jars in a
project fixes most windows issues - at least in my hands


On Fri, Jan 17, 2014 at 6:41 AM, Silvina Caíno Lores
<si...@gmail.com>wrote:

> Hey again,
>
> I'm not a Windows user so I'm not very familiar with these issues.
> However, I recall this link<http://www.srccodes.com/p/article/38/build-install-configure-run-apache-hadoop-2.2.0-microsoft-windows-os>as a useful source for installation problems I've had on my own, since it's
> for Windows it might help you even further.
>
> The error
>
> stdint.h: No such file or directory
>
> is causing your build to fail, it seems like you don't have the headers
> installed or they aren't properly referenced. Sorry that I can't be of more
> help, I'm not sure how MinGW handles these includes.
>
> Good luck :D
>
>
>
> On 17 January 2014 15:18, Jian Feng JF She <sh...@cn.ibm.com> wrote:
>
>> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
>> installed the protocbuf previously,and according to the guide, put
>> protoc.exe and
>>
>> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>>
>> run "protoc --version" will get output libprotoc 2.5.0
>>
>> Now it seems everything ready, but when run mvn install -DskipTests -e
>> will get an error message:
>>
>> can not execute: compile-ms-native-dll in
>> ..\hadoop-common-project\hadoop-common\pom.xml
>>
>> do you have any suggestions?
>>
>> Thanks.
>>
>> Nikshe
>>
>>
>> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
>> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
>> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
>> version Are you sure that you have Protocol Buffers installed?
>>
>> From: Silvina Caíno Lores <si...@gmail.com>
>> To: user@hadoop.apache.org,
>> Date: 01/17/2014 06:43 PM
>>
>> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
>> ------------------------------
>>
>>
>>
>> 'protoc --version' did not return a version
>>
>> Are you sure that you have Protocol Buffers installed?
>>
>>
>>
>> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
>> wrote:
>>
>>    Hi All,
>>
>>
>>
>>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>>
>>
>>
>>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>>    Windows platform?
>>
>>
>>
>>    I am getting the following error building **hadoop-common** project:
>>
>>
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO] Building Apache Hadoop Common 2.2.0
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO]
>>
>>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>>    hadoop-common ---
>>
>>    [INFO] Deleting
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>>
>>    [INFO]
>>
>>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>>    hadoop-common ---
>>
>>    [INFO] Executing tasks
>>
>>
>>
>>    main:
>>
>>        [mkdir] Created dir:
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>>
>>        [mkdir] Created dir:
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>>
>>    [INFO] Executed tasks
>>
>>    [INFO]
>>
>>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>>    hadoop-common ---
>>
>>    [INFO]
>>
>>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>>    hadoop-common ---
>>
>>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
>>    program "protoc": CreateProcess error=2, The system cannot find the file
>>    specified
>>
>>    [ERROR] stdout: []
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO] BUILD FAILURE
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO] Total time: 1.153s
>>
>>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>>
>>    [INFO] Final Memory: 7M/18M
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [ERROR] Failed to execute goal
>>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>>    'protoc --version' did not return a version -> [Help 1]
>>
>>    [ERROR]
>>
>>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>>    the -e switch.
>>
>>    [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 read the following articles:
>>
>>    [ERROR] [Help 1]
>>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>>
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>>
>>
>>
>>    Thanks,
>>
>>    -Nirmal
>>
>>    ------------------------------
>>
>>
>>
>>
>>
>>
>>    NOTE: This message may contain information that is confidential,
>>    proprietary, privileged or otherwise protected by law. The message is
>>    intended solely for the named addressee. If received in error, please
>>    destroy and notify the sender. Any use of this email is prohibited when
>>    received in error. Impetus does not represent, warrant and/or guarantee,
>>    that the integrity of this communication has been maintained nor that the
>>    communication is free of errors, virus, interception or interference.
>>
>>
>>
>>
>


-- 
Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
206-384-1340 (cell)
Skype lordjoe_com

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Steve Lewis <lo...@gmail.com>.
At lease for development work I find that replacing two classes in the
Hadoop jar (say putting the following code ahead of the hadoop jars in a
project fixes most windows issues - at least in my hands


On Fri, Jan 17, 2014 at 6:41 AM, Silvina Caíno Lores
<si...@gmail.com>wrote:

> Hey again,
>
> I'm not a Windows user so I'm not very familiar with these issues.
> However, I recall this link<http://www.srccodes.com/p/article/38/build-install-configure-run-apache-hadoop-2.2.0-microsoft-windows-os>as a useful source for installation problems I've had on my own, since it's
> for Windows it might help you even further.
>
> The error
>
> stdint.h: No such file or directory
>
> is causing your build to fail, it seems like you don't have the headers
> installed or they aren't properly referenced. Sorry that I can't be of more
> help, I'm not sure how MinGW handles these includes.
>
> Good luck :D
>
>
>
> On 17 January 2014 15:18, Jian Feng JF She <sh...@cn.ibm.com> wrote:
>
>> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
>> installed the protocbuf previously,and according to the guide, put
>> protoc.exe and
>>
>> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>>
>> run "protoc --version" will get output libprotoc 2.5.0
>>
>> Now it seems everything ready, but when run mvn install -DskipTests -e
>> will get an error message:
>>
>> can not execute: compile-ms-native-dll in
>> ..\hadoop-common-project\hadoop-common\pom.xml
>>
>> do you have any suggestions?
>>
>> Thanks.
>>
>> Nikshe
>>
>>
>> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
>> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
>> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
>> version Are you sure that you have Protocol Buffers installed?
>>
>> From: Silvina Caíno Lores <si...@gmail.com>
>> To: user@hadoop.apache.org,
>> Date: 01/17/2014 06:43 PM
>>
>> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
>> ------------------------------
>>
>>
>>
>> 'protoc --version' did not return a version
>>
>> Are you sure that you have Protocol Buffers installed?
>>
>>
>>
>> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
>> wrote:
>>
>>    Hi All,
>>
>>
>>
>>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>>
>>
>>
>>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>>    Windows platform?
>>
>>
>>
>>    I am getting the following error building **hadoop-common** project:
>>
>>
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO] Building Apache Hadoop Common 2.2.0
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO]
>>
>>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>>    hadoop-common ---
>>
>>    [INFO] Deleting
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>>
>>    [INFO]
>>
>>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>>    hadoop-common ---
>>
>>    [INFO] Executing tasks
>>
>>
>>
>>    main:
>>
>>        [mkdir] Created dir:
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>>
>>        [mkdir] Created dir:
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>>
>>    [INFO] Executed tasks
>>
>>    [INFO]
>>
>>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>>    hadoop-common ---
>>
>>    [INFO]
>>
>>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>>    hadoop-common ---
>>
>>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
>>    program "protoc": CreateProcess error=2, The system cannot find the file
>>    specified
>>
>>    [ERROR] stdout: []
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO] BUILD FAILURE
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [INFO] Total time: 1.153s
>>
>>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>>
>>    [INFO] Final Memory: 7M/18M
>>
>>    [INFO]
>>    ------------------------------------------------------------------------
>>
>>    [ERROR] Failed to execute goal
>>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>>    'protoc --version' did not return a version -> [Help 1]
>>
>>    [ERROR]
>>
>>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>>    the -e switch.
>>
>>    [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 read the following articles:
>>
>>    [ERROR] [Help 1]
>>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>>
>>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>>
>>
>>
>>    Thanks,
>>
>>    -Nirmal
>>
>>    ------------------------------
>>
>>
>>
>>
>>
>>
>>    NOTE: This message may contain information that is confidential,
>>    proprietary, privileged or otherwise protected by law. The message is
>>    intended solely for the named addressee. If received in error, please
>>    destroy and notify the sender. Any use of this email is prohibited when
>>    received in error. Impetus does not represent, warrant and/or guarantee,
>>    that the integrity of this communication has been maintained nor that the
>>    communication is free of errors, virus, interception or interference.
>>
>>
>>
>>
>


-- 
Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
206-384-1340 (cell)
Skype lordjoe_com

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Silvina Caíno Lores <si...@gmail.com>.
Hey again,

I'm not a Windows user so I'm not very familiar with these issues. However,
I recall this link<http://www.srccodes.com/p/article/38/build-install-configure-run-apache-hadoop-2.2.0-microsoft-windows-os>as
a useful source for installation problems I've had on my own, since
it's
for Windows it might help you even further.

The error

stdint.h: No such file or directory

is causing your build to fail, it seems like you don't have the headers
installed or they aren't properly referenced. Sorry that I can't be of more
help, I'm not sure how MinGW handles these includes.

Good luck :D



On 17 January 2014 15:18, Jian Feng JF She <sh...@cn.ibm.com> wrote:

> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
> installed the protocbuf previously,and according to the guide, put
> protoc.exe and
>
> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>
> run "protoc --version" will get output libprotoc 2.5.0
>
> Now it seems everything ready, but when run mvn install -DskipTests -e
> will get an error message:
>
> can not execute: compile-ms-native-dll in
> ..\hadoop-common-project\hadoop-common\pom.xml
>
> do you have any suggestions?
>
> Thanks.
>
> Nikshe
>
>
> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
> version Are you sure that you have Protocol Buffers installed?
>
> From: Silvina Caíno Lores <si...@gmail.com>
> To: user@hadoop.apache.org,
> Date: 01/17/2014 06:43 PM
>
> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
> ------------------------------
>
>
>
> 'protoc --version' did not return a version
>
> Are you sure that you have Protocol Buffers installed?
>
>
>
> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
> wrote:
>
>    Hi All,
>
>
>
>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>
>
>
>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>    Windows platform?
>
>
>
>    I am getting the following error building **hadoop-common** project:
>
>
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Building Apache Hadoop Common 2.2.0
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO]
>
>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>    hadoop-common ---
>
>    [INFO] Deleting
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>
>    [INFO]
>
>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>    hadoop-common ---
>
>    [INFO] Executing tasks
>
>
>
>    main:
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>
>    [INFO] Executed tasks
>
>    [INFO]
>
>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>    hadoop-common ---
>
>    [INFO]
>
>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>    hadoop-common ---
>
>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
>    program "protoc": CreateProcess error=2, The system cannot find the file
>    specified
>
>    [ERROR] stdout: []
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] BUILD FAILURE
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Total time: 1.153s
>
>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>
>    [INFO] Final Memory: 7M/18M
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [ERROR] Failed to execute goal
>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>    'protoc --version' did not return a version -> [Help 1]
>
>    [ERROR]
>
>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>    the -e switch.
>
>    [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 read the following articles:
>
>    [ERROR] [Help 1]
>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>
>
>
>    Thanks,
>
>    -Nirmal
>
>    ------------------------------
>
>
>
>
>
>
>    NOTE: This message may contain information that is confidential,
>    proprietary, privileged or otherwise protected by law. The message is
>    intended solely for the named addressee. If received in error, please
>    destroy and notify the sender. Any use of this email is prohibited when
>    received in error. Impetus does not represent, warrant and/or guarantee,
>    that the integrity of this communication has been maintained nor that the
>    communication is free of errors, virus, interception or interference.
>
>
>
>

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Silvina Caíno Lores <si...@gmail.com>.
Hey again,

I'm not a Windows user so I'm not very familiar with these issues. However,
I recall this link<http://www.srccodes.com/p/article/38/build-install-configure-run-apache-hadoop-2.2.0-microsoft-windows-os>as
a useful source for installation problems I've had on my own, since
it's
for Windows it might help you even further.

The error

stdint.h: No such file or directory

is causing your build to fail, it seems like you don't have the headers
installed or they aren't properly referenced. Sorry that I can't be of more
help, I'm not sure how MinGW handles these includes.

Good luck :D



On 17 January 2014 15:18, Jian Feng JF She <sh...@cn.ibm.com> wrote:

> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
> installed the protocbuf previously,and according to the guide, put
> protoc.exe and
>
> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>
> run "protoc --version" will get output libprotoc 2.5.0
>
> Now it seems everything ready, but when run mvn install -DskipTests -e
> will get an error message:
>
> can not execute: compile-ms-native-dll in
> ..\hadoop-common-project\hadoop-common\pom.xml
>
> do you have any suggestions?
>
> Thanks.
>
> Nikshe
>
>
> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
> version Are you sure that you have Protocol Buffers installed?
>
> From: Silvina Caíno Lores <si...@gmail.com>
> To: user@hadoop.apache.org,
> Date: 01/17/2014 06:43 PM
>
> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
> ------------------------------
>
>
>
> 'protoc --version' did not return a version
>
> Are you sure that you have Protocol Buffers installed?
>
>
>
> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
> wrote:
>
>    Hi All,
>
>
>
>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>
>
>
>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>    Windows platform?
>
>
>
>    I am getting the following error building **hadoop-common** project:
>
>
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Building Apache Hadoop Common 2.2.0
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO]
>
>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>    hadoop-common ---
>
>    [INFO] Deleting
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>
>    [INFO]
>
>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>    hadoop-common ---
>
>    [INFO] Executing tasks
>
>
>
>    main:
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>
>    [INFO] Executed tasks
>
>    [INFO]
>
>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>    hadoop-common ---
>
>    [INFO]
>
>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>    hadoop-common ---
>
>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
>    program "protoc": CreateProcess error=2, The system cannot find the file
>    specified
>
>    [ERROR] stdout: []
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] BUILD FAILURE
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Total time: 1.153s
>
>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>
>    [INFO] Final Memory: 7M/18M
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [ERROR] Failed to execute goal
>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>    'protoc --version' did not return a version -> [Help 1]
>
>    [ERROR]
>
>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>    the -e switch.
>
>    [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 read the following articles:
>
>    [ERROR] [Help 1]
>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>
>
>
>    Thanks,
>
>    -Nirmal
>
>    ------------------------------
>
>
>
>
>
>
>    NOTE: This message may contain information that is confidential,
>    proprietary, privileged or otherwise protected by law. The message is
>    intended solely for the named addressee. If received in error, please
>    destroy and notify the sender. Any use of this email is prohibited when
>    received in error. Impetus does not represent, warrant and/or guarantee,
>    that the integrity of this communication has been maintained nor that the
>    communication is free of errors, virus, interception or interference.
>
>
>
>

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Silvina Caíno Lores <si...@gmail.com>.
Hey again,

I'm not a Windows user so I'm not very familiar with these issues. However,
I recall this link<http://www.srccodes.com/p/article/38/build-install-configure-run-apache-hadoop-2.2.0-microsoft-windows-os>as
a useful source for installation problems I've had on my own, since
it's
for Windows it might help you even further.

The error

stdint.h: No such file or directory

is causing your build to fail, it seems like you don't have the headers
installed or they aren't properly referenced. Sorry that I can't be of more
help, I'm not sure how MinGW handles these includes.

Good luck :D



On 17 January 2014 15:18, Jian Feng JF She <sh...@cn.ibm.com> wrote:

> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
> installed the protocbuf previously,and according to the guide, put
> protoc.exe and
>
> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>
> run "protoc --version" will get output libprotoc 2.5.0
>
> Now it seems everything ready, but when run mvn install -DskipTests -e
> will get an error message:
>
> can not execute: compile-ms-native-dll in
> ..\hadoop-common-project\hadoop-common\pom.xml
>
> do you have any suggestions?
>
> Thanks.
>
> Nikshe
>
>
> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
> version Are you sure that you have Protocol Buffers installed?
>
> From: Silvina Caíno Lores <si...@gmail.com>
> To: user@hadoop.apache.org,
> Date: 01/17/2014 06:43 PM
>
> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
> ------------------------------
>
>
>
> 'protoc --version' did not return a version
>
> Are you sure that you have Protocol Buffers installed?
>
>
>
> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
> wrote:
>
>    Hi All,
>
>
>
>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>
>
>
>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>    Windows platform?
>
>
>
>    I am getting the following error building **hadoop-common** project:
>
>
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Building Apache Hadoop Common 2.2.0
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO]
>
>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>    hadoop-common ---
>
>    [INFO] Deleting
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>
>    [INFO]
>
>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>    hadoop-common ---
>
>    [INFO] Executing tasks
>
>
>
>    main:
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>
>    [INFO] Executed tasks
>
>    [INFO]
>
>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>    hadoop-common ---
>
>    [INFO]
>
>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>    hadoop-common ---
>
>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
>    program "protoc": CreateProcess error=2, The system cannot find the file
>    specified
>
>    [ERROR] stdout: []
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] BUILD FAILURE
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Total time: 1.153s
>
>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>
>    [INFO] Final Memory: 7M/18M
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [ERROR] Failed to execute goal
>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>    'protoc --version' did not return a version -> [Help 1]
>
>    [ERROR]
>
>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>    the -e switch.
>
>    [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 read the following articles:
>
>    [ERROR] [Help 1]
>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>
>
>
>    Thanks,
>
>    -Nirmal
>
>    ------------------------------
>
>
>
>
>
>
>    NOTE: This message may contain information that is confidential,
>    proprietary, privileged or otherwise protected by law. The message is
>    intended solely for the named addressee. If received in error, please
>    destroy and notify the sender. Any use of this email is prohibited when
>    received in error. Impetus does not represent, warrant and/or guarantee,
>    that the integrity of this communication has been maintained nor that the
>    communication is free of errors, virus, interception or interference.
>
>
>
>

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Dan Sandler <da...@the-sandlers.com>.
Nirmal/Nikshe,

I got Hadoop to build on a Windows 7 64-bit host. I am using the version
2.5.0 of Protocol Buffers.

dsandler@dans-t61p7 ~
$ protoc --version
libprotoc 2.5.0


As you found, I tried to build protoc from the source, but I experienced
the same error, and gave up.  I also found it was not needed.  Instead, I
downloaded protoc-2.5.0-win32.zip<https://protobuf.googlecode.com/files/protoc-2.5.0-win32.zip>
and
unzipped protoc.exe from the zip file (as opposed to building protoc.exe
from the source), placed protoc.exe in a directory referenced in my $PATH,
and then restarted the Hadoop build.

Some other steps I took, you might have already done these but it is worth
mentioning:


   - Set 64-bit platform environment variable (export Platform=x64).  This
   should fix the compile-ms-native-dll error
   - Add .NET MSBuild.exe home directory to your path (export
   PATH=C:\Windows\Microsoft.NET\Framework64\v4.0.30319:$PATH)

It is worth mentioning I am using Cygwin 64-bit.  More information on the
step-by-step process can be found
here<http://www.datadansandler.com/2013/09/building-hadoop-on-windows.html>
.

Regards,

Dan


On Fri, Jan 17, 2014 at 9:18 AM, Jian Feng JF She <sh...@cn.ibm.com>wrote:

> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
> installed the protocbuf previously,and according to the guide, put
> protoc.exe and
>
> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>
> run "protoc --version" will get output libprotoc 2.5.0
>
> Now it seems everything ready, but when run mvn install -DskipTests -e
> will get an error message:
>
> can not execute: compile-ms-native-dll in
> ..\hadoop-common-project\hadoop-common\pom.xml
>
> do you have any suggestions?
>
> Thanks.
>
> Nikshe
>
>
> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
> version Are you sure that you have Protocol Buffers installed?
>
> From: Silvina Caíno Lores <si...@gmail.com>
> To: user@hadoop.apache.org,
> Date: 01/17/2014 06:43 PM
> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
> ------------------------------
>
>
>
> 'protoc --version' did not return a version
>
> Are you sure that you have Protocol Buffers installed?
>
>
>
> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
> wrote:
>
>    Hi All,
>
>
>
>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>
>
>
>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>    Windows platform?
>
>
>
>    I am getting the following error building **hadoop-common** project:
>
>
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Building Apache Hadoop Common 2.2.0
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO]
>
>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>    hadoop-common ---
>
>    [INFO] Deleting
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>
>    [INFO]
>
>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>    hadoop-common ---
>
>    [INFO] Executing tasks
>
>
>
>    main:
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>
>    [INFO] Executed tasks
>
>    [INFO]
>
>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>    hadoop-common ---
>
>    [INFO]
>
>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>    hadoop-common ---
>
>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
>    program "protoc": CreateProcess error=2, The system cannot find the file
>    specified
>
>    [ERROR] stdout: []
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] BUILD FAILURE
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Total time: 1.153s
>
>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>
>    [INFO] Final Memory: 7M/18M
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [ERROR] Failed to execute goal
>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>    'protoc --version' did not return a version -> [Help 1]
>
>    [ERROR]
>
>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>    the -e switch.
>
>    [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 read the following articles:
>
>    [ERROR] [Help 1]
>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>
>
>
>    Thanks,
>
>    -Nirmal
>
>    ------------------------------
>
>
>
>
>
>
>    NOTE: This message may contain information that is confidential,
>    proprietary, privileged or otherwise protected by law. The message is
>    intended solely for the named addressee. If received in error, please
>    destroy and notify the sender. Any use of this email is prohibited when
>    received in error. Impetus does not represent, warrant and/or guarantee,
>    that the integrity of this communication has been maintained nor that the
>    communication is free of errors, virus, interception or interference.
>
>
>
>

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Dan Sandler <da...@the-sandlers.com>.
Nirmal/Nikshe,

I got Hadoop to build on a Windows 7 64-bit host. I am using the version
2.5.0 of Protocol Buffers.

dsandler@dans-t61p7 ~
$ protoc --version
libprotoc 2.5.0


As you found, I tried to build protoc from the source, but I experienced
the same error, and gave up.  I also found it was not needed.  Instead, I
downloaded protoc-2.5.0-win32.zip<https://protobuf.googlecode.com/files/protoc-2.5.0-win32.zip>
and
unzipped protoc.exe from the zip file (as opposed to building protoc.exe
from the source), placed protoc.exe in a directory referenced in my $PATH,
and then restarted the Hadoop build.

Some other steps I took, you might have already done these but it is worth
mentioning:


   - Set 64-bit platform environment variable (export Platform=x64).  This
   should fix the compile-ms-native-dll error
   - Add .NET MSBuild.exe home directory to your path (export
   PATH=C:\Windows\Microsoft.NET\Framework64\v4.0.30319:$PATH)

It is worth mentioning I am using Cygwin 64-bit.  More information on the
step-by-step process can be found
here<http://www.datadansandler.com/2013/09/building-hadoop-on-windows.html>
.

Regards,

Dan


On Fri, Jan 17, 2014 at 9:18 AM, Jian Feng JF She <sh...@cn.ibm.com>wrote:

> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
> installed the protocbuf previously,and according to the guide, put
> protoc.exe and
>
> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>
> run "protoc --version" will get output libprotoc 2.5.0
>
> Now it seems everything ready, but when run mvn install -DskipTests -e
> will get an error message:
>
> can not execute: compile-ms-native-dll in
> ..\hadoop-common-project\hadoop-common\pom.xml
>
> do you have any suggestions?
>
> Thanks.
>
> Nikshe
>
>
> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
> version Are you sure that you have Protocol Buffers installed?
>
> From: Silvina Caíno Lores <si...@gmail.com>
> To: user@hadoop.apache.org,
> Date: 01/17/2014 06:43 PM
> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
> ------------------------------
>
>
>
> 'protoc --version' did not return a version
>
> Are you sure that you have Protocol Buffers installed?
>
>
>
> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
> wrote:
>
>    Hi All,
>
>
>
>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>
>
>
>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>    Windows platform?
>
>
>
>    I am getting the following error building **hadoop-common** project:
>
>
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Building Apache Hadoop Common 2.2.0
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO]
>
>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>    hadoop-common ---
>
>    [INFO] Deleting
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>
>    [INFO]
>
>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>    hadoop-common ---
>
>    [INFO] Executing tasks
>
>
>
>    main:
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>
>    [INFO] Executed tasks
>
>    [INFO]
>
>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>    hadoop-common ---
>
>    [INFO]
>
>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>    hadoop-common ---
>
>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
>    program "protoc": CreateProcess error=2, The system cannot find the file
>    specified
>
>    [ERROR] stdout: []
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] BUILD FAILURE
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Total time: 1.153s
>
>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>
>    [INFO] Final Memory: 7M/18M
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [ERROR] Failed to execute goal
>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>    'protoc --version' did not return a version -> [Help 1]
>
>    [ERROR]
>
>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>    the -e switch.
>
>    [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 read the following articles:
>
>    [ERROR] [Help 1]
>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>
>
>
>    Thanks,
>
>    -Nirmal
>
>    ------------------------------
>
>
>
>
>
>
>    NOTE: This message may contain information that is confidential,
>    proprietary, privileged or otherwise protected by law. The message is
>    intended solely for the named addressee. If received in error, please
>    destroy and notify the sender. Any use of this email is prohibited when
>    received in error. Impetus does not represent, warrant and/or guarantee,
>    that the integrity of this communication has been maintained nor that the
>    communication is free of errors, virus, interception or interference.
>
>
>
>

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Dan Sandler <da...@the-sandlers.com>.
Nirmal/Nikshe,

I got Hadoop to build on a Windows 7 64-bit host. I am using the version
2.5.0 of Protocol Buffers.

dsandler@dans-t61p7 ~
$ protoc --version
libprotoc 2.5.0


As you found, I tried to build protoc from the source, but I experienced
the same error, and gave up.  I also found it was not needed.  Instead, I
downloaded protoc-2.5.0-win32.zip<https://protobuf.googlecode.com/files/protoc-2.5.0-win32.zip>
and
unzipped protoc.exe from the zip file (as opposed to building protoc.exe
from the source), placed protoc.exe in a directory referenced in my $PATH,
and then restarted the Hadoop build.

Some other steps I took, you might have already done these but it is worth
mentioning:


   - Set 64-bit platform environment variable (export Platform=x64).  This
   should fix the compile-ms-native-dll error
   - Add .NET MSBuild.exe home directory to your path (export
   PATH=C:\Windows\Microsoft.NET\Framework64\v4.0.30319:$PATH)

It is worth mentioning I am using Cygwin 64-bit.  More information on the
step-by-step process can be found
here<http://www.datadansandler.com/2013/09/building-hadoop-on-windows.html>
.

Regards,

Dan


On Fri, Jan 17, 2014 at 9:18 AM, Jian Feng JF She <sh...@cn.ibm.com>wrote:

> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
> installed the protocbuf previously,and according to the guide, put
> protoc.exe and
>
> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>
> run "protoc --version" will get output libprotoc 2.5.0
>
> Now it seems everything ready, but when run mvn install -DskipTests -e
> will get an error message:
>
> can not execute: compile-ms-native-dll in
> ..\hadoop-common-project\hadoop-common\pom.xml
>
> do you have any suggestions?
>
> Thanks.
>
> Nikshe
>
>
> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
> version Are you sure that you have Protocol Buffers installed?
>
> From: Silvina Caíno Lores <si...@gmail.com>
> To: user@hadoop.apache.org,
> Date: 01/17/2014 06:43 PM
> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
> ------------------------------
>
>
>
> 'protoc --version' did not return a version
>
> Are you sure that you have Protocol Buffers installed?
>
>
>
> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
> wrote:
>
>    Hi All,
>
>
>
>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>
>
>
>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>    Windows platform?
>
>
>
>    I am getting the following error building **hadoop-common** project:
>
>
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Building Apache Hadoop Common 2.2.0
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO]
>
>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>    hadoop-common ---
>
>    [INFO] Deleting
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>
>    [INFO]
>
>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>    hadoop-common ---
>
>    [INFO] Executing tasks
>
>
>
>    main:
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>
>    [INFO] Executed tasks
>
>    [INFO]
>
>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>    hadoop-common ---
>
>    [INFO]
>
>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>    hadoop-common ---
>
>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
>    program "protoc": CreateProcess error=2, The system cannot find the file
>    specified
>
>    [ERROR] stdout: []
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] BUILD FAILURE
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Total time: 1.153s
>
>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>
>    [INFO] Final Memory: 7M/18M
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [ERROR] Failed to execute goal
>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>    'protoc --version' did not return a version -> [Help 1]
>
>    [ERROR]
>
>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>    the -e switch.
>
>    [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 read the following articles:
>
>    [ERROR] [Help 1]
>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>
>
>
>    Thanks,
>
>    -Nirmal
>
>    ------------------------------
>
>
>
>
>
>
>    NOTE: This message may contain information that is confidential,
>    proprietary, privileged or otherwise protected by law. The message is
>    intended solely for the named addressee. If received in error, please
>    destroy and notify the sender. Any use of this email is prohibited when
>    received in error. Impetus does not represent, warrant and/or guarantee,
>    that the integrity of this communication has been maintained nor that the
>    communication is free of errors, virus, interception or interference.
>
>
>
>

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Silvina Caíno Lores <si...@gmail.com>.
Hey again,

I'm not a Windows user so I'm not very familiar with these issues. However,
I recall this link<http://www.srccodes.com/p/article/38/build-install-configure-run-apache-hadoop-2.2.0-microsoft-windows-os>as
a useful source for installation problems I've had on my own, since
it's
for Windows it might help you even further.

The error

stdint.h: No such file or directory

is causing your build to fail, it seems like you don't have the headers
installed or they aren't properly referenced. Sorry that I can't be of more
help, I'm not sure how MinGW handles these includes.

Good luck :D



On 17 January 2014 15:18, Jian Feng JF She <sh...@cn.ibm.com> wrote:

> I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
> installed the protocbuf previously,and according to the guide, put
> protoc.exe and
>
> libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.
>
> run "protoc --version" will get output libprotoc 2.5.0
>
> Now it seems everything ready, but when run mvn install -DskipTests -e
> will get an error message:
>
> can not execute: compile-ms-native-dll in
> ..\hadoop-common-project\hadoop-common\pom.xml
>
> do you have any suggestions?
>
> Thanks.
>
> Nikshe
>
>
> [image: Inactive hide details for Silvina Caíno Lores ---01/17/2014
> 06:43:00 PM---'protoc --version' did not return a version Are you s]Silvina
> Caíno Lores ---01/17/2014 06:43:00 PM---'protoc --version' did not return a
> version Are you sure that you have Protocol Buffers installed?
>
> From: Silvina Caíno Lores <si...@gmail.com>
> To: user@hadoop.apache.org,
> Date: 01/17/2014 06:43 PM
>
> Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit
> ------------------------------
>
>
>
> 'protoc --version' did not return a version
>
> Are you sure that you have Protocol Buffers installed?
>
>
>
> On 17 January 2014 11:29, Nirmal Kumar <*n...@impetus.co.in>>
> wrote:
>
>    Hi All,
>
>
>
>    I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>
>
>
>    Can you let me know what else is needed for building Hadoop 2.2.0 On
>    Windows platform?
>
>
>
>    I am getting the following error building **hadoop-common** project:
>
>
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Building Apache Hadoop Common 2.2.0
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO]
>
>    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>    hadoop-common ---
>
>    [INFO] Deleting
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>
>    [INFO]
>
>    [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
>    hadoop-common ---
>
>    [INFO] Executing tasks
>
>
>
>    main:
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>
>        [mkdir] Created dir:
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>
>    [INFO] Executed tasks
>
>    [INFO]
>
>    [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
>    hadoop-common ---
>
>    [INFO]
>
>    [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
>    hadoop-common ---
>
>    [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
>    program "protoc": CreateProcess error=2, The system cannot find the file
>    specified
>
>    [ERROR] stdout: []
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] BUILD FAILURE
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [INFO] Total time: 1.153s
>
>    [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>
>    [INFO] Final Memory: 7M/18M
>
>    [INFO]
>    ------------------------------------------------------------------------
>
>    [ERROR] Failed to execute goal
>    org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
>    project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
>    'protoc --version' did not return a version -> [Help 1]
>
>    [ERROR]
>
>    [ERROR] To see the full stack trace of the errors, re-run Maven with
>    the -e switch.
>
>    [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 read the following articles:
>
>    [ERROR] [Help 1]
>    *http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>
>    D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>
>
>
>    Thanks,
>
>    -Nirmal
>
>    ------------------------------
>
>
>
>
>
>
>    NOTE: This message may contain information that is confidential,
>    proprietary, privileged or otherwise protected by law. The message is
>    intended solely for the named addressee. If received in error, please
>    destroy and notify the sender. Any use of this email is prohibited when
>    received in error. Impetus does not represent, warrant and/or guarantee,
>    that the integrity of this communication has been maintained nor that the
>    communication is free of errors, virus, interception or interference.
>
>
>
>

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Jian Feng JF She <sh...@cn.ibm.com>.
I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
installed the protocbuf previously,and according to the guide, put
protoc.exe and

libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.

run "protoc --version" will get output libprotoc 2.5.0

Now it seems everything ready, but when run mvn install -DskipTests -e will
get an error message:

can not execute: compile-ms-native-dll in ..\hadoop-common-project
\hadoop-common\pom.xml

do you have any suggestions?

Thanks.

Nikshe




From:	Silvina Caíno Lores <si...@gmail.com>
To:	user@hadoop.apache.org,
Date:	01/17/2014 06:43 PM
Subject:	Re: Building Hadoop 2.2.0 On Windows 7 64-bit



'protoc --version' did not return a version

Are you sure that you have Protocol Buffers installed?



On 17 January 2014 11:29, Nirmal Kumar <ni...@impetus.co.in> wrote:
  Hi All,





  I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.





  Can you let me know what else is needed for building Hadoop 2.2.0 On
  Windows platform?





  I am getting the following error building *hadoop-common* project:





  [INFO]
  ------------------------------------------------------------------------


  [INFO] Building Apache Hadoop Common 2.2.0


  [INFO]
  ------------------------------------------------------------------------


  [INFO]


  [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hadoop-common
  ---


  [INFO] Deleting D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project
  \hadoop-common\target


  [INFO]


  [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ hadoop-common
  ---


  [INFO] Executing tasks





  main:


      [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src
  \hadoop-common-project\hadoop-common\target\test-dir


      [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src
  \hadoop-common-project\hadoop-common\target\test\data


  [INFO] Executed tasks


  [INFO]


  [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
  hadoop-common ---


  [INFO]


  [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
  hadoop-common ---


  [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
  program "protoc": CreateProcess error=2, The system cannot find the file
  specified


  [ERROR] stdout: []


  [INFO]
  ------------------------------------------------------------------------


  [INFO] BUILD FAILURE


  [INFO]
  ------------------------------------------------------------------------


  [INFO] Total time: 1.153s


  [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014


  [INFO] Final Memory: 7M/18M


  [INFO]
  ------------------------------------------------------------------------


  [ERROR] Failed to execute goal
  org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
  project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
  'protoc --version' did not return a version -> [Help 1]


  [ERROR]


  [ERROR] To see the full stack trace of the errors, re-run Maven with the
  -e switch.


  [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 read the following articles:


  [ERROR] [Help 1]
  http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


  D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>





  Thanks,


  -Nirmal







  NOTE: This message may contain information that is confidential,
  proprietary, privileged or otherwise protected by law. The message is
  intended solely for the named addressee. If received in error, please
  destroy and notify the sender. Any use of this email is prohibited when
  received in error. Impetus does not represent, warrant and/or guarantee,
  that the integrity of this communication has been maintained nor that the
  communication is free of errors, virus, interception or interference.

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Jian Feng JF She <sh...@cn.ibm.com>.
I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
installed the protocbuf previously,and according to the guide, put
protoc.exe and

libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.

run "protoc --version" will get output libprotoc 2.5.0

Now it seems everything ready, but when run mvn install -DskipTests -e will
get an error message:

can not execute: compile-ms-native-dll in ..\hadoop-common-project
\hadoop-common\pom.xml

do you have any suggestions?

Thanks.

Nikshe




From:	Silvina Caíno Lores <si...@gmail.com>
To:	user@hadoop.apache.org,
Date:	01/17/2014 06:43 PM
Subject:	Re: Building Hadoop 2.2.0 On Windows 7 64-bit



'protoc --version' did not return a version

Are you sure that you have Protocol Buffers installed?



On 17 January 2014 11:29, Nirmal Kumar <ni...@impetus.co.in> wrote:
  Hi All,





  I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.





  Can you let me know what else is needed for building Hadoop 2.2.0 On
  Windows platform?





  I am getting the following error building *hadoop-common* project:





  [INFO]
  ------------------------------------------------------------------------


  [INFO] Building Apache Hadoop Common 2.2.0


  [INFO]
  ------------------------------------------------------------------------


  [INFO]


  [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hadoop-common
  ---


  [INFO] Deleting D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project
  \hadoop-common\target


  [INFO]


  [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ hadoop-common
  ---


  [INFO] Executing tasks





  main:


      [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src
  \hadoop-common-project\hadoop-common\target\test-dir


      [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src
  \hadoop-common-project\hadoop-common\target\test\data


  [INFO] Executed tasks


  [INFO]


  [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
  hadoop-common ---


  [INFO]


  [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
  hadoop-common ---


  [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
  program "protoc": CreateProcess error=2, The system cannot find the file
  specified


  [ERROR] stdout: []


  [INFO]
  ------------------------------------------------------------------------


  [INFO] BUILD FAILURE


  [INFO]
  ------------------------------------------------------------------------


  [INFO] Total time: 1.153s


  [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014


  [INFO] Final Memory: 7M/18M


  [INFO]
  ------------------------------------------------------------------------


  [ERROR] Failed to execute goal
  org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
  project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
  'protoc --version' did not return a version -> [Help 1]


  [ERROR]


  [ERROR] To see the full stack trace of the errors, re-run Maven with the
  -e switch.


  [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 read the following articles:


  [ERROR] [Help 1]
  http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


  D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>





  Thanks,


  -Nirmal







  NOTE: This message may contain information that is confidential,
  proprietary, privileged or otherwise protected by law. The message is
  intended solely for the named addressee. If received in error, please
  destroy and notify the sender. Any use of this email is prohibited when
  received in error. Impetus does not represent, warrant and/or guarantee,
  that the integrity of this communication has been maintained nor that the
  communication is free of errors, virus, interception or interference.

RE: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Nirmal Kumar <ni...@impetus.co.in>.
Hi Silvi,

I'm trying installing protocol buffers using MinGW but getting the following errors with *make* command :

I am doing the following steps:
Open a MINGW32 shell from your start menu (installed with mingw) and change directories to the protobuf folder. Note that to build static libraries you can pass '--enable-static' and'--disable-shared' to the configure step in order to produce '.a' static libraries instead of '.dll' dynamic linked libraries.
     cd protobuf-2.4.1
    ./configure --prefix=`pwd`
    make
    make install

But make gives me error:

$ make
make  all-recursive
make[1]: Entering directory `/home/nirmal.kumar/protobuf-2.5.0'
Making all in .
make[2]: Entering directory `/home/nirmal.kumar/protobuf-2.5.0'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/nirmal.kumar/protobuf-2.5.0'
Making all in src
make[2]: Entering directory `/home/nirmal.kumar/protobuf-2.5.0/src'
g++ -DHAVE_CONFIG_H -I. -I..     -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -MT main.o -MD -MP -MF .deps/m
ain.Tpo -c -o main.o `test -f 'google/protobuf/compiler/main.cc' || echo './'`google/protobuf/compiler/main.cc
In file included from ./google/protobuf/compiler/command_line_interface.h:41,
                 from google/protobuf/compiler/main.cc:33:
./google/protobuf/stubs/common.h:48:20: stdint.h: No such file or directory
In file included from ./google/protobuf/compiler/command_line_interface.h:41,
                 from google/protobuf/compiler/main.cc:33:
./google/protobuf/stubs/common.h:175: error: `uint8_t' does not name a type
./google/protobuf/stubs/common.h:176: error: `uint16_t' does not name a type
./google/protobuf/stubs/common.h:177: error: `uint32_t' does not name a type
./google/protobuf/stubs/common.h:178: error: `uint64_t' does not name a type
./google/protobuf/stubs/common.h:201: error: `uint32' does not name a type
./google/protobuf/stubs/common.h:202: error: `uint64' does not name a type
./google/protobuf/stubs/common.h:1169: error: `uint32' does not name a type
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/nirmal.kumar/protobuf-2.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nirmal.kumar/protobuf-2.5.0'
make: *** [all] Error 2

Not sure if I downloaded the correct protocol buffers for Windows 7 64-bit.  I tried the below highlighted ones.

[cid:image001.png@01CF13AE.07164150]

Any idea?

Thanks,
-Nirmal

From: Silvina Caíno Lores [mailto:silvi.caino@gmail.com]
Sent: Friday, January 17, 2014 4:15 PM
To: user@hadoop.apache.org
Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit

'protoc --version' did not return a version

Are you sure that you have Protocol Buffers installed?


On 17 January 2014 11:29, Nirmal Kumar <ni...@impetus.co.in>> wrote:
Hi All,

I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.

Can you let me know what else is needed for building Hadoop 2.2.0 On Windows platform?

I am getting the following error building *hadoop-common* project:

[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Hadoop Common 2.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hadoop-common ---
[INFO] Deleting D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
[INFO]
[INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ hadoop-common ---
[INFO] Executing tasks

main:
    [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
    [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
[INFO] Executed tasks
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @ hadoop-common ---
[INFO]
[INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @ hadoop-common ---
[WARNING] [protoc, --version] failed: java.io.IOException: Cannot run program "protoc": CreateProcess error=2, The system cannot find the file specified
[ERROR] stdout: []
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.153s
[INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>

Thanks,
-Nirmal

________________________________






NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.


________________________________






NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.

RE: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Nirmal Kumar <ni...@impetus.co.in>.
Hi Silvi,

I'm trying installing protocol buffers using MinGW but getting the following errors with *make* command :

I am doing the following steps:
Open a MINGW32 shell from your start menu (installed with mingw) and change directories to the protobuf folder. Note that to build static libraries you can pass '--enable-static' and'--disable-shared' to the configure step in order to produce '.a' static libraries instead of '.dll' dynamic linked libraries.
     cd protobuf-2.4.1
    ./configure --prefix=`pwd`
    make
    make install

But make gives me error:

$ make
make  all-recursive
make[1]: Entering directory `/home/nirmal.kumar/protobuf-2.5.0'
Making all in .
make[2]: Entering directory `/home/nirmal.kumar/protobuf-2.5.0'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/nirmal.kumar/protobuf-2.5.0'
Making all in src
make[2]: Entering directory `/home/nirmal.kumar/protobuf-2.5.0/src'
g++ -DHAVE_CONFIG_H -I. -I..     -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -MT main.o -MD -MP -MF .deps/m
ain.Tpo -c -o main.o `test -f 'google/protobuf/compiler/main.cc' || echo './'`google/protobuf/compiler/main.cc
In file included from ./google/protobuf/compiler/command_line_interface.h:41,
                 from google/protobuf/compiler/main.cc:33:
./google/protobuf/stubs/common.h:48:20: stdint.h: No such file or directory
In file included from ./google/protobuf/compiler/command_line_interface.h:41,
                 from google/protobuf/compiler/main.cc:33:
./google/protobuf/stubs/common.h:175: error: `uint8_t' does not name a type
./google/protobuf/stubs/common.h:176: error: `uint16_t' does not name a type
./google/protobuf/stubs/common.h:177: error: `uint32_t' does not name a type
./google/protobuf/stubs/common.h:178: error: `uint64_t' does not name a type
./google/protobuf/stubs/common.h:201: error: `uint32' does not name a type
./google/protobuf/stubs/common.h:202: error: `uint64' does not name a type
./google/protobuf/stubs/common.h:1169: error: `uint32' does not name a type
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/nirmal.kumar/protobuf-2.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nirmal.kumar/protobuf-2.5.0'
make: *** [all] Error 2

Not sure if I downloaded the correct protocol buffers for Windows 7 64-bit.  I tried the below highlighted ones.

[cid:image001.png@01CF13AE.07164150]

Any idea?

Thanks,
-Nirmal

From: Silvina Caíno Lores [mailto:silvi.caino@gmail.com]
Sent: Friday, January 17, 2014 4:15 PM
To: user@hadoop.apache.org
Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit

'protoc --version' did not return a version

Are you sure that you have Protocol Buffers installed?


On 17 January 2014 11:29, Nirmal Kumar <ni...@impetus.co.in>> wrote:
Hi All,

I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.

Can you let me know what else is needed for building Hadoop 2.2.0 On Windows platform?

I am getting the following error building *hadoop-common* project:

[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Hadoop Common 2.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hadoop-common ---
[INFO] Deleting D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
[INFO]
[INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ hadoop-common ---
[INFO] Executing tasks

main:
    [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
    [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
[INFO] Executed tasks
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @ hadoop-common ---
[INFO]
[INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @ hadoop-common ---
[WARNING] [protoc, --version] failed: java.io.IOException: Cannot run program "protoc": CreateProcess error=2, The system cannot find the file specified
[ERROR] stdout: []
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.153s
[INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>

Thanks,
-Nirmal

________________________________






NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.


________________________________






NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.

RE: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Nirmal Kumar <ni...@impetus.co.in>.
Hi Silvi,

I'm trying installing protocol buffers using MinGW but getting the following errors with *make* command :

I am doing the following steps:
Open a MINGW32 shell from your start menu (installed with mingw) and change directories to the protobuf folder. Note that to build static libraries you can pass '--enable-static' and'--disable-shared' to the configure step in order to produce '.a' static libraries instead of '.dll' dynamic linked libraries.
     cd protobuf-2.4.1
    ./configure --prefix=`pwd`
    make
    make install

But make gives me error:

$ make
make  all-recursive
make[1]: Entering directory `/home/nirmal.kumar/protobuf-2.5.0'
Making all in .
make[2]: Entering directory `/home/nirmal.kumar/protobuf-2.5.0'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/nirmal.kumar/protobuf-2.5.0'
Making all in src
make[2]: Entering directory `/home/nirmal.kumar/protobuf-2.5.0/src'
g++ -DHAVE_CONFIG_H -I. -I..     -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -MT main.o -MD -MP -MF .deps/m
ain.Tpo -c -o main.o `test -f 'google/protobuf/compiler/main.cc' || echo './'`google/protobuf/compiler/main.cc
In file included from ./google/protobuf/compiler/command_line_interface.h:41,
                 from google/protobuf/compiler/main.cc:33:
./google/protobuf/stubs/common.h:48:20: stdint.h: No such file or directory
In file included from ./google/protobuf/compiler/command_line_interface.h:41,
                 from google/protobuf/compiler/main.cc:33:
./google/protobuf/stubs/common.h:175: error: `uint8_t' does not name a type
./google/protobuf/stubs/common.h:176: error: `uint16_t' does not name a type
./google/protobuf/stubs/common.h:177: error: `uint32_t' does not name a type
./google/protobuf/stubs/common.h:178: error: `uint64_t' does not name a type
./google/protobuf/stubs/common.h:201: error: `uint32' does not name a type
./google/protobuf/stubs/common.h:202: error: `uint64' does not name a type
./google/protobuf/stubs/common.h:1169: error: `uint32' does not name a type
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/nirmal.kumar/protobuf-2.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nirmal.kumar/protobuf-2.5.0'
make: *** [all] Error 2

Not sure if I downloaded the correct protocol buffers for Windows 7 64-bit.  I tried the below highlighted ones.

[cid:image001.png@01CF13AE.07164150]

Any idea?

Thanks,
-Nirmal

From: Silvina Caíno Lores [mailto:silvi.caino@gmail.com]
Sent: Friday, January 17, 2014 4:15 PM
To: user@hadoop.apache.org
Subject: Re: Building Hadoop 2.2.0 On Windows 7 64-bit

'protoc --version' did not return a version

Are you sure that you have Protocol Buffers installed?


On 17 January 2014 11:29, Nirmal Kumar <ni...@impetus.co.in>> wrote:
Hi All,

I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.

Can you let me know what else is needed for building Hadoop 2.2.0 On Windows platform?

I am getting the following error building *hadoop-common* project:

[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Hadoop Common 2.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hadoop-common ---
[INFO] Deleting D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
[INFO]
[INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ hadoop-common ---
[INFO] Executing tasks

main:
    [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
    [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
[INFO] Executed tasks
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @ hadoop-common ---
[INFO]
[INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @ hadoop-common ---
[WARNING] [protoc, --version] failed: java.io.IOException: Cannot run program "protoc": CreateProcess error=2, The system cannot find the file specified
[ERROR] stdout: []
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.153s
[INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>

Thanks,
-Nirmal

________________________________






NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.


________________________________






NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Jian Feng JF She <sh...@cn.ibm.com>.
I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
installed the protocbuf previously,and according to the guide, put
protoc.exe and

libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.

run "protoc --version" will get output libprotoc 2.5.0

Now it seems everything ready, but when run mvn install -DskipTests -e will
get an error message:

can not execute: compile-ms-native-dll in ..\hadoop-common-project
\hadoop-common\pom.xml

do you have any suggestions?

Thanks.

Nikshe




From:	Silvina Caíno Lores <si...@gmail.com>
To:	user@hadoop.apache.org,
Date:	01/17/2014 06:43 PM
Subject:	Re: Building Hadoop 2.2.0 On Windows 7 64-bit



'protoc --version' did not return a version

Are you sure that you have Protocol Buffers installed?



On 17 January 2014 11:29, Nirmal Kumar <ni...@impetus.co.in> wrote:
  Hi All,





  I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.





  Can you let me know what else is needed for building Hadoop 2.2.0 On
  Windows platform?





  I am getting the following error building *hadoop-common* project:





  [INFO]
  ------------------------------------------------------------------------


  [INFO] Building Apache Hadoop Common 2.2.0


  [INFO]
  ------------------------------------------------------------------------


  [INFO]


  [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hadoop-common
  ---


  [INFO] Deleting D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project
  \hadoop-common\target


  [INFO]


  [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ hadoop-common
  ---


  [INFO] Executing tasks





  main:


      [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src
  \hadoop-common-project\hadoop-common\target\test-dir


      [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src
  \hadoop-common-project\hadoop-common\target\test\data


  [INFO] Executed tasks


  [INFO]


  [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
  hadoop-common ---


  [INFO]


  [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
  hadoop-common ---


  [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
  program "protoc": CreateProcess error=2, The system cannot find the file
  specified


  [ERROR] stdout: []


  [INFO]
  ------------------------------------------------------------------------


  [INFO] BUILD FAILURE


  [INFO]
  ------------------------------------------------------------------------


  [INFO] Total time: 1.153s


  [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014


  [INFO] Final Memory: 7M/18M


  [INFO]
  ------------------------------------------------------------------------


  [ERROR] Failed to execute goal
  org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
  project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
  'protoc --version' did not return a version -> [Help 1]


  [ERROR]


  [ERROR] To see the full stack trace of the errors, re-run Maven with the
  -e switch.


  [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 read the following articles:


  [ERROR] [Help 1]
  http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


  D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>





  Thanks,


  -Nirmal







  NOTE: This message may contain information that is confidential,
  proprietary, privileged or otherwise protected by law. The message is
  intended solely for the named addressee. If received in error, please
  destroy and notify the sender. Any use of this email is prohibited when
  received in error. Impetus does not represent, warrant and/or guarantee,
  that the integrity of this communication has been maintained nor that the
  communication is free of errors, virus, interception or interference.

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Jian Feng JF She <sh...@cn.ibm.com>.
I have the same the environment,Window 7(64bit) hadoop 2.2 ,yes I have
installed the protocbuf previously,and according to the guide, put
protoc.exe and

libprotobuf.lib,libprotobuf-lite.lib,libprotoc.lib into PATH.

run "protoc --version" will get output libprotoc 2.5.0

Now it seems everything ready, but when run mvn install -DskipTests -e will
get an error message:

can not execute: compile-ms-native-dll in ..\hadoop-common-project
\hadoop-common\pom.xml

do you have any suggestions?

Thanks.

Nikshe




From:	Silvina Caíno Lores <si...@gmail.com>
To:	user@hadoop.apache.org,
Date:	01/17/2014 06:43 PM
Subject:	Re: Building Hadoop 2.2.0 On Windows 7 64-bit



'protoc --version' did not return a version

Are you sure that you have Protocol Buffers installed?



On 17 January 2014 11:29, Nirmal Kumar <ni...@impetus.co.in> wrote:
  Hi All,





  I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.





  Can you let me know what else is needed for building Hadoop 2.2.0 On
  Windows platform?





  I am getting the following error building *hadoop-common* project:





  [INFO]
  ------------------------------------------------------------------------


  [INFO] Building Apache Hadoop Common 2.2.0


  [INFO]
  ------------------------------------------------------------------------


  [INFO]


  [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hadoop-common
  ---


  [INFO] Deleting D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project
  \hadoop-common\target


  [INFO]


  [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ hadoop-common
  ---


  [INFO] Executing tasks





  main:


      [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src
  \hadoop-common-project\hadoop-common\target\test-dir


      [mkdir] Created dir: D:\YARN_Setup\hadoop-2.2.0-src
  \hadoop-common-project\hadoop-common\target\test\data


  [INFO] Executed tasks


  [INFO]


  [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
  hadoop-common ---


  [INFO]


  [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
  hadoop-common ---


  [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
  program "protoc": CreateProcess error=2, The system cannot find the file
  specified


  [ERROR] stdout: []


  [INFO]
  ------------------------------------------------------------------------


  [INFO] BUILD FAILURE


  [INFO]
  ------------------------------------------------------------------------


  [INFO] Total time: 1.153s


  [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014


  [INFO] Final Memory: 7M/18M


  [INFO]
  ------------------------------------------------------------------------


  [ERROR] Failed to execute goal
  org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
  project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
  'protoc --version' did not return a version -> [Help 1]


  [ERROR]


  [ERROR] To see the full stack trace of the errors, re-run Maven with the
  -e switch.


  [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 read the following articles:


  [ERROR] [Help 1]
  http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


  D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>





  Thanks,


  -Nirmal







  NOTE: This message may contain information that is confidential,
  proprietary, privileged or otherwise protected by law. The message is
  intended solely for the named addressee. If received in error, please
  destroy and notify the sender. Any use of this email is prohibited when
  received in error. Impetus does not represent, warrant and/or guarantee,
  that the integrity of this communication has been maintained nor that the
  communication is free of errors, virus, interception or interference.

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Silvina Caíno Lores <si...@gmail.com>.
'protoc --version' did not return a version

Are you sure that you have Protocol Buffers installed?



On 17 January 2014 11:29, Nirmal Kumar <ni...@impetus.co.in> wrote:

>  Hi All,
>
>
>
> I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>
>
>
> Can you let me know what else is needed for building Hadoop 2.2.0 On
> Windows platform?
>
>
>
> I am getting the following error building **hadoop-common** project:
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Building Apache Hadoop Common 2.2.0
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO]
>
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hadoop-common
> ---
>
> [INFO] Deleting
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>
> [INFO]
>
> [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ hadoop-common
> ---
>
> [INFO] Executing tasks
>
>
>
> main:
>
>     [mkdir] Created dir:
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>
>     [mkdir] Created dir:
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>
> [INFO] Executed tasks
>
> [INFO]
>
> [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
> hadoop-common ---
>
> [INFO]
>
> [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
> hadoop-common ---
>
> [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
> program "protoc": CreateProcess error=2, The system cannot find the file
> specified
>
> [ERROR] stdout: []
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] BUILD FAILURE
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Total time: 1.153s
>
> [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>
> [INFO] Final Memory: 7M/18M
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
> project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
> 'protoc --version' did not return a version -> [Help 1]
>
> [ERROR]
>
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
>
> [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 read the following articles:
>
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>
>
>
> Thanks,
>
> -Nirmal
>
> ------------------------------
>
>
>
>
>
>
> NOTE: This message may contain information that is confidential,
> proprietary, privileged or otherwise protected by law. The message is
> intended solely for the named addressee. If received in error, please
> destroy and notify the sender. Any use of this email is prohibited when
> received in error. Impetus does not represent, warrant and/or guarantee,
> that the integrity of this communication has been maintained nor that the
> communication is free of errors, virus, interception or interference.
>

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Silvina Caíno Lores <si...@gmail.com>.
'protoc --version' did not return a version

Are you sure that you have Protocol Buffers installed?



On 17 January 2014 11:29, Nirmal Kumar <ni...@impetus.co.in> wrote:

>  Hi All,
>
>
>
> I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>
>
>
> Can you let me know what else is needed for building Hadoop 2.2.0 On
> Windows platform?
>
>
>
> I am getting the following error building **hadoop-common** project:
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Building Apache Hadoop Common 2.2.0
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO]
>
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hadoop-common
> ---
>
> [INFO] Deleting
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>
> [INFO]
>
> [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ hadoop-common
> ---
>
> [INFO] Executing tasks
>
>
>
> main:
>
>     [mkdir] Created dir:
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>
>     [mkdir] Created dir:
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>
> [INFO] Executed tasks
>
> [INFO]
>
> [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
> hadoop-common ---
>
> [INFO]
>
> [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
> hadoop-common ---
>
> [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
> program "protoc": CreateProcess error=2, The system cannot find the file
> specified
>
> [ERROR] stdout: []
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] BUILD FAILURE
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Total time: 1.153s
>
> [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>
> [INFO] Final Memory: 7M/18M
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
> project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
> 'protoc --version' did not return a version -> [Help 1]
>
> [ERROR]
>
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
>
> [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 read the following articles:
>
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>
>
>
> Thanks,
>
> -Nirmal
>
> ------------------------------
>
>
>
>
>
>
> NOTE: This message may contain information that is confidential,
> proprietary, privileged or otherwise protected by law. The message is
> intended solely for the named addressee. If received in error, please
> destroy and notify the sender. Any use of this email is prohibited when
> received in error. Impetus does not represent, warrant and/or guarantee,
> that the integrity of this communication has been maintained nor that the
> communication is free of errors, virus, interception or interference.
>

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Silvina Caíno Lores <si...@gmail.com>.
'protoc --version' did not return a version

Are you sure that you have Protocol Buffers installed?



On 17 January 2014 11:29, Nirmal Kumar <ni...@impetus.co.in> wrote:

>  Hi All,
>
>
>
> I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>
>
>
> Can you let me know what else is needed for building Hadoop 2.2.0 On
> Windows platform?
>
>
>
> I am getting the following error building **hadoop-common** project:
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Building Apache Hadoop Common 2.2.0
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO]
>
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hadoop-common
> ---
>
> [INFO] Deleting
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>
> [INFO]
>
> [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ hadoop-common
> ---
>
> [INFO] Executing tasks
>
>
>
> main:
>
>     [mkdir] Created dir:
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>
>     [mkdir] Created dir:
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>
> [INFO] Executed tasks
>
> [INFO]
>
> [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
> hadoop-common ---
>
> [INFO]
>
> [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
> hadoop-common ---
>
> [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
> program "protoc": CreateProcess error=2, The system cannot find the file
> specified
>
> [ERROR] stdout: []
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] BUILD FAILURE
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Total time: 1.153s
>
> [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>
> [INFO] Final Memory: 7M/18M
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
> project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
> 'protoc --version' did not return a version -> [Help 1]
>
> [ERROR]
>
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
>
> [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 read the following articles:
>
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>
>
>
> Thanks,
>
> -Nirmal
>
> ------------------------------
>
>
>
>
>
>
> NOTE: This message may contain information that is confidential,
> proprietary, privileged or otherwise protected by law. The message is
> intended solely for the named addressee. If received in error, please
> destroy and notify the sender. Any use of this email is prohibited when
> received in error. Impetus does not represent, warrant and/or guarantee,
> that the integrity of this communication has been maintained nor that the
> communication is free of errors, virus, interception or interference.
>

Re: Building Hadoop 2.2.0 On Windows 7 64-bit

Posted by Silvina Caíno Lores <si...@gmail.com>.
'protoc --version' did not return a version

Are you sure that you have Protocol Buffers installed?



On 17 January 2014 11:29, Nirmal Kumar <ni...@impetus.co.in> wrote:

>  Hi All,
>
>
>
> I am trying to build Hadoop 2.2.0 On Windows 7 64-bit env.
>
>
>
> Can you let me know what else is needed for building Hadoop 2.2.0 On
> Windows platform?
>
>
>
> I am getting the following error building **hadoop-common** project:
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Building Apache Hadoop Common 2.2.0
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO]
>
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hadoop-common
> ---
>
> [INFO] Deleting
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target
>
> [INFO]
>
> [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ hadoop-common
> ---
>
> [INFO] Executing tasks
>
>
>
> main:
>
>     [mkdir] Created dir:
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test-dir
>
>     [mkdir] Created dir:
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common\target\test\data
>
> [INFO] Executed tasks
>
> [INFO]
>
> [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-os) @
> hadoop-common ---
>
> [INFO]
>
> [INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @
> hadoop-common ---
>
> [WARNING] [protoc, --version] failed: java.io.IOException: Cannot run
> program "protoc": CreateProcess error=2, The system cannot find the file
> specified
>
> [ERROR] stdout: []
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] BUILD FAILURE
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Total time: 1.153s
>
> [INFO] Finished at: Fri Jan 17 15:55:10 IST 2014
>
> [INFO] Final Memory: 7M/18M
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on
> project hadoop-common: org.apache.maven.plugin.MojoExecutionException:
> 'protoc --version' did not return a version -> [Help 1]
>
> [ERROR]
>
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
>
> [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 read the following articles:
>
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
> D:\YARN_Setup\hadoop-2.2.0-src\hadoop-common-project\hadoop-common>
>
>
>
> Thanks,
>
> -Nirmal
>
> ------------------------------
>
>
>
>
>
>
> NOTE: This message may contain information that is confidential,
> proprietary, privileged or otherwise protected by law. The message is
> intended solely for the named addressee. If received in error, please
> destroy and notify the sender. Any use of this email is prohibited when
> received in error. Impetus does not represent, warrant and/or guarantee,
> that the integrity of this communication has been maintained nor that the
> communication is free of errors, virus, interception or interference.
>