timyuer commented on PR #1030:
URL: https://github.com/apache/bigtop/pull/1030#issuecomment-1264861240

   Test for Zookeeper in Ambari trunk
   
![Zookeeper_select01_20221003104359](https://user-images.githubusercontent.com/16263438/193492675-fb0fda56-e19e-4fb4-9723-95ebd28c7a51.png)
   
![Zookeeper_select02_20221003104359](https://user-images.githubusercontent.com/16263438/193492691-bb4630ab-6212-489c-8f4e-229842db8858.png)
   
   ```bash
   2022-10-02 08:33:21,869 - Stack Feature Version Info: Cluster Stack=3.2.0, 
Command Stack=None, Command Version=None -> 3.2.0
   2022-10-02 08:33:21,871 - Group['hadoop'] {}
   2022-10-02 08:33:21,873 - Adding group Group['hadoop']
   2022-10-02 08:33:21,887 - User['zookeeper'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
   2022-10-02 08:33:21,891 - Modifying user zookeeper
   2022-10-02 08:33:21,910 - User['ambari-qa'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
   2022-10-02 08:33:21,910 - Adding user User['ambari-qa']
   2022-10-02 08:33:21,935 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] 
{'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
   2022-10-02 08:33:21,937 - Writing 
File['/var/lib/ambari-agent/tmp/changeUid.sh'] because it doesn't exist
   2022-10-02 08:33:21,938 - Changing permission for /tmp/tmp1664699601.94_676 
from 644 to 555
   2022-10-02 08:33:21,938 - Moving /tmp/tmp1664699601.94_676 to 
/var/lib/ambari-agent/tmp/changeUid.sh
   2022-10-02 08:33:21,945 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh 
ambari-qa 
/tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa
 0'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
   2022-10-02 08:33:22,003 - 
Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': None, 
'group': 'hadoop', 'mode': 01777}
   2022-10-02 08:33:22,004 - Creating directory 
Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] since it doesn't 
exist.
   2022-10-02 08:33:22,004 - Changing group for 
/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir from 0 to hadoop
   2022-10-02 08:33:22,004 - Changing permission for 
/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir from 755 to 1777
   2022-10-02 08:33:22,021 - Repository['BIGTOP-3.2.0-repo-1'] {'base_url': 
'https://bigtop-snapshot.s3.amazonaws.com/centos-7/$basearch', 'action': 
['prepare'], 'components': ['bigtop', 'main'], 'repo_template': 
'[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list 
%}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif 
%}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'ambari-bigtop-1', 
'mirror_list': None}
   2022-10-02 08:33:22,028 - Repository[None] {'action': ['create']}
   2022-10-02 08:33:22,030 - File['/tmp/tmpq5cB7D'] {'owner': 'root', 
'content': 
'[BIGTOP-3.2.0-repo-1]\nname=BIGTOP-3.2.0-repo-1\nbaseurl=https://bigtop-snapshot.s3.amazonaws.com/centos-7/$basearch\n\npath=/\nenabled=1\ngpgcheck=0'}
   2022-10-02 08:33:22,031 - Writing File['/tmp/tmpq5cB7D'] because contents 
don't match
   2022-10-02 08:33:22,031 - Moving /tmp/tmp1664699602.03_72 to /tmp/tmpq5cB7D
   2022-10-02 08:33:22,036 - Rewriting /etc/yum.repos.d/ambari-bigtop-1.repo 
since it has changed.
   2022-10-02 08:33:22,037 - File['/etc/yum.repos.d/ambari-bigtop-1.repo'] 
{'content': StaticFile('/tmp/tmpq5cB7D')}
   2022-10-02 08:33:22,037 - Writing 
File['/etc/yum.repos.d/ambari-bigtop-1.repo'] because it doesn't exist
   2022-10-02 08:33:22,038 - Moving /tmp/tmp1664699602.04_908 to 
/etc/yum.repos.d/ambari-bigtop-1.repo
   2022-10-02 08:33:22,045 - Package['unzip'] {'retry_on_repo_unavailability': 
False, 'retry_count': 5}
   2022-10-02 08:33:22,304 - Installing package unzip ('/usr/bin/yum -y install 
unzip')
   2022-10-02 08:33:39,238 - Package['curl'] {'retry_on_repo_unavailability': 
False, 'retry_count': 5}
   2022-10-02 08:33:39,252 - Skipping installation of existing package curl
   2022-10-02 08:33:39,253 - Package['bigtop-select'] 
{'retry_on_repo_unavailability': False, 'retry_count': 5}
   2022-10-02 08:33:39,263 - Skipping installation of existing package 
bigtop-select
   2022-10-02 08:33:39,335 - call[('ambari-python-wrap', 
'/usr/lib/bigtop-select/bigtop-select', 'versions')] {}
   2022-10-02 08:33:39,364 - call returned (0, '3.2.0')
   2022-10-02 08:33:39,364 - The 'zookeeper-client' component did not advertise 
a version. This may indicate a problem with the component packaging. However, 
the stack-select tool was able to report a single version installed (3.2.0). 
This is the version that will be reported.
   2022-10-02 08:33:39,559 - Package['zookeeper'] 
{'retry_on_repo_unavailability': False, 'retry_count': 5}
   2022-10-02 08:33:39,663 - Skipping installation of existing package zookeeper
   2022-10-02 08:33:39,703 - Execute[('ambari-python-wrap', 
'/usr/lib/bigtop-select/bigtop-select', 'set', 'zookeeper-client', '3.2.0')] 
{'sudo': True}
   2022-10-02 08:33:39,743 - 
Directory['/usr/bigtop/current/zookeeper-client/conf'] {'owner': 'zookeeper', 
'create_parents': True, 'group': 'hadoop'}
   2022-10-02 08:33:39,743 - Changing owner for 
/usr/bigtop/current/zookeeper-client/conf from 0 to zookeeper
   2022-10-02 08:33:39,744 - Changing group for 
/usr/bigtop/current/zookeeper-client/conf from 0 to hadoop
   2022-10-02 08:33:39,749 - 
File['/usr/bigtop/current/zookeeper-client/conf/zookeeper-env.sh'] {'owner': 
'zookeeper', 'content': InlineTemplate(...), 'group': 'hadoop'}
   2022-10-02 08:33:39,750 - Writing 
File['/usr/bigtop/current/zookeeper-client/conf/zookeeper-env.sh'] because it 
doesn't exist
   2022-10-02 08:33:39,750 - Changing owner for /tmp/tmp1664699619.75_553 from 
0 to zookeeper
   2022-10-02 08:33:39,751 - Changing group for /tmp/tmp1664699619.75_553 from 
0 to hadoop
   2022-10-02 08:33:39,751 - Moving /tmp/tmp1664699619.75_553 to 
/usr/bigtop/current/zookeeper-client/conf/zookeeper-env.sh
   2022-10-02 08:33:39,764 - 
File['/usr/bigtop/current/zookeeper-client/conf/zoo.cfg'] {'owner': 
'zookeeper', 'content': Template('zoo.cfg.j2'), 'group': 'hadoop', 'mode': None}
   2022-10-02 08:33:39,764 - Writing 
File['/usr/bigtop/current/zookeeper-client/conf/zoo.cfg'] because contents 
don't match
   2022-10-02 08:33:39,765 - Changing owner for /tmp/tmp1664699619.76_290 from 
0 to zookeeper
   2022-10-02 08:33:39,765 - Changing group for /tmp/tmp1664699619.76_290 from 
0 to hadoop
   2022-10-02 08:33:39,765 - Moving /tmp/tmp1664699619.76_290 to 
/usr/bigtop/current/zookeeper-client/conf/zoo.cfg
   2022-10-02 08:33:39,773 - 
File['/usr/bigtop/current/zookeeper-client/conf/configuration.xsl'] {'owner': 
'zookeeper', 'content': Template('configuration.xsl.j2'), 'group': 'hadoop', 
'mode': None}
   2022-10-02 08:33:39,774 - Writing 
File['/usr/bigtop/current/zookeeper-client/conf/configuration.xsl'] because 
contents don't match
   2022-10-02 08:33:39,775 - Changing owner for /tmp/tmp1664699619.77_620 from 
0 to zookeeper
   2022-10-02 08:33:39,775 - Changing group for /tmp/tmp1664699619.77_620 from 
0 to hadoop
   2022-10-02 08:33:39,775 - Moving /tmp/tmp1664699619.77_620 to 
/usr/bigtop/current/zookeeper-client/conf/configuration.xsl
   2022-10-02 08:33:39,783 - Directory['/var/run/zookeeper'] {'owner': 
'zookeeper', 'create_parents': True, 'group': 'hadoop', 'mode': 0755}
   2022-10-02 08:33:39,784 - Changing group for /var/run/zookeeper from 995 to 
hadoop
   2022-10-02 08:33:39,784 - Directory['/var/log/zookeeper'] {'owner': 
'zookeeper', 'create_parents': True, 'group': 'hadoop', 'mode': 0755}
   2022-10-02 08:33:39,784 - Changing group for /var/log/zookeeper from 995 to 
hadoop
   2022-10-02 08:33:39,785 - Directory['/hadoop/zookeeper'] {'owner': 
'zookeeper', 'create_parents': True, 'group': 'hadoop', 'mode': 0755, 
'cd_access': 'a'}
   2022-10-02 08:33:39,785 - Creating directory Directory['/hadoop/zookeeper'] 
since it doesn't exist.
   2022-10-02 08:33:39,785 - Changing owner for /hadoop/zookeeper from 0 to 
zookeeper
   2022-10-02 08:33:39,785 - Changing group for /hadoop/zookeeper from 0 to 
hadoop
   2022-10-02 08:33:39,789 - 
File['/usr/bigtop/current/zookeeper-client/conf/log4j.properties'] {'content': 
InlineTemplate(...), 'owner': 'zookeeper', 'group': 'hadoop', 'mode': 0644}
   2022-10-02 08:33:39,789 - Writing 
File['/usr/bigtop/current/zookeeper-client/conf/log4j.properties'] because 
contents don't match
   2022-10-02 08:33:39,789 - Changing owner for /tmp/tmp1664699619.79_688 from 
0 to zookeeper
   2022-10-02 08:33:39,790 - Changing group for /tmp/tmp1664699619.79_688 from 
0 to hadoop
   2022-10-02 08:33:39,790 - Moving /tmp/tmp1664699619.79_688 to 
/usr/bigtop/current/zookeeper-client/conf/log4j.properties
   2022-10-02 08:33:39,796 - 
File['/usr/bigtop/current/zookeeper-client/conf/zoo_sample.cfg'] {'owner': 
'zookeeper', 'group': 'hadoop'}
   2022-10-02 08:33:39,796 - Changing owner for 
/usr/bigtop/current/zookeeper-client/conf/zoo_sample.cfg from 0 to zookeeper
   2022-10-02 08:33:39,797 - Changing group for 
/usr/bigtop/current/zookeeper-client/conf/zoo_sample.cfg from 0 to hadoop
   2022-10-02 08:33:40,081 - Execute[('ambari-python-wrap', 
'/usr/lib/bigtop-select/bigtop-select', 'set', 'zookeeper-client', '3.2.0')] 
{'sudo': True}
   2022-10-02 08:33:40,124 - After ('ambari-python-wrap', 
'/usr/lib/bigtop-select/bigtop-select', 'set', 'zookeeper-client', '3.2.0'), 
reloaded module params
   2022-10-02 08:33:40,125 - FS Type: 
   2022-10-02 08:33:40,125 - Parameter hadoop_conf_dir is missing or directory 
does not exist. This is expected if this host does not have any Hadoop 
components.
   2022-10-02 08:33:40,126 - 
Directory['/usr/lib/ambari-logsearch-logfeeder/conf'] {'create_parents': True, 
'mode': 0755, 'cd_access': 'a'}
   2022-10-02 08:33:40,126 - Creating directory 
Directory['/usr/lib/ambari-logsearch-logfeeder/conf'] since it doesn't exist.
   2022-10-02 08:33:40,133 - 
File['/usr/lib/ambari-logsearch-logfeeder/conf/input.config-zookeeper.json'] 
{'content': 
Template('/var/lib/ambari-agent/cache/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/templates/input.config-zookeeper.json.j2')}
   2022-10-02 08:33:40,133 - Writing 
File['/usr/lib/ambari-logsearch-logfeeder/conf/input.config-zookeeper.json'] 
because it doesn't exist
   2022-10-02 08:33:40,134 - Moving /tmp/tmp1664699620.13_263 to 
/usr/lib/ambari-logsearch-logfeeder/conf/input.config-zookeeper.json
   
   Command completed successfully!
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to