Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2237518FB5 for ; Fri, 24 Apr 2015 11:50:07 +0000 (UTC) Received: (qmail 6841 invoked by uid 500); 24 Apr 2015 11:50:07 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 6811 invoked by uid 500); 24 Apr 2015 11:50:07 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 6797 invoked by uid 99); 24 Apr 2015 11:50:06 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Apr 2015 11:50:06 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id DBCBD1C0255; Fri, 24 Apr 2015 11:50:07 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3970722330686767003==" MIME-Version: 1.0 Subject: Re: Review Request 33477: Issues when log/pid dirs are customized - Hive From: "Andrew Onischuk" To: "Andrew Onischuk" , "Robert Levas" Cc: "Emil Anca" , "Ambari" Date: Fri, 24 Apr 2015 11:50:07 -0000 Message-ID: <20150424115007.2947.55171@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Andrew Onischuk" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/33477/ X-Sender: "Andrew Onischuk" References: <20150424111523.2948.55382@reviews.apache.org> In-Reply-To: <20150424111523.2948.55382@reviews.apache.org> Reply-To: "Andrew Onischuk" X-ReviewRequest-Repository: ambari --===============3970722330686767003== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/33477/#review81467 ----------------------------------------------------------- ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py Seems like you forgot to remove this one mock - Andrew Onischuk On April 24, 2015, 11:15 a.m., Emil Anca wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/33477/ > ----------------------------------------------------------- > > (Updated April 24, 2015, 11:15 a.m.) > > > Review request for Ambari, Andrew Onischuk and Robert Levas. > > > Bugs: AMBARI-10691 > https://issues.apache.org/jira/browse/AMBARI-10691 > > > Repository: ambari > > > Description > ------- > > Problem: > > I ran Ambari 1.7 to install HDP 2.2 on a VM after changing all the /var/log, /var/run, /hadoop references form defaults to instead be under some other dir. I am encountering a number of Ambari failures which I needed help on. > After the install wizard error out I also noticed: > HS2 does not stay up. From the logs I see below error > org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): Permission denied: user=hive, access=WRITE, inode="/":hdfs:hdfs:drwxr-xr-x > > Solution: > > When hive uses a custom hive.exec.scratchdir path on the Hadoop Filesystem, it automatically tries to create said path at start and it will fail to do so as it does not have the required permissions. > Ambari will create said custom folder if needed and set the appropiate permissions. > > > Diffs > ----- > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py f7266f1 > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py b93d056 > ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py ecba234 > ambari-server/src/test/python/stacks/2.0.6/configs/default.json 5e4a2d1 > ambari-server/src/test/python/stacks/2.0.6/configs/secured.json 6796061 > > Diff: https://reviews.apache.org/r/33477/diff/ > > > Testing > ------- > > mvn clean test > > [INFO] ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Ambari Main ....................................... SUCCESS [6.912s] > [INFO] Apache Ambari Project POM ......................... SUCCESS [0.116s] > [INFO] Ambari Web ........................................ SUCCESS [29.655s] > [INFO] Ambari Views ...................................... SUCCESS [1.196s] > [INFO] Ambari Admin View ................................. SUCCESS [19.873s] > [INFO] Ambari Metrics Common ............................. SUCCESS [1.116s] > [INFO] Ambari Server ..................................... SUCCESS [2:39.489s] > [INFO] Ambari Agent ...................................... SUCCESS [9.179s] > [INFO] Ambari Client ..................................... SUCCESS [0.202s] > [INFO] Ambari Python Client .............................. SUCCESS [1.121s] > [INFO] Ambari Groovy Client .............................. SUCCESS [2.917s] > [INFO] Ambari Shell ...................................... SUCCESS [0.108s] > [INFO] Ambari Python Shell ............................... SUCCESS [0.637s] > [INFO] Ambari Groovy Shell ............................... SUCCESS [1.760s] > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] ------------------------------------------------------------------------ > > > File Attachments > ---------------- > > AMBARI-10691_02.patch > https://reviews.apache.org/media/uploaded/files/2015/04/24/9277fae5-ef8b-4154-8a24-cb9a42e73e3f__AMBARI-10691_02.patch > > > Thanks, > > Emil Anca > > --===============3970722330686767003==--