ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juanjo Marron" <>
Subject Re: Review Request 39321: AMBARI-13415 Zookeeper service check fails after converting from root installation to non-root
Date Wed, 14 Oct 2015 20:58:17 GMT

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

(Updated Oct. 14, 2015, 8:58 p.m.)

Review request for Ambari, Andrew-Duplicate-Accct-Inactiv Konwinski and Yusaku Sako.


Modified if condition to  if [ "$?" -ne 0 ]

Bugs: AMBARI-13415

Repository: ambari


When running zookeeper service check as root user the output file created on /tmp/zkSmoke.out
belongs to root.
If the root installation (server and agent) is converted to non-root user, it fails when running
zookeeper service check because the file output file (/tmp/zkSmoke.out) already exist and
non-root user has not permissions to overwrite it.

A new rename method has been added to to add time stamp to the name

The solution porposed is to add a time stamp to the zkSmoke.out file. So the new one created
by non-root user wont override the root one and the permission wont be affected anymore.
Also different service checks run as root will create diff .out files which can be also useful
for comparison

Diffs (updated)




Zookeeper service check output file /zkSmoke.out is renamed at script level.
This change is not affecting service check tests for Zookeeper.

Tested of a fresh root installation. Run ZK service-check. Convert Ambari to non-root and
run ZK service-check again. 
Not issues, service check runs succesfully and these are the output files (as expected):

cd /tmp:
-rw-r--r--  1 root      root        6868 Oct 13 14:58 zkSmoke1444773488.out
-rw-rw-r--  1 user      user        6868 Oct 13 15:02 zkSmoke1444773766.out

HadoopQA results:
+1 core tests. The patch passed unit tests in ambari-server.
Test results:


Juanjo  Marron

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