You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Sid Wagle <sw...@hortonworks.com> on 2014/04/11 20:11:40 UTC

Review Request 20269: WebHCat start Fail with authorization enabled

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

Review request for Ambari, Mahadev Konar and Sumit Mohanty.


Bugs: AMBARI-5447
    https://issues.apache.org/jira/browse/AMBARI-5447


Repository: ambari


Description
-------

This is a bug in our code where we run the unless command as root. This does not show up in our test environment because the we allow all users to access hadoop unless there are specific perms in place. 
If the hadoop-policy file prevents root to access hadoop at all - which is a good thing; we we fail on CopyFromLocal and WebHCat will not restart.


Diffs
-----

  ambari-agent/src/main/python/resource_management/libraries/providers/copy_from_local.py d25dd8b 
  ambari-agent/src/test/python/resource_management/TestCopyFromLocal.py 7653b24 
  ambari-server/src/main/resources/stacks/HDP/1.3.2/services/WEBHCAT/package/scripts/webhcat.py 0c75d18 
  ambari-server/src/test/python/stacks/1.3.2/HDFS/test_service_check.py 732b7e4 
  ambari-server/src/test/python/stacks/1.3.2/WEBHCAT/test_webhcat_server.py 666d693 
  ambari-server/src/test/python/stacks/2.0.6/HDFS/test_service_check.py 732b7e4 

Diff: https://reviews.apache.org/r/20269/diff/


Testing
-------

----------------------------------------------------------------------
Ran 47 tests in 0.149s

OK

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Main ....................................... SUCCESS [1.660s]
[INFO] Apache Ambari Project POM ......................... SUCCESS [0.271s]
[INFO] Ambari Web ........................................ SUCCESS [8.598s]
[INFO] Ambari Views ...................................... SUCCESS [0.995s]
[INFO] Ambari Server ..................................... SUCCESS [23.914s]
[INFO] Ambari Agent ...................................... SUCCESS [9.514s]
[INFO] Ambari Client ..................................... SUCCESS [0.537s]
[INFO] ------------------------------------------------------------------------


Thanks,

Sid Wagle


Re: Review Request 20269: WebHCat start Fail with authorization enabled

Posted by Mahadev Konar <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/20269/#review40177
-----------------------------------------------------------

Ship it!


Ship It!

- Mahadev Konar


On April 11, 2014, 6:11 p.m., Sid Wagle wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/20269/
> -----------------------------------------------------------
> 
> (Updated April 11, 2014, 6:11 p.m.)
> 
> 
> Review request for Ambari, Mahadev Konar and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-5447
>     https://issues.apache.org/jira/browse/AMBARI-5447
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> This is a bug in our code where we run the unless command as root. This does not show up in our test environment because the we allow all users to access hadoop unless there are specific perms in place. 
> If the hadoop-policy file prevents root to access hadoop at all - which is a good thing; we we fail on CopyFromLocal and WebHCat will not restart.
> 
> 
> Diffs
> -----
> 
>   ambari-agent/src/main/python/resource_management/libraries/providers/copy_from_local.py d25dd8b 
>   ambari-agent/src/test/python/resource_management/TestCopyFromLocal.py 7653b24 
>   ambari-server/src/main/resources/stacks/HDP/1.3.2/services/WEBHCAT/package/scripts/webhcat.py 0c75d18 
>   ambari-server/src/test/python/stacks/1.3.2/HDFS/test_service_check.py 732b7e4 
>   ambari-server/src/test/python/stacks/1.3.2/WEBHCAT/test_webhcat_server.py 666d693 
>   ambari-server/src/test/python/stacks/2.0.6/HDFS/test_service_check.py 732b7e4 
> 
> Diff: https://reviews.apache.org/r/20269/diff/
> 
> 
> Testing
> -------
> 
> ----------------------------------------------------------------------
> Ran 47 tests in 0.149s
> 
> OK
> 
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Ambari Main ....................................... SUCCESS [1.660s]
> [INFO] Apache Ambari Project POM ......................... SUCCESS [0.271s]
> [INFO] Ambari Web ........................................ SUCCESS [8.598s]
> [INFO] Ambari Views ...................................... SUCCESS [0.995s]
> [INFO] Ambari Server ..................................... SUCCESS [23.914s]
> [INFO] Ambari Agent ...................................... SUCCESS [9.514s]
> [INFO] Ambari Client ..................................... SUCCESS [0.537s]
> [INFO] ------------------------------------------------------------------------
> 
> 
> Thanks,
> 
> Sid Wagle
> 
>