> On Nov. 29, 2016, 10:16 a.m., Nate Cole wrote:
> > ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py, 
> > lines 165-170
> > <https://reviews.apache.org/r/53747/diff/2/?file=1572114#file1572114line165>
> >
> >     The problem with the Orchestrator doing this is that the stack script 
> > may need the password out of the command file.  This will break that 
> > mechanism when JCEKS is enabled, no?  We can't rely on all components using 
> > JCEKS correctly for access to, say, a DB.

If JCEKS is enabled for the service, it means the service is capable of using 
JCEKS correctly. Moreover, the requirement is not to put clear text passwords 
in the command file when JCEKS is enabled.


> On Nov. 29, 2016, 10:16 a.m., Nate Cole wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatHandler.java,
> >  lines 335-337
> > <https://reviews.apache.org/r/53747/diff/2/?file=1572116#file1572116line335>
> >
> >     No other command types require this?

Only execution commands require this entry. But it does not harm to put it for 
all command types.


- Nahappan


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53747/#review157285
-----------------------------------------------------------


On Nov. 29, 2016, 9:07 a.m., Nahappan Somasundaram wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/53747/
> -----------------------------------------------------------
> 
> (Updated Nov. 29, 2016, 9:07 a.m.)
> 
> 
> Review request for Ambari, Jonathan Hurley, Nate Cole, Robert Levas, and 
> Sumit Mohanty.
> 
> 
> Bugs: AMBARI-18888
>     https://issues.apache.org/jira/browse/AMBARI-18888
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> AMBARI-18888: Ambari-agent: Create configuration files with JCEKS information
> 
> 
> Diffs
> -----
> 
>   ambari-agent/pom.xml a8ed7f1dd54bc2286677bb523b2a54e25d7af2b6 
>   ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py 
> ebd350652309f3be2b5b6f54e28f99624607dba0 
>   
> ambari-server/src/main/java/org/apache/ambari/server/agent/ExecutionCommand.java
>  29737ee5a5631b33a41323d3b059ec95fc2804bf 
>   
> ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatHandler.java
>  a25b875cecb6e6b59990e665d6464eb58a1bb352 
> 
> Diff: https://reviews.apache.org/r/53747/diff/
> 
> 
> Testing
> -------
> 
> ** 1. mvn clean install -DskipTests **
> 
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Ambari Main ....................................... SUCCESS [7.433s]
> [INFO] Apache Ambari Project POM ......................... SUCCESS [0.040s]
> [INFO] Ambari Web ........................................ SUCCESS [1:11.223s]
> [INFO] Ambari Views ...................................... SUCCESS [1.128s]
> [INFO] Ambari Admin View ................................. SUCCESS [6.366s]
> [INFO] utility ........................................... SUCCESS [0.359s]
> [INFO] ambari-metrics .................................... SUCCESS [0.721s]
> [INFO] Ambari Metrics Common ............................. SUCCESS [6.490s]
> [INFO] Ambari Metrics Hadoop Sink ........................ SUCCESS [3.222s]
> [INFO] Ambari Metrics Flume Sink ......................... SUCCESS [1.221s]
> [INFO] Ambari Metrics Kafka Sink ......................... SUCCESS [1.192s]
> [INFO] Ambari Metrics Storm Sink ......................... SUCCESS [1.991s]
> [INFO] Ambari Metrics Storm Sink (Legacy) ................ SUCCESS [1.501s]
> [INFO] Ambari Metrics Collector .......................... SUCCESS [9.142s]
> [INFO] Ambari Metrics Monitor ............................ SUCCESS [2.627s]
> [INFO] Ambari Metrics Grafana ............................ SUCCESS [0.828s]
> [INFO] Ambari Metrics Assembly ........................... SUCCESS [1:13.892s]
> [INFO] Ambari Server ..................................... SUCCESS [2:28.842s]
> [INFO] Ambari Functional Tests ........................... SUCCESS [1.071s]
> [INFO] Ambari Agent ...................................... SUCCESS [25.738s]
> [INFO] Ambari Client ..................................... SUCCESS [0.050s]
> [INFO] Ambari Python Client .............................. SUCCESS [0.945s]
> [INFO] Ambari Groovy Client .............................. SUCCESS [1.984s]
> [INFO] Ambari Shell ...................................... SUCCESS [0.035s]
> [INFO] Ambari Python Shell ............................... SUCCESS [0.653s]
> [INFO] Ambari Groovy Shell ............................... SUCCESS [0.782s]
> [INFO] ambari-logsearch .................................. SUCCESS [0.299s]
> [INFO] Ambari Logsearch Appender ......................... SUCCESS [0.200s]
> [INFO] Ambari Logsearch Solr Client ...................... SUCCESS [1.170s]
> [INFO] Ambari Logsearch Portal ........................... SUCCESS [7.326s]
> [INFO] Ambari Logsearch Log Feeder ....................... SUCCESS [3.665s]
> [INFO] Ambari Logsearch Assembly ......................... SUCCESS [0.091s]
> [INFO] Ambari Logsearch Integration Test ................. SUCCESS [0.372s]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 6:23.315s
> [INFO] Finished at: Mon Nov 14 13:44:45 PST 2016
> [INFO] Final Memory: 327M/1187M
> [INFO] 
> ------------------------------------------------------------------------
> 
> ** 2. mvn test -DskipPythonTests -Dtest=*ExecutionCommand*,*HeartBeatHandler* 
> **
> 
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Picked up _JAVA_OPTIONS: -Xmx2048m -XX:MaxPermSize=512m 
> -Djava.awt.headless=true
> Running org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.124 sec - 
> in org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest
> 
> Results :
> 
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
> 
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 27.443s
> [INFO] Finished at: Mon Nov 14 15:26:42 PST 2016
> [INFO] Final Memory: 51M/544M
> [INFO] 
> ------------------------------------------------------------------------
> 
> ** 3. Manual Tests **
> 
> Copied the ambari-server JAR from the local build to a VM. Also copied 
> CustomServiceOrchestrator.py and hadoop-common and hadoop-auth libs to 
> /var/lib/ambari-agent/lib on the VM. 
> 
> Installed HIVE and started it. Verified that the command JSON did not contain 
> clear text passwords. JCEKS provider file was generated as 
> /etc/hive/hive-site.jceks.
> 
> 
> Thanks,
> 
> Nahappan Somasundaram
> 
>

Reply via email to