Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A921AF501 for ; Mon, 8 Apr 2013 04:19:38 +0000 (UTC) Received: (qmail 87776 invoked by uid 500); 8 Apr 2013 04:19:38 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 87752 invoked by uid 500); 8 Apr 2013 04:19:38 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 87728 invoked by uid 99); 8 Apr 2013 04:19:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Apr 2013 04:19:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sandeepbaldawa@gmail.com designates 209.85.214.54 as permitted sender) Received: from [209.85.214.54] (HELO mail-bk0-f54.google.com) (209.85.214.54) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Apr 2013 04:19:31 +0000 Received: by mail-bk0-f54.google.com with SMTP id q16so2840355bkw.41 for ; Sun, 07 Apr 2013 21:19:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=XWHh15/jOBPcqTNStESrK4kUjKSoJkXoeAKXqWaK7Ms=; b=gKs0l3vNtSQ5RJDIUsCCikaQrSaOKOOFBJFfiTZ481rRNSdC2eWf+NC6WaVAFyGyMK 8BLJ5U4Isj6qdccGZxCHLV3O5GIyee2hHSISNTAhJbcMdBr6rKl4nxNuRXNQIVlkn28P UJqL8Fr4JlozpHSptaGz/FClwPOz29TTq3lx/eaXIfSWg6gTylZrELtl59IXs1yY+axn boLOIKA9T7pr71sct5xFO2Zzs/A2oXU3xYcRWONtlRUp/JpPRcXZ/iuebbpw8sfa4cNx AxKuNmRqbIjepYtQs6bBOYzS/YIySgBxeDj/H5khPojp6HqnIpGBs8F8s9+EgpMVYqqS Zkvw== MIME-Version: 1.0 X-Received: by 10.205.11.194 with SMTP id pf2mr10429277bkb.46.1365394751277; Sun, 07 Apr 2013 21:19:11 -0700 (PDT) Received: by 10.204.148.143 with HTTP; Sun, 7 Apr 2013 21:19:11 -0700 (PDT) In-Reply-To: References: Date: Sun, 7 Apr 2013 21:19:11 -0700 Message-ID: Subject: Re: Ambari Development Environment Issues/Workarounds From: Sandeep Baldawa To: ambari-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=20cf301cbe0a210ce504d9d1bd14 X-Virus-Checked: Checked by ClamAV on apache.org --20cf301cbe0a210ce504d9d1bd14 Content-Type: text/plain; charset=ISO-8859-1 Done. On Sun, Apr 7, 2013 at 8:18 PM, Mahadev Konar wrote: > Nice. > > Sandeep, > You want to open a jira for changes to the dev document? We can review > and edit the dev wiki for the same. > > thanks > mahadev > > > On Sun, Apr 7, 2013 at 12:40 AM, Sandeep Baldawa > wrote: > > Also Adding a step which I missed to document previously > > > > > > Environment:- Install Rhel 64 bit(2.6.32) > > * > > * > > *Install Pre-requisite Software* > > 1. Check if Python is installed :- "python -v" > > 2. Install maven:- yum install mvn > > 3. Install OpenJDK for development:- > > > https://access.redhat.com/knowledge/docs/en-US/JBoss_Enterprise_SOA_Platform/4.3/html/Getting_Started_Guide/appe-install_jdk_rhel.html > > 4. sh setuptools-0.6c11-py2.6.eggyum install rpm-build > > 5. yum install gcc-c++ > > 6. Install NodeJs and nm :- Download latest tar from nodejs.org and add > in > > ~/.bashrc > > 7. npm install @brunch > > 8. yum install git > > > > 9. In /home/ambari-server do a "git clone git:// > git.apache.org/ambari.git" > > Issue:- mvn -X -B -e clean install package rpm:rpm -DskipTests > > -Dpython.ver="python > >>= 2.6" => Throws a bunch of errors. Maybe tests are not building > correctly. > > Workaround:-Run mvn -X -B -e clean install package rpm:rpm => Works fine > > > > 10. yum install ambari-server/target/rpm/ > > > ambari-server/RPMS/noarch/ambari-server-1.3.0-SNAPSHOT20130406201746.noarch.rpm > > > > Issue:- postgresql is not being installed or maybe not being installed > > correctly, "service postgresql status" returns unrecognised service > > Workaround:- Manually install postgresql using the following commands > > 11. yum list post* > > 12. yum install postgresql84.x86_64 > > 13. yum install postgresql84-server.x86_64 > > 14. service postgresql initdb > > 15. service postgresql start > > > > Issue:- Running "ambari-server setup" and then then "ambari-server > start" > > gives error i.e.(the one I posted in a previous email to the dev group) > > that ambari-server user does not exist. > > Workaround:- Create new user "ambari-server" > > > > 16. ambari-server setup > > 17. ambari-server start > > 18. tail -f /var/log/ambari-server/ambari-server.log > > 19. Check the below link if it works correctly > > http://localhost.localdomain:8080/< > http://localhost.localdomain:8080/#/installer/step1> > > > > Thanks, > > Sandeep > > > > > > > > On Sun, Apr 7, 2013 at 12:33 AM, Sandeep Baldawa > > wrote: > > > >> FYI these steps are wrt the document at > >> https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development > >> > >> > >> On Sun, Apr 7, 2013 at 12:27 AM, Sandeep Baldawa < > sandeepbaldawa@gmail.com > >> > wrote: > >> > >>> Hi, > >>> > >>> Have my dev environment set and my ambari server up and running. > >>> > >>> I did the following to setup my Dev Environment from a fresh Rhel 6 64 > >>> bit. Am marking the issues *I faced issues highlighted in red and the > >>> workarounds I used highlighted in green(am not sure if these are > correct, > >>> but had the ambari-server up and running), wanted clarification on the > same > >>> from experts*. > >>> > >>> Environment:- Install Rhel 64 bit(2.6.32) > >>> * > >>> * > >>> *Install Pre-requisite Software* > >>> - Check if Python is installed :- "python -v" > >>> - Install maven:- yum install mvn > >>> - Install OpenJDK for development:- > >>> > https://access.redhat.com/knowledge/docs/en-US/JBoss_Enterprise_SOA_Platform/4.3/html/Getting_Started_Guide/appe-install_jdk_rhel.html > >>> - sh setuptools-0.6c11-py2.6.eggyum install rpm-build > >>> - yum install gcc-c++ > >>> - Install NodeJs and nm :- Download latest tar from nodejs.org and add > >>> in ~/.bashrc > >>> - npm install @brunch > >>> - yum install git > >>> > >>> - In /home/ambari-server do a "git clone git:// > git.apache.org/ambari.git" > >>> Issue:- mvn -X -B -e clean install package rpm:rpm -DskipTests > >>> -Dpython.ver="python >= 2.6" => Throws a bunch of errors. Maybe tests > >>> are not building correctly. > >>> Workaround:-Run mvn -X -B -e clean install package rpm:rpm => Works > fine > >>> > >>> Issue:- postgresql is not being installed or maybe not being installed > >>> correctly, "service postgresql status" returns unrecognised service > >>> Workaround:- Manually install postgresql using the following commands > >>> yum list post* > >>> yum install postgresql84.x86_64 > >>> yum install postgresql84-server.x86_64 > >>> service postgresql initdb > >>> service postgresql start > >>> > >>> Issue:- Running "ambari-server setup" and then then "ambari-server > >>> start" gives error i.e.(the one I posted in a previous email to the dev > >>> group) that ambari-server user does not exist. > >>> Workaround:- Create new user "ambari-server" > >>> > >>> - ambari-server setup > >>> - ambari-server start > >>> - tail -f /var/log/ambari-server/ambari-server.log > >>> - Check the below link if it works correctly > >>> http://localhost.localdomain:8080/< > http://localhost.localdomain:8080/#/installer/step1> > >>> > >>> Thanks, > >>> Sandeep > >>> > >> > >> > --20cf301cbe0a210ce504d9d1bd14--