You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by nagarjuna kanamarlapudi <na...@gmail.com> on 2014/01/07 04:47:40 UTC

unable to compile hadoop source code

Hi,
I checked out the source code from
https://svn.apache.org/repos/asf/hadoop/common/trunk/

I tried to compile the code with mvn.

I am compiling this on a mac os X , mavericks.  Any help is appreciated.

It failed at the following stage


[INFO] Apache Hadoop Auth Examples ....................... SUCCESS [5.017s]

[INFO] Apache Hadoop Common .............................. FAILURE
[1:39.797s]

[INFO] Apache Hadoop NFS ................................. SKIPPED

[INFO] Apache Hadoop Common Project ...................... SKIPPED







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

[ERROR] Failed to execute goal
org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.


Thanks,
Nagarjuna K

Re: unable to compile hadoop source code

Posted by Diego Gutierrez <di...@ucsp.edu.pe>.
El ene 6, 2014 10:48 PM, "nagarjuna kanamarlapudi" <
nagarjuna.kanamarlapudi@gmail.com> escribió:
>
> Hi,
> I checked out the source code from
https://svn.apache.org/repos/asf/hadoop/common/trunk/
>
> I tried to compile the code with mvn.
>
> I am compiling this on a mac os X , mavericks.  Any help is appreciated.
>
> It failed at the following stage
>
>
> [INFO] Apache Hadoop Auth Examples ....................... SUCCESS
[5.017s]
>
> [INFO] Apache Hadoop Common .............................. FAILURE
[1:39.797s]
>
> [INFO] Apache Hadoop NFS ................................. SKIPPED
>
> [INFO] Apache Hadoop Common Project ...................... SKIPPED
>
>
>
>
>
>
>
>
> [INFO]
------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.
>
>
>
> Thanks,
> Nagarjuna K
>

Re: unable to compile hadoop source code

Posted by Diego Gutierrez <di...@ucsp.edu.pe>.
El ene 6, 2014 10:48 PM, "nagarjuna kanamarlapudi" <
nagarjuna.kanamarlapudi@gmail.com> escribió:
>
> Hi,
> I checked out the source code from
https://svn.apache.org/repos/asf/hadoop/common/trunk/
>
> I tried to compile the code with mvn.
>
> I am compiling this on a mac os X , mavericks.  Any help is appreciated.
>
> It failed at the following stage
>
>
> [INFO] Apache Hadoop Auth Examples ....................... SUCCESS
[5.017s]
>
> [INFO] Apache Hadoop Common .............................. FAILURE
[1:39.797s]
>
> [INFO] Apache Hadoop NFS ................................. SKIPPED
>
> [INFO] Apache Hadoop Common Project ...................... SKIPPED
>
>
>
>
>
>
>
>
> [INFO]
------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.
>
>
>
> Thanks,
> Nagarjuna K
>

Re: unable to compile hadoop source code

Posted by Ted Yu <yu...@gmail.com>.
The error message said that the build needs protoc to be installed.

Search protobuf on the web.

Cheers


On Mon, Jan 6, 2014 at 7:47 PM, nagarjuna kanamarlapudi <
nagarjuna.kanamarlapudi@gmail.com> wrote:

> Hi,
> I checked out the source code from
> https://svn.apache.org/repos/asf/hadoop/common/trunk/
>
> I tried to compile the code with mvn.
>
> I am compiling this on a mac os X , mavericks.  Any help is appreciated.
>
> It failed at the following stage
>
>
> [INFO] Apache Hadoop Auth Examples ....................... SUCCESS [5.017s]
>
> [INFO] Apache Hadoop Common .............................. FAILURE
> [1:39.797s]
>
> [INFO] Apache Hadoop NFS ................................. SKIPPED
>
> [INFO] Apache Hadoop Common Project ...................... SKIPPED
>
>
>
>
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.
>
>
> Thanks,
> Nagarjuna K
>
>

Re: unable to compile hadoop source code

