You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Dmitro Lisnichenko <dl...@hortonworks.com> on 2015/01/13 20:21:36 UTC
Review Request 29860: Data Node Start issue on non-root install
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29860/
-----------------------------------------------------------
Review request for Ambari and Myroslav Papirkovskyy.
Bugs: AMBARI-9110
https://issues.apache.org/jira/browse/AMBARI-9110
Repository: ambari
Description
-------
DataNode cannot start due to an Operation not permitted when trying to change the ulimit. See screenshot.
Non-Root Setup:
# vipw
root:x:0:0:root:/root:/sbin/nologin
# echo > /etc/securetty
# vi /etc/ssh/sshd_config
PermitRootLogin no
With that done I created a user named ‘ambari’ and used that during setup for the non-root user to run the Ambari Server as. I’ve setup this in /etc/sudoers:
ambari ALL=(ALL) NOPASSWD: ALL
I know this is best case for privileges, but want to get through one iteration before tightening it up.
As well as this in /etc/sudoers.d/ambari (0440)
Defaults exempt_group = ambari
Defaults !env_reset,env_delete-=PATH
Defaults:ambari !requiretty
Diffs
-----
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params.py d844ecd
ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py 655c731
ambari-server/src/test/python/stacks/2.0.6/HDFS/test_datanode.py 2fc8549
ambari-server/src/test/python/stacks/2.0.6/HDFS/test_journalnode.py a99748f
ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py 3981e33
ambari-server/src/test/python/stacks/2.0.6/HDFS/test_snamenode.py 7ba1924
ambari-server/src/test/python/stacks/2.0.6/HDFS/test_zkfc.py 9fe9d03
ambari-server/src/test/python/stacks/2.0.6/hooks/before-START/test_before_start.py 9fb41f6
Diff: https://reviews.apache.org/r/29860/diff/
Testing
-------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Views ...................................... SUCCESS [2.686s]
[INFO] Ambari Server ..................................... SUCCESS [28.854s]
[INFO] Ambari Agent ...................................... SUCCESS [15.731s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47.995s
[INFO] Finished at: Tue Jan 13 22:21:04 FET 2015
[INFO] Final Memory: 40M/405M
[INFO] ------------------------------------------------------------------------
Thanks,
Dmitro Lisnichenko
Re: Review Request 29860: Data Node Start issue on non-root install
Posted by Myroslav Papirkovskyy <mp...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29860/#review67917
-----------------------------------------------------------
Ship it!
Ship It!
- Myroslav Papirkovskyy
On Січ. 13, 2015, 9:21 після полудня, Dmitro Lisnichenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29860/
> -----------------------------------------------------------
>
> (Updated Січ. 13, 2015, 9:21 після полудня)
>
>
> Review request for Ambari, Alejandro Fernandez and Myroslav Papirkovskyy.
>
>
> Bugs: AMBARI-9110
> https://issues.apache.org/jira/browse/AMBARI-9110
>
>
> Repository: ambari
>
>
> Description
> -------
>
> DataNode cannot start due to an Operation not permitted when trying to change the ulimit. See screenshot.
> Non-Root Setup:
>
> # vipw
> root:x:0:0:root:/root:/sbin/nologin
>
> # echo > /etc/securetty
>
> # vi /etc/ssh/sshd_config
> PermitRootLogin no
> With that done I created a user named ‘ambari’ and used that during setup for the non-root user to run the Ambari Server as. I’ve setup this in /etc/sudoers:
>
> ambari ALL=(ALL) NOPASSWD: ALL
> I know this is best case for privileges, but want to get through one iteration before tightening it up.
> As well as this in /etc/sudoers.d/ambari (0440)
>
> Defaults exempt_group = ambari
> Defaults !env_reset,env_delete-=PATH
> Defaults:ambari !requiretty
>
>
> Diffs
> -----
>
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params.py d844ecd
> ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py 655c731
> ambari-server/src/test/python/stacks/2.0.6/HDFS/test_datanode.py 2fc8549
> ambari-server/src/test/python/stacks/2.0.6/HDFS/test_journalnode.py a99748f
> ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py 3981e33
> ambari-server/src/test/python/stacks/2.0.6/HDFS/test_snamenode.py 7ba1924
> ambari-server/src/test/python/stacks/2.0.6/HDFS/test_zkfc.py 9fe9d03
> ambari-server/src/test/python/stacks/2.0.6/hooks/before-START/test_before_start.py 9fb41f6
>
> Diff: https://reviews.apache.org/r/29860/diff/
>
>
> Testing
> -------
>
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Ambari Views ...................................... SUCCESS [2.686s]
> [INFO] Ambari Server ..................................... SUCCESS [28.854s]
> [INFO] Ambari Agent ...................................... SUCCESS [15.731s]
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 47.995s
> [INFO] Finished at: Tue Jan 13 22:21:04 FET 2015
> [INFO] Final Memory: 40M/405M
> [INFO] ------------------------------------------------------------------------
>
>
> Thanks,
>
> Dmitro Lisnichenko
>
>
Re: Review Request 29860: Data Node Start issue on non-root install
Posted by Dmitro Lisnichenko <dl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29860/
-----------------------------------------------------------
(Updated Jan. 13, 2015, 7:21 p.m.)
Review request for Ambari, Alejandro Fernandez and Myroslav Papirkovskyy.
Bugs: AMBARI-9110
https://issues.apache.org/jira/browse/AMBARI-9110
Repository: ambari
Description
-------
DataNode cannot start due to an Operation not permitted when trying to change the ulimit. See screenshot.
Non-Root Setup:
# vipw
root:x:0:0:root:/root:/sbin/nologin
# echo > /etc/securetty
# vi /etc/ssh/sshd_config
PermitRootLogin no
With that done I created a user named ‘ambari’ and used that during setup for the non-root user to run the Ambari Server as. I’ve setup this in /etc/sudoers:
ambari ALL=(ALL) NOPASSWD: ALL
I know this is best case for privileges, but want to get through one iteration before tightening it up.
As well as this in /etc/sudoers.d/ambari (0440)
Defaults exempt_group = ambari
Defaults !env_reset,env_delete-=PATH
Defaults:ambari !requiretty
Diffs
-----
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params.py d844ecd
ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py 655c731
ambari-server/src/test/python/stacks/2.0.6/HDFS/test_datanode.py 2fc8549
ambari-server/src/test/python/stacks/2.0.6/HDFS/test_journalnode.py a99748f
ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py 3981e33
ambari-server/src/test/python/stacks/2.0.6/HDFS/test_snamenode.py 7ba1924
ambari-server/src/test/python/stacks/2.0.6/HDFS/test_zkfc.py 9fe9d03
ambari-server/src/test/python/stacks/2.0.6/hooks/before-START/test_before_start.py 9fb41f6
Diff: https://reviews.apache.org/r/29860/diff/
Testing
-------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Views ...................................... SUCCESS [2.686s]
[INFO] Ambari Server ..................................... SUCCESS [28.854s]
[INFO] Ambari Agent ...................................... SUCCESS [15.731s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47.995s
[INFO] Finished at: Tue Jan 13 22:21:04 FET 2015
[INFO] Final Memory: 40M/405M
[INFO] ------------------------------------------------------------------------
Thanks,
Dmitro Lisnichenko