Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2601ED1D6 for ; Thu, 30 May 2013 11:45:19 +0000 (UTC) Received: (qmail 63696 invoked by uid 500); 30 May 2013 11:45:13 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 62505 invoked by uid 500); 30 May 2013 11:45:11 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 62400 invoked by uid 99); 30 May 2013 11:45:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 May 2013 11:45:09 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of john.lilley@redpoint.net designates 206.225.164.221 as permitted sender) Received: from [206.225.164.221] (HELO hub021-nj-5.exch021.serverdata.net) (206.225.164.221) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 May 2013 11:44:46 +0000 Received: from MBX021-E3-NJ-2.exch021.domain.local ([10.240.4.78]) by HUB021-NJ-5.exch021.domain.local ([10.240.4.89]) with mapi id 14.03.0123.003; Thu, 30 May 2013 04:44:25 -0700 From: John Lilley To: "user@hadoop.apache.org" Subject: RE: Help: error in hadoop build Thread-Topic: Help: error in hadoop build Thread-Index: Ac5cmua+Kd2g2DZGT5yWRGiohL/jcQAO0GaAABU0liA= Date: Thu, 30 May 2013 11:44:24 +0000 Message-ID: <869970D71E26D7498BDAC4E1CA92226B658AE6C6@MBX021-E3-NJ-2.exch021.domain.local> References: <869970D71E26D7498BDAC4E1CA92226B658A539B@MBX021-E3-NJ-2.exch021.domain.local> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [173.160.43.61] Content-Type: multipart/alternative; boundary="_000_869970D71E26D7498BDAC4E1CA92226B658AE6C6MBX021E3NJ2exch_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_869970D71E26D7498BDAC4E1CA92226B658AE6C6MBX021E3NJ2exch_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks! It reports 2.3.0. I will update. John From: Ted Yu [mailto:yuzhihong@gmail.com] Sent: Wednesday, May 29, 2013 12:37 PM To: user@hadoop.apache.org Subject: Re: Help: error in hadoop build What's the output of: protoc --version You should be using 2.4.1 Cheers On Wed, May 29, 2013 at 11:33 AM, John Lilley > wrote: Sorry if this is a dumb question, but I'm not sure where to start. I am fo= llowing BUILDING.txt instructions for source checked out today using git: git clone git://git.apache.org/hadoop-common.git Hadoop Following build steps and adding -X for more logging: mvn compile -X But I get this error in Hadoop common [WARNING] [protoc, --java_out=3D/home/jlilley/hadoop/hadoop-common-project/= hadoop-common/target/generated-sources/java, -I/home/jlilley/hadoop/hadoop-= common-project/hadoop-common/src/main/proto, /home/jlilley/hadoop/hadoop-co= mmon-project/hadoop-common/src/main/proto/Security.proto, /home/jlilley/had= oop/hadoop-common-project/hadoop-common/src/main/proto/ZKFCProtocol.proto, = /home/jlilley/hadoop/hadoop-common-project/hadoop-common/src/main/proto/Rpc= Header.proto, /home/jlilley/hadoop/hadoop-common-project/hadoop-common/src/= main/proto/ProtobufRpcEngine.proto, /home/jlilley/hadoop/hadoop-common-proj= ect/hadoop-common/src/main/proto/IpcConnectionContext.proto, /home/jlilley/= hadoop/hadoop-common-project/hadoop-common/src/main/proto/HAServiceProtocol= .proto, /home/jlilley/hadoop/hadoop-common-project/hadoop-common/src/main/p= roto/ProtocolInfo.proto] failed with error code 1 [DEBUG] Security.proto:22:8: Option "java_generate_equals_and_hash" unknown= . [ERROR] protoc compiler error The following were installed today, this is basically on a clean CentOS6 sy= stem: # history | grep yum 81 yum install protobuf-compiler 82 yum install gcc 84 yum install gcc-c++ 85 yum install cmake 86 yum install make 87 yum install zlib 90 yum install git 93 yum install eclipse This seems to indicate that the problem may have to do with a too-recent pr= otobuf and additional settings that must be applied because of that: http://mail-archives.apache.org/mod_mbox/hadoop-mapreduce-dev/201106.mbox/%= 3C4DFA3C67.50108@gmail.com%3E Thanks John --_000_869970D71E26D7498BDAC4E1CA92226B658AE6C6MBX021E3NJ2exch_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Thanks!  It reports = 2.3.0. I will update.

John

 <= /p>

 <= /p>

From: Ted Yu [= mailto:yuzhihong@gmail.com]
Sent: Wednesday, May 29, 2013 12:37 PM
To: user@hadoop.apache.org
Subject: Re: Help: error in hadoop build

 

What's the output of:

 

protoc --version

 

You should be using 2.4.1

 

Cheers

On Wed, May 29, 2013 at 11:33 AM, John Lilley <john.lilley@red= point.net> wrote:

Sorry if this is a dumb question, but I’m not sure where to = start.  I am following BUILDING.txt instructions for source checked ou= t today using git:

git clone git://git.apache.org/hadoop-common.git Hadoop

 

Following build steps and adding -X for more logging:

mvn compile -X

 

But I get this error in Hadoop common

[WARNING] [protoc, --java_out=3D/home/jlilley/hadoop/hadoop-common= -project/hadoop-common/target/generated-sources/java, -I/home/jlilley/hadoo= p/hadoop-common-project/hadoop-common/src/main/proto, /home/jlilley/hadoop/hadoop-common-project/hadoop-common/src/main/proto/Se= curity.proto, /home/jlilley/hadoop/hadoop-common-project/hadoop-common/src/= main/proto/ZKFCProtocol.proto, /home/jlilley/hadoop/hadoop-common-project/h= adoop-common/src/main/proto/RpcHeader.proto, /home/jlilley/hadoop/hadoop-common-project/hadoop-common/src/main/proto/Pr= otobufRpcEngine.proto, /home/jlilley/hadoop/hadoop-common-project/hadoop-co= mmon/src/main/proto/IpcConnectionContext.proto, /home/jlilley/hadoop/hadoop= -common-project/hadoop-common/src/main/proto/HAServiceProtocol.proto, /home/jlilley/hadoop/hadoop-common-project/hadoop-common/src/main/proto/Pr= otocolInfo.proto] failed with error code 1

[DEBUG] Security.proto:22:8: Option "java_generate_equals_and= _hash" unknown.

[ERROR] protoc compiler error

 

The following were installed today, this is basically on a clean C= entOS6 system:

# history | grep yum

   81  yum install protobuf-compiler

   82  yum install gcc

   84  yum install gcc-c++

   85  yum install cmake

   86  yum install make

   87  yum install zlib

   90  yum install git

   93  yum install eclipse

 

This seems to indicate that the problem may have to do with a too-= recent protobuf and additional settings that must be applied because of tha= t:

http:/= /mail-archives.apache.org/mod_mbox/hadoop-mapreduce-dev/201106.mbox/%3C4DFA= 3C67.50108@gmail.com%3E

 

Thanks

John

 

--_000_869970D71E26D7498BDAC4E1CA92226B658AE6C6MBX021E3NJ2exch_--