Posted by Diego Gutierrez <di...@ucsp.edu.pe>.
El ene 6, 2014 10:48 PM, "nagarjuna kanamarlapudi" <
nagarjuna.kanamarlapudi@gmail.com> escribió:
>
> Hi,
> I checked out the source code from
https://svn.apache.org/repos/asf/hadoop/common/trunk/
>
> I tried to compile the code with mvn.
>
> I am compiling this on a mac os X , mavericks.  Any help is appreciated.
>
> It failed at the following stage
>
>
> [INFO] Apache Hadoop Auth Examples ....................... SUCCESS
[5.017s]
>
> [INFO] Apache Hadoop Common .............................. FAILURE
[1:39.797s]
>
> [INFO] Apache Hadoop NFS ................................. SKIPPED
>
> [INFO] Apache Hadoop Common Project ...................... SKIPPED
>
>
>
>
>
>
>
>
> [INFO]
------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.
>
>
>
> Thanks,
> Nagarjuna K
>

Re: unable to compile hadoop source code

Posted by nagarjuna kanamarlapudi <na...@gmail.com>.
Thanks all, the following is required

Download from http://code.google.com/p/protobuf/downloads/list


$ ./configure
$ make
$ make check
$ make install


Then compile the source code


On Tue, Jan 7, 2014 at 9:46 AM, Rohith Sharma K S <rohithsharmaks@huawei.com
> wrote:

>  You can read Build instructions for Hadoop.
>
> http://svn.apache.org/repos/asf/hadoop/common/trunk/BUILDING.txt
>
>
>
> For your problem, proto-buf not set in PATH. After setting, recheck
> proto-buffer version is 2.5
>
>
>
> *From:* nagarjuna kanamarlapudi [mailto:nagarjuna.kanamarlapudi@gmail.com]
>
> *Sent:* 07 January 2014 09:18
> *To:* user@hadoop.apache.org
> *Subject:* unable to compile hadoop source code
>
>
>
> Hi,
>
> I checked out the source code from
> https://svn.apache.org/repos/asf/hadoop/common/trunk/
>
>
>
> I tried to compile the code with mvn.
>
>
>
> I am compiling this on a mac os X , mavericks.  Any help is appreciated.
>
>
>
> It failed at the following stage
>
>
>
>
>
> [INFO] Apache Hadoop Auth Examples ....................... SUCCESS [5.017s]
>
> [INFO] Apache Hadoop Common .............................. FAILURE
> [1:39.797s]
>
> [INFO] Apache Hadoop NFS ................................. SKIPPED
>
> [INFO] Apache Hadoop Common Project ...................... SKIPPED
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.
>
>
>
>
>
> Thanks,
>
> Nagarjuna K
>
>
>

Re: unable to compile hadoop source code

Posted by nagarjuna kanamarlapudi <na...@gmail.com>.
Thanks all, the following is required

Download from http://code.google.com/p/protobuf/downloads/list


$ ./configure
$ make
$ make check
$ make install


Then compile the source code


On Tue, Jan 7, 2014 at 9:46 AM, Rohith Sharma K S <rohithsharmaks@huawei.com
> wrote:

>  You can read Build instructions for Hadoop.
>
> http://svn.apache.org/repos/asf/hadoop/common/trunk/BUILDING.txt
>
>
>
> For your problem, proto-buf not set in PATH. After setting, recheck
> proto-buffer version is 2.5
>
>
>
> *From:* nagarjuna kanamarlapudi [mailto:nagarjuna.kanamarlapudi@gmail.com]
>
> *Sent:* 07 January 2014 09:18
> *To:* user@hadoop.apache.org
> *Subject:* unable to compile hadoop source code
>
>
>
> Hi,
>
> I checked out the source code from
> https://svn.apache.org/repos/asf/hadoop/common/trunk/
>
>
>
> I tried to compile the code with mvn.
>
>
>
> I am compiling this on a mac os X , mavericks.  Any help is appreciated.
>
>
>
> It failed at the following stage
>
>
>
>
>
> [INFO] Apache Hadoop Auth Examples ....................... SUCCESS [5.017s]
>
> [INFO] Apache Hadoop Common .............................. FAILURE
> [1:39.797s]
>
> [INFO] Apache Hadoop NFS ................................. SKIPPED
>
> [INFO] Apache Hadoop Common Project ...................... SKIPPED
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.
>
>
>
>
>
> Thanks,
>
> Nagarjuna K
>
>
>

