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 7AAFE108CC for ; Wed, 21 Jan 2015 10:58:23 +0000 (UTC) Received: (qmail 61620 invoked by uid 500); 21 Jan 2015 10:58:22 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 61484 invoked by uid 500); 21 Jan 2015 10:58:22 -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 61053 invoked by uid 99); 21 Jan 2015 10:58:22 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jan 2015 10:58:22 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 93FE01CA91D; Wed, 21 Jan 2015 10:58:18 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8989270039391853627==" MIME-Version: 1.0 Subject: Review Request 30113: Ambari Server setup to install and copy JCE policy file in-place (handle both Default / Custom JDK scenarios) From: "Robert Levas" To: "Alejandro Fernandez" , "Nate Cole" , "Dmitro Lisnichenko" Cc: "Robert Levas" , "Ambari" Date: Wed, 21 Jan 2015 10:58:18 -0000 Message-ID: <20150121105818.9401.94904@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Robert Levas" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/30113/ X-Sender: "Robert Levas" Reply-To: "Robert Levas" X-ReviewRequest-Repository: ambari --===============8989270039391853627== 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/30113/ ----------------------------------------------------------- Review request for Ambari, Alejandro Fernandez, Dmitro Lisnichenko, and Nate Cole. Bugs: AMBARI-9228 https://issues.apache.org/jira/browse/AMBARI-9228 Repository: ambari Description ------- 1) During "ambari-server setup", if user chooses JDK option 1 or 2 (where ambari automatically downloads JDK and JCE), setup should copy the JCE file to /resources and install the JCE on the ambari server. 2) Also need an "ambari-server setup-jce" command to put JCE zip in place on Ambari Server and install on Ambari Server in cases where user chose option 3 custom jdk during setup. {code} ambari-server setup-jce /path/to/downloaded/jce/policy/zip/file {code} 1) user downloads JCE zip file 2) user runs "ambari-server setup-jce /tmp/UnlimitedJCEPolicyJDK7.zip" (for example) 3) setup-jce copies zip file into ambari-server /resources 4) setup-jce ambari.properties and set jce.name= to name of the zip file 5) setup-jce installs JCE on ambari-server 6) inform user to restart ambari-server Diffs ----- ambari-server/sbin/ambari-server c034f5d ambari-server/src/main/python/ambari-server.py 7c08083 ambari-server/src/main/python/ambari_server/serverConfiguration.py 44c30ce ambari-server/src/test/python/TestAmbariServer.py 408c088 Diff: https://reviews.apache.org/r/30113/diff/ Testing ------- Manual testing to see if JCE policy was automatically installed. Added unit test in TestAmbariServer.py # Jenkins test results #test_install_jce_manualy (TestAmbariServer.TestAmbariServer) ... ok# [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 49:44 min [INFO] Finished at: 2015-01-21T06:35:03+00:00 [INFO] Final Memory: 43M/450M [INFO] ------------------------------------------------------------------------ Thanks, Robert Levas --===============8989270039391853627==--