ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitro Lisnichenko" <dlysniche...@hortonworks.com>
Subject Re: Review Request 29488: Non-root install: Ganglia Monitor Install issue
Date Tue, 30 Dec 2014 14:56:22 GMT

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

Ship it!


Ship It!

- Dmitro Lisnichenko


On Dec. 30, 2014, 2:53 p.m., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29488/
> -----------------------------------------------------------
> 
> (Updated Dec. 30, 2014, 2:53 p.m.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-8957
>     https://issues.apache.org/jira/browse/AMBARI-8957
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Ganglia Monitor installation fails in a non-root ambari agent installation
> scenario. Look at the setupGanglia.sh invocation.
> 
>     
>     
>     2014-12-29 09:54:16,305 - Execute['/usr/libexec/hdp/ganglia/setupGanglia.sh -c HDPSlaves
-o root -g hadoop'] {'path': ['/usr/libexec/hdp/ganglia', '/usr/sbin', '/sbin:/usr/local/bin',
'/bin', '/usr/bin']}
>     2014-12-29 09:54:16,325 - Error while executing command 'install':
>     Traceback (most recent call last):
>       File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 142, in execute
>         method(env)
>       File "/var/lib/ambari-agent/cache/common-services/GANGLIA/3.5.0/package/scripts/ganglia_monitor.py",
line 35, in install
>         self.configure(env)
>       File "/var/lib/ambari-agent/cache/common-services/GANGLIA/3.5.0/package/scripts/ganglia_monitor.py",
line 79, in configure
>         self.generate_slave_configs()
>       File "/var/lib/ambari-agent/cache/common-services/GANGLIA/3.5.0/package/scripts/ganglia_monitor.py",
line 131, in generate_slave_configs
>         group = params.user_group)
>       File "/var/lib/ambari-agent/cache/common-services/GANGLIA/3.5.0/package/scripts/ganglia.py",
line 96, in generate_daemon
>         "/sbin:/usr/local/bin", "/bin", "/usr/bin"]
>       File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line
148, in __init__
>         self.env.run()
>       File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
line 151, in run
>         self.run_action(resource, action)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
line 117, in run_action
>         provider_action()
>       File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
line 264, in action_run
>         raise ex
>     Fail: Execution of '/usr/libexec/hdp/ganglia/setupGanglia.sh -c HDPSlaves -o root
-g hadoop' returned 1. mkdir: cannot create directory `/var/run/ganglia': Permission denied
>     chmod: cannot access `/var/run/ganglia/hdp': No such file or directory
>     chown: changing ownership of `/etc/ganglia/hdp': Operation not permitted
>     mkdir: cannot create directory `/var/run/ganglia': Permission denied
>     mkdir: cannot create directory `/etc/ganglia/hdp/HDPSlaves': Permission denied
>     /usr/libexec/hdp/ganglia/setupGanglia.sh: line 66: /etc/ganglia/hdp/HDPSlaves/gmond.core.conf:
No such file or directory
>     /usr/libexec/hdp/ganglia/setupGanglia.sh: line 73: /etc/ganglia/hdp/HDPSlaves/conf.d/gmond.slave.conf:
No such file or directory
>     chown: cannot access `/etc/ganglia/hdp/HDPSlaves': No such file or directory
>     
> 
> 
> Diffs
> -----
> 
>   ambari-agent/src/test/python/resource_management/TestMonitorWebserverResource.py 533ecaa

>   ambari-common/src/main/python/resource_management/libraries/providers/monitor_webserver.py
3a053ab 
>   ambari-server/src/main/resources/common-services/GANGLIA/3.5.0/package/files/setupGanglia.sh
704766e 
>   ambari-server/src/main/resources/common-services/GANGLIA/3.5.0/package/scripts/functions.py
b02e688 
>   ambari-server/src/main/resources/common-services/GANGLIA/3.5.0/package/scripts/ganglia_monitor_service.py
cf7a4b1 
>   ambari-server/src/main/resources/common-services/GANGLIA/3.5.0/package/scripts/ganglia_server.py
3492fff 
>   ambari-server/src/main/resources/common-services/GANGLIA/3.5.0/package/scripts/ganglia_server_service.py
b93e3f8 
>   ambari-server/src/main/resources/common-services/GANGLIA/3.5.0/package/templates/gangliaLib.sh.j2
6c24c7f 
>   ambari-server/src/test/python/stacks/2.0.6/GANGLIA/test_ganglia_monitor.py 67b88ca

>   ambari-server/src/test/python/stacks/2.0.6/GANGLIA/test_ganglia_server.py 470fcc7 
> 
> Diff: https://reviews.apache.org/r/29488/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>


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