Re: unable to compile hadoop source code

Posted by nagarjuna kanamarlapudi <na...@gmail.com>.
Thanks all, the following is required

Download from http://code.google.com/p/protobuf/downloads/list


$ ./configure
$ make
$ make check
$ make install


Then compile the source code


On Tue, Jan 7, 2014 at 9:46 AM, Rohith Sharma K S <rohithsharmaks@huawei.com
> wrote:

>  You can read Build instructions for Hadoop.
>
> http://svn.apache.org/repos/asf/hadoop/common/trunk/BUILDING.txt
>
>
>
> For your problem, proto-buf not set in PATH. After setting, recheck
> proto-buffer version is 2.5
>
>
>
> *From:* nagarjuna kanamarlapudi [mailto:nagarjuna.kanamarlapudi@gmail.com]
>
> *Sent:* 07 January 2014 09:18
> *To:* user@hadoop.apache.org
> *Subject:* unable to compile hadoop source code
>
>
>
> Hi,
>
> I checked out the source code from
> https://svn.apache.org/repos/asf/hadoop/common/trunk/
>
>
>
> I tried to compile the code with mvn.
>
>
>
> I am compiling this on a mac os X , mavericks.  Any help is appreciated.
>
>
>
> It failed at the following stage
>
>
>
>
>
> [INFO] Apache Hadoop Auth Examples ....................... SUCCESS [5.017s]
>
> [INFO] Apache Hadoop Common .............................. FAILURE
> [1:39.797s]
>
> [INFO] Apache Hadoop NFS ................................. SKIPPED
>
> [INFO] Apache Hadoop Common Project ...................... SKIPPED
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.
>
>
>
>
>
> Thanks,
>
> Nagarjuna K
>
>
>

Re: unable to compile hadoop source code

Posted by nagarjuna kanamarlapudi <na...@gmail.com>.
Thanks all, the following is required

Download from http://code.google.com/p/protobuf/downloads/list


$ ./configure
$ make
$ make check
$ make install


Then compile the source code


On Tue, Jan 7, 2014 at 9:46 AM, Rohith Sharma K S <rohithsharmaks@huawei.com
> wrote:

>  You can read Build instructions for Hadoop.
>
> http://svn.apache.org/repos/asf/hadoop/common/trunk/BUILDING.txt
>
>
>
> For your problem, proto-buf not set in PATH. After setting, recheck
> proto-buffer version is 2.5
>
>
>
> *From:* nagarjuna kanamarlapudi [mailto:nagarjuna.kanamarlapudi@gmail.com]
>
> *Sent:* 07 January 2014 09:18
> *To:* user@hadoop.apache.org
> *Subject:* unable to compile hadoop source code
>
>
>
> Hi,
>
> I checked out the source code from
> https://svn.apache.org/repos/asf/hadoop/common/trunk/
>
>
>
> I tried to compile the code with mvn.
>
>
>
> I am compiling this on a mac os X , mavericks.  Any help is appreciated.
>
>
>
> It failed at the following stage
>
>
>
>
>
> [INFO] Apache Hadoop Auth Examples ....................... SUCCESS [5.017s]
>
> [INFO] Apache Hadoop Common .............................. FAILURE
> [1:39.797s]
>
> [INFO] Apache Hadoop NFS ................................. SKIPPED
>
> [INFO] Apache Hadoop Common Project ...................... SKIPPED
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.
>
>
>
>
>
> Thanks,
>
> Nagarjuna K
>
>
>

RE: unable to compile hadoop source code

Posted by Rohith Sharma K S <ro...@huawei.com>.
You can read Build instructions for Hadoop.
http://svn.apache.org/repos/asf/hadoop/common/trunk/BUILDING.txt

For your problem, proto-buf not set in PATH. After setting, recheck proto-buffer version is 2.5

From: nagarjuna kanamarlapudi [mailto:nagarjuna.kanamarlapudi@gmail.com]
Sent: 07 January 2014 09:18
To: user@hadoop.apache.org
Subject: unable to compile hadoop source code

