ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Levas" <>
Subject Re: Review Request 30113: Ambari Server setup to install and copy JCE policy file in-place (handle both Default / Custom JDK scenarios)
Date Wed, 28 Jan 2015 22:09:16 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Jan. 28, 2015, 5:09 p.m.)

Review request for Ambari, Alejandro Fernandez, Dmitro Lisnichenko, and Nate Cole.


Replaced cp with shutil

Bugs: AMBARI-9228

Repository: ambari


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.

ambari-server setup-jce /path/to/downloaded/jce/policy/zip/file

1) user downloads JCE zip file
2) user runs "ambari-server setup-jce /tmp/" (for example)
3) setup-jce copies zip file into ambari-server /resources
4) setup-jce and set to name of the zip file
5) setup-jce installs JCE on ambari-server
6) inform user to restart ambari-server

Diffs (updated)

  ambari-server/sbin/ambari-server c034f5d 
  ambari-server/src/main/python/ 60edab8 
  ambari-server/src/main/python/ambari_server/ 346f8a3 
  ambari-server/src/main/python/ambari_server/ 0fbc35c 
  ambari-server/src/main/python/ambari_server/ 90b9897 
  ambari-server/src/test/python/ 0e5a732 



Manual testing to see if JCE policy was automatically installed.

Added unit test in

# Jenkins test results

#test_install_jce_manualy (TestAmbariServer.TestAmbariServer) ... ok#

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 49:44 min
[INFO] Finished at: 2015-01-21T06:35:03+00:00
[INFO] Final Memory: 43M/450M
[INFO] ------------------------------------------------------------------------


Robert Levas

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message