Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EDB1E200C1B for ; Tue, 14 Feb 2017 13:36:14 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E98C6160B5F; Tue, 14 Feb 2017 12:36:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3D0BC160B52 for ; Tue, 14 Feb 2017 13:36:14 +0100 (CET) Received: (qmail 83257 invoked by uid 500); 14 Feb 2017 12:36:12 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 83248 invoked by uid 500); 14 Feb 2017 12:36:12 -0000 Delivered-To: apmail-hadoop-core-commits@hadoop.apache.org Received: (qmail 83245 invoked by uid 99); 14 Feb 2017 12:36:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2017 12:36:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 483E1188004; Tue, 14 Feb 2017 12:36:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.998 X-Spam-Level: X-Spam-Status: No, score=-1.998 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id C0iaHa3EMIGB; Tue, 14 Feb 2017 12:36:10 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C55335F1B3; Tue, 14 Feb 2017 12:36:09 +0000 (UTC) Received: from moin-vm.apache.org (moin-vm.apache.org [163.172.69.106]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3D593E008E; Tue, 14 Feb 2017 12:36:06 +0000 (UTC) Received: from moin-vm.apache.org (localhost [IPv6:::1]) by moin-vm.apache.org (ASF Mail Server at moin-vm.apache.org) with ESMTP id 8FCBA80020; Tue, 14 Feb 2017 13:36:05 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Tue, 14 Feb 2017 12:36:05 -0000 Message-ID: <148707576549.1243.4925826331265264150@moin-vm.apache.org> Subject: =?utf-8?q?=5BHadoop_Wiki=5D_Update_of_=22HowToSetupYourDevelopmentEnviron?= =?utf-8?q?ment=22_by_SteveLoughran?= Auto-Submitted: auto-generated archived-at: Tue, 14 Feb 2017 12:36:15 -0000 Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for ch= ange notification. The "HowToSetupYourDevelopmentEnvironment" page has been changed by SteveLo= ughran: https://wiki.apache.org/hadoop/HowToSetupYourDevelopmentEnvironment?action= =3Ddiff&rev1=3D34&rev2=3D35 Comment: add the details on OSX install, especially protoc setup now that homebrew 1= .x doesn't support protobuf 2.5 This page describes how to get your environment setup and is IDE agnostic. = =3D Requirements =3D - * Java 6 or 7 - * Maven + * Java 7 or 8 (Branch 2) or Java 8 (trunk) + * Maven 3.3 or later * Your favorite IDE + * Protobuf 2.5.0 = =3D Setup Your Development Environment in Linux =3D = - The instructions below talk about how to get an environment setup using t= he command line to build, control source, and test. These instructions are= therefore IDE independent. Take a look at EclipseEnvironment for instruct= ions on how to configure Eclipse to build, control source, and test. If yo= u prefer ItelliJ IDEA, then take a look [[HadoopUnderIDEA| here]] + The instructions below talk about how to get an environment setup using t= he command line to build, control source, and test. These instructions are= therefore IDE independent. Take a look at EclipseEnvironment for instruct= ions on how to configure Eclipse to build, control source, and test. If yo= u prefer IntelliJ IDEA, then take a look [[HadoopUnderIDEA| here]] = - * Choose a good place to put your code. You will eventually use your so= urce code to run Hadoop, so choose wisely. For example ~/code/hadoop. + * Choose a good place to put your code. You will eventually use your so= urce code to run Hadoop, so choose wisely. For example {{{~/code/hadoop}}}. - * Get the source. This is documented in HowToContribute. Put the sourc= e in ~/code/hadoop (or whatever you chose) so that you have ~/code/hadoop/h= adoop-common + * Get the source. This is documented in HowToContribute. Put the sourc= e in {{{~/code/hadoop (or whatever you chose) so that you have {{{~/code/ha= doop/hadoop-common}}} - * cd into ''hadoop-common'', or whatever you named the directory + * cd into {{{hadoop-common}}}, or whatever you named the directory - * attempt to run ''mvn install'' + * attempt to run {{{mvn install}}} . To build without tests: {{{mvn inst= all -DskipTests}}} * If you get any strange errors (other than JUnit test failures and er= rors), then consult the ''Build Errors'' section below. * follow GettingStartedWithHadoop to learn how to run Hadoop. * If you run in to any problems, refer to the ''Runtime Errors'' below= , along with the troubleshooting document here: TroubleShooting + = + =3D Setup Your Development Environment in OSX =3D + = + = + The Linux instructions match, except that: + = + XCode is needed for the command line compiler and other tools. = + = + = + protobuf 2.5.0 needs to be built by hand, as macports and homebrew no lon= ger ship that version. + = + Follow the instructions in the building from source [[http://sleepythread= .blogspot.co.uk/2013/11/installing-protoc-25x-compiler-google.html|Installi= ng protoc 2.5.x compiler on mac]] ''but change the URL for the protobuf arc= hive to [[https://github.com/google/protobuf/releases/download/v2.5.0/proto= buf-2.5.0.tar.gz]]''. = + = + To verify that protobuf is correctly installed, the command {{{protoc --= version}}} must print out the string {{{libprotoc 2.5.0}}}. + = = =3D Run HDFS in pseudo-distributed mode from the dev tree =3D =20 --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org