Hi,
I checked out the source code from https://svn.apache.org/repos/asf/hadoop/common/trunk/

I tried to compile the code with mvn.

I am compiling this on a mac os X , mavericks.  Any help is appreciated.

It failed at the following stage



[INFO] Apache Hadoop Auth Examples ....................... SUCCESS [5.017s]

[INFO] Apache Hadoop Common .............................. FAILURE [1:39.797s]

[INFO] Apache Hadoop NFS ................................. SKIPPED

[INFO] Apache Hadoop Common Project ...................... SKIPPED








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

[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.


Thanks,
Nagarjuna K


Re: unable to compile hadoop source code

Posted by Ted Yu <yu...@gmail.com>.
The error message said that the build needs protoc to be installed.

Search protobuf on the web.

Cheers


On Mon, Jan 6, 2014 at 7:47 PM, nagarjuna kanamarlapudi <
nagarjuna.kanamarlapudi@gmail.com> wrote:

> Hi,
> I checked out the source code from
> https://svn.apache.org/repos/asf/hadoop/common/trunk/
>
> I tried to compile the code with mvn.
>
> I am compiling this on a mac os X , mavericks.  Any help is appreciated.
>
> It failed at the following stage
>
>
> [INFO] Apache Hadoop Auth Examples ....................... SUCCESS [5.017s]
>
> [INFO] Apache Hadoop Common .............................. FAILURE
> [1:39.797s]
>
> [INFO] Apache Hadoop NFS ................................. SKIPPED
>
> [INFO] Apache Hadoop Common Project ...................... SKIPPED
>
>
>
>
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.
>
>
> Thanks,
> Nagarjuna K
>
>

Re: unable to compile hadoop source code

Posted by Ted Yu <yu...@gmail.com>.
The error message said that the build needs protoc to be installed.

Search protobuf on the web.

Cheers


On Mon, Jan 6, 2014 at 7:47 PM, nagarjuna kanamarlapudi <
nagarjuna.kanamarlapudi@gmail.com> wrote:

> Hi,
> I checked out the source code from
> https://svn.apache.org/repos/asf/hadoop/common/trunk/
>
> I tried to compile the code with mvn.
>
> I am compiling this on a mac os X , mavericks.  Any help is appreciated.
>
> It failed at the following stage
>
>
> [INFO] Apache Hadoop Auth Examples ....................... SUCCESS [5.017s]
>
> [INFO] Apache Hadoop Common .............................. FAILURE
> [1:39.797s]
>
> [INFO] Apache Hadoop NFS ................................. SKIPPED
>
> [INFO] Apache Hadoop Common Project ...................... SKIPPED
>
>
>
>
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.
>
>
> Thanks,
> Nagarjuna K
>
>

RE: unable to compile hadoop source code

Posted by Rohith Sharma K S <ro...@huawei.com>.
You can read Build instructions for Hadoop.
http://svn.apache.org/repos/asf/hadoop/common/trunk/BUILDING.txt

For your problem, proto-buf not set in PATH. After setting, recheck proto-buffer version is 2.5

From: nagarjuna kanamarlapudi [mailto:nagarjuna.kanamarlapudi@gmail.com]
Sent: 07 January 2014 09:18
To: user@hadoop.apache.org
Subject: unable to compile hadoop source code

Hi,
I checked out the source code from https://svn.apache.org/repos/asf/hadoop/common/trunk/

I tried to compile the code with mvn.

I am compiling this on a mac os X , mavericks.  Any help is appreciated.

It failed at the following stage



[INFO] Apache Hadoop Auth Examples ....................... SUCCESS [5.017s]

[INFO] Apache Hadoop Common .............................. FAILURE [1:39.797s]

[INFO] Apache Hadoop NFS ................................. SKIPPED

[INFO] Apache Hadoop Common Project ...................... SKIPPED








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

[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.


Thanks,
Nagarjuna K


Re: unable to compile hadoop source code

Posted by Diego Gutierrez <di...@ucsp.edu.pe>.
El ene 6, 2014 10:48 PM, "nagarjuna kanamarlapudi" <
nagarjuna.kanamarlapudi@gmail.com> escribió:
>
> Hi,
> I checked out the source code from
https://svn.apache.org/repos/asf/hadoop/common/trunk/
>
> I tried to compile the code with mvn.
>
> I am compiling this on a mac os X , mavericks.  Any help is appreciated.
>
> It failed at the following stage
>
>
> [INFO] Apache Hadoop Auth Examples ....................... SUCCESS
[5.017s]
>
> [INFO] Apache Hadoop Common .............................. FAILURE
[1:39.797s]
>
> [INFO] Apache Hadoop NFS ................................. SKIPPED
>
> [INFO] Apache Hadoop Common Project ...................... SKIPPED
>
>
>
>
>
>
>
>
> [INFO]
------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.
>
>
>
> Thanks,
> Nagarjuna K
>

RE: unable to compile hadoop source code

Posted by Rohith Sharma K S <ro...@huawei.com>.
You can read Build instructions for Hadoop.
http://svn.apache.org/repos/asf/hadoop/common/trunk/BUILDING.txt

For your problem, proto-buf not set in PATH. After setting, recheck proto-buffer version is 2.5

From: nagarjuna kanamarlapudi [mailto:nagarjuna.kanamarlapudi@gmail.com]
Sent: 07 January 2014 09:18
To: user@hadoop.apache.org
Subject: unable to compile hadoop source code

Hi,
I checked out the source code from https://svn.apache.org/repos/asf/hadoop/common/trunk/

I tried to compile the code with mvn.

I am compiling this on a mac os X , mavericks.  Any help is appreciated.

It failed at the following stage



[INFO] Apache Hadoop Auth Examples ....................... SUCCESS [5.017s]

[INFO] Apache Hadoop Common .............................. FAILURE [1:39.797s]

[INFO] Apache Hadoop NFS ................................. SKIPPED

[INFO] Apache Hadoop Common Project ...................... SKIPPED








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

[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.


Thanks,
Nagarjuna K


RE: unable to compile hadoop source code

Posted by Rohith Sharma K S <ro...@huawei.com>.
You can read Build instructions for Hadoop.
http://svn.apache.org/repos/asf/hadoop/common/trunk/BUILDING.txt

For your problem, proto-buf not set in PATH. After setting, recheck proto-buffer version is 2.5

From: nagarjuna kanamarlapudi [mailto:nagarjuna.kanamarlapudi@gmail.com]
Sent: 07 January 2014 09:18
To: user@hadoop.apache.org
Subject: unable to compile hadoop source code

Hi,
I checked out the source code from https://svn.apache.org/repos/asf/hadoop/common/trunk/

I tried to compile the code with mvn.

I am compiling this on a mac os X , mavericks.  Any help is appreciated.

It failed at the following stage



[INFO] Apache Hadoop Auth Examples ....................... SUCCESS [5.017s]

[INFO] Apache Hadoop Common .............................. FAILURE [1:39.797s]

[INFO] Apache Hadoop NFS ................................. SKIPPED

[INFO] Apache Hadoop Common Project ...................... SKIPPED








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

[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.


Thanks,
Nagarjuna K


Re: unable to compile hadoop source code

Posted by Ted Yu <yu...@gmail.com>.
The error message said that the build needs protoc to be installed.

Search protobuf on the web.

Cheers


On Mon, Jan 6, 2014 at 7:47 PM, nagarjuna kanamarlapudi <
nagarjuna.kanamarlapudi@gmail.com> wrote:

> Hi,
> I checked out the source code from
> https://svn.apache.org/repos/asf/hadoop/common/trunk/
>
> I tried to compile the code with mvn.
>
> I am compiling this on a mac os X , mavericks.  Any help is appreciated.
>
> It failed at the following stage
>
>
> [INFO] Apache Hadoop Auth Examples ....................... SUCCESS [5.017s]
>
> [INFO] Apache Hadoop Common .............................. FAILURE
> [1:39.797s]
>
> [INFO] Apache Hadoop NFS ................................. SKIPPED
>
> [INFO] Apache Hadoop Common Project ...................... SKIPPED
>
>
>
>
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT: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.
>
>
> Thanks,
> Nagarjuna K
>
>