You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@ambari.apache.org by Laszlo Puskas <lp...@hortonworks.com> on 2017/01/26 16:34:46 UTC

Review Request 55987: Post user creation hook script creates user home dirs as the configured hdfs_user

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

Review request for Ambari, Attila Doroszlai, Sandor Magyari, and Sebastian Toader.


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


Repository: ambari


Description
-------

The post user creation hook had wired the **hdfs** user, user homes were created in the name of this user.
In case of customized clusters this didn;t work due to permssion issues.

The solution is to get the proper hdfs_user from the configureation and access the dfs as this user.


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookParams.java 6970dcc 
  ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookService.java c4ff1e4 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java fe6bf35 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerAction.java e713128 
  ambari-server/src/main/resources/scripts/post-user-creation-hook.sh ee8d2d1 
  ambari-server/src/test/java/org/apache/ambari/server/hooks/users/UserHookServiceTest.java 293b22a 

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


Testing
-------

Unit tests running.
Manual testing underway


Thanks,

Laszlo Puskas


Re: Review Request 55987: Post user creation hook script creates user home dirs as the configured hdfs_user

Posted by Sebastian Toader <st...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55987/#review163282
-----------------------------------------------------------


Ship it!




Ship It!

- Sebastian Toader


On Jan. 27, 2017, 5:12 p.m., Laszlo Puskas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/55987/
> -----------------------------------------------------------
> 
> (Updated Jan. 27, 2017, 5:12 p.m.)
> 
> 
> Review request for Ambari, Attila Doroszlai, Sandor Magyari, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-19726
>     https://issues.apache.org/jira/browse/AMBARI-19726
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The post user creation hook had wired the **hdfs** user, user homes were created in the name of this user.
> In case of customized clusters this didn;t work due to permssion issues.
> 
> The solution is to get the proper hdfs_user from the configureation and access the dfs as this user.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookParams.java 6970dcc 
>   ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookService.java c4ff1e4 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java fe6bf35 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerAction.java e713128 
>   ambari-server/src/main/resources/scripts/post-user-creation-hook.sh ee8d2d1 
>   ambari-server/src/test/java/org/apache/ambari/server/hooks/users/UserHookServiceTest.java 293b22a 
>   ambari-server/src/test/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerActionTest.java f5cdf48 
> 
> Diff: https://reviews.apache.org/r/55987/diff/
> 
> 
> Testing
> -------
> 
> Unit tests succeeded.
> 
> Manual testing underway
> 
> 
> Thanks,
> 
> Laszlo Puskas
> 
>


Re: Review Request 55987: Post user creation hook script creates user home dirs as the configured hdfs_user

Posted by Laszlo Puskas <lp...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55987/
-----------------------------------------------------------

(Updated Jan. 29, 2017, 9:13 a.m.)


Review request for Ambari, Attila Doroszlai, Sandor Magyari, and Sebastian Toader.


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


Repository: ambari


Description
-------

The post user creation hook had wired the **hdfs** user, user homes were created in the name of this user.
In case of customized clusters this didn;t work due to permssion issues.

The solution is to get the proper hdfs_user from the configureation and access the dfs as this user.


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookParams.java 6970dcc 
  ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookService.java c4ff1e4 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java fe6bf35 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerAction.java e713128 
  ambari-server/src/main/resources/scripts/post-user-creation-hook.sh ee8d2d1 
  ambari-server/src/test/java/org/apache/ambari/server/hooks/users/UserHookServiceTest.java 293b22a 
  ambari-server/src/test/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerActionTest.java f5cdf48 

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


Testing (updated)
-------

Unit tests succeeded.

Manually tested changes.


Thanks,

Laszlo Puskas


Re: Review Request 55987: Post user creation hook script creates user home dirs as the configured hdfs_user

Posted by Laszlo Puskas <lp...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55987/
-----------------------------------------------------------

(Updated Jan. 27, 2017, 4:12 p.m.)


Review request for Ambari, Attila Doroszlai, Sandor Magyari, and Sebastian Toader.


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


Repository: ambari


Description
-------

The post user creation hook had wired the **hdfs** user, user homes were created in the name of this user.
In case of customized clusters this didn;t work due to permssion issues.

The solution is to get the proper hdfs_user from the configureation and access the dfs as this user.


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookParams.java 6970dcc 
  ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookService.java c4ff1e4 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java fe6bf35 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerAction.java e713128 
  ambari-server/src/main/resources/scripts/post-user-creation-hook.sh ee8d2d1 
  ambari-server/src/test/java/org/apache/ambari/server/hooks/users/UserHookServiceTest.java 293b22a 
  ambari-server/src/test/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerActionTest.java f5cdf48 

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


Testing (updated)
-------

Unit tests succeeded.

Manual testing underway


Thanks,

Laszlo Puskas


Re: Review Request 55987: Post user creation hook script creates user home dirs as the configured hdfs_user

Posted by Laszlo Puskas <lp...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55987/
-----------------------------------------------------------

(Updated Jan. 27, 2017, 4:12 p.m.)


Review request for Ambari, Attila Doroszlai, Sandor Magyari, and Sebastian Toader.


Changes
-------

Unused import ...


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


Repository: ambari


Description
-------

The post user creation hook had wired the **hdfs** user, user homes were created in the name of this user.
In case of customized clusters this didn;t work due to permssion issues.

The solution is to get the proper hdfs_user from the configureation and access the dfs as this user.


Diffs (updated)
-----

  ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookParams.java 6970dcc 
  ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookService.java c4ff1e4 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java fe6bf35 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerAction.java e713128 
  ambari-server/src/main/resources/scripts/post-user-creation-hook.sh ee8d2d1 
  ambari-server/src/test/java/org/apache/ambari/server/hooks/users/UserHookServiceTest.java 293b22a 
  ambari-server/src/test/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerActionTest.java f5cdf48 

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


Testing
-------

Unit tests running.
Manual testing underway


Thanks,

Laszlo Puskas


Re: Review Request 55987: Post user creation hook script creates user home dirs as the configured hdfs_user

Posted by Attila Doroszlai <ad...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55987/#review163280
-----------------------------------------------------------


Fix it, then Ship it!





ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java (line 27)
<https://reviews.apache.org/r/55987/#comment234710>

    Unused import - java.nio.file.attribute.PosixFilePermissions.


- Attila Doroszlai


On Jan. 27, 2017, 5:02 p.m., Laszlo Puskas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/55987/
> -----------------------------------------------------------
> 
> (Updated Jan. 27, 2017, 5:02 p.m.)
> 
> 
> Review request for Ambari, Attila Doroszlai, Sandor Magyari, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-19726
>     https://issues.apache.org/jira/browse/AMBARI-19726
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The post user creation hook had wired the **hdfs** user, user homes were created in the name of this user.
> In case of customized clusters this didn;t work due to permssion issues.
> 
> The solution is to get the proper hdfs_user from the configureation and access the dfs as this user.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookParams.java 6970dcc 
>   ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookService.java c4ff1e4 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java fe6bf35 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerAction.java e713128 
>   ambari-server/src/main/resources/scripts/post-user-creation-hook.sh ee8d2d1 
>   ambari-server/src/test/java/org/apache/ambari/server/hooks/users/UserHookServiceTest.java 293b22a 
>   ambari-server/src/test/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerActionTest.java f5cdf48 
> 
> Diff: https://reviews.apache.org/r/55987/diff/
> 
> 
> Testing
> -------
> 
> Unit tests running.
> Manual testing underway
> 
> 
> Thanks,
> 
> Laszlo Puskas
> 
>


Re: Review Request 55987: Post user creation hook script creates user home dirs as the configured hdfs_user

Posted by Laszlo Puskas <lp...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55987/
-----------------------------------------------------------

(Updated Jan. 27, 2017, 4:02 p.m.)


Review request for Ambari, Attila Doroszlai, Sandor Magyari, and Sebastian Toader.


Changes
-------

Fixed file permissions (permissions set after creation, thus umask settings don't change them)


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


Repository: ambari


Description
-------

The post user creation hook had wired the **hdfs** user, user homes were created in the name of this user.
In case of customized clusters this didn;t work due to permssion issues.

The solution is to get the proper hdfs_user from the configureation and access the dfs as this user.


Diffs (updated)
-----

  ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookParams.java 6970dcc 
  ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookService.java c4ff1e4 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java fe6bf35 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerAction.java e713128 
  ambari-server/src/main/resources/scripts/post-user-creation-hook.sh ee8d2d1 
  ambari-server/src/test/java/org/apache/ambari/server/hooks/users/UserHookServiceTest.java 293b22a 
  ambari-server/src/test/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerActionTest.java f5cdf48 

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


Testing
-------

Unit tests running.
Manual testing underway


Thanks,

Laszlo Puskas


Re: Review Request 55987: Post user creation hook script creates user home dirs as the configured hdfs_user

Posted by Laszlo Puskas <lp...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55987/
-----------------------------------------------------------

(Updated Jan. 27, 2017, 2:59 p.m.)


Review request for Ambari, Attila Doroszlai, Sandor Magyari, and Sebastian Toader.


Changes
-------

Fixed hook script, removed uniused imports.


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


Repository: ambari


Description
-------

The post user creation hook had wired the **hdfs** user, user homes were created in the name of this user.
In case of customized clusters this didn;t work due to permssion issues.

The solution is to get the proper hdfs_user from the configureation and access the dfs as this user.


Diffs (updated)
-----

  ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookParams.java 6970dcc 
  ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookService.java c4ff1e4 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java fe6bf35 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerAction.java e713128 
  ambari-server/src/main/resources/scripts/post-user-creation-hook.sh ee8d2d1 
  ambari-server/src/test/java/org/apache/ambari/server/hooks/users/UserHookServiceTest.java 293b22a 
  ambari-server/src/test/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerActionTest.java f5cdf48 

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


Testing
-------

Unit tests running.
Manual testing underway


Thanks,

Laszlo Puskas


Re: Review Request 55987: Post user creation hook script creates user home dirs as the configured hdfs_user

Posted by Attila Doroszlai <ad...@hortonworks.com>.

> On Jan. 26, 2017, 9:17 p.m., Attila Doroszlai wrote:
> > ambari-server/src/main/resources/scripts/post-user-creation-hook.sh, line 34
> > <https://reviews.apache.org/r/55987/diff/2/?file=1616602#file1616602line34>
> >
> >     I think using `$3` would be better, unless this one will remain the last one if new parameters are introduced in the future.
> 
> Laszlo Puskas wrote:
>     As a convention (imposed by myself :) ) the uer should be always the last parameter. The number of parameters may change depending on the security type, so having a wired value is a bit problematic.

In that case it's fine.


- Attila


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


On Jan. 26, 2017, 6:03 p.m., Laszlo Puskas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/55987/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2017, 6:03 p.m.)
> 
> 
> Review request for Ambari, Attila Doroszlai, Sandor Magyari, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-19726
>     https://issues.apache.org/jira/browse/AMBARI-19726
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The post user creation hook had wired the **hdfs** user, user homes were created in the name of this user.
> In case of customized clusters this didn;t work due to permssion issues.
> 
> The solution is to get the proper hdfs_user from the configureation and access the dfs as this user.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookParams.java 6970dcc 
>   ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookService.java c4ff1e4 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java fe6bf35 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerAction.java e713128 
>   ambari-server/src/main/resources/scripts/post-user-creation-hook.sh ee8d2d1 
>   ambari-server/src/test/java/org/apache/ambari/server/hooks/users/UserHookServiceTest.java 293b22a 
>   ambari-server/src/test/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerActionTest.java f5cdf48 
> 
> Diff: https://reviews.apache.org/r/55987/diff/
> 
> 
> Testing
> -------
> 
> Unit tests running.
> Manual testing underway
> 
> 
> Thanks,
> 
> Laszlo Puskas
> 
>


Re: Review Request 55987: Post user creation hook script creates user home dirs as the configured hdfs_user

Posted by Laszlo Puskas <lp...@hortonworks.com>.

> On Jan. 26, 2017, 8:17 p.m., Attila Doroszlai wrote:
> > ambari-server/src/main/resources/scripts/post-user-creation-hook.sh, line 34
> > <https://reviews.apache.org/r/55987/diff/2/?file=1616602#file1616602line34>
> >
> >     I think using `$3` would be better, unless this one will remain the last one if new parameters are introduced in the future.

As a convention (imposed by myself :) ) the uer should be always the last parameter. The number of parameters may change depending on the security type, so having a wired value is a bit problematic.


- Laszlo


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


On Jan. 26, 2017, 5:03 p.m., Laszlo Puskas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/55987/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2017, 5:03 p.m.)
> 
> 
> Review request for Ambari, Attila Doroszlai, Sandor Magyari, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-19726
>     https://issues.apache.org/jira/browse/AMBARI-19726
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The post user creation hook had wired the **hdfs** user, user homes were created in the name of this user.
> In case of customized clusters this didn;t work due to permssion issues.
> 
> The solution is to get the proper hdfs_user from the configureation and access the dfs as this user.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookParams.java 6970dcc 
>   ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookService.java c4ff1e4 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java fe6bf35 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerAction.java e713128 
>   ambari-server/src/main/resources/scripts/post-user-creation-hook.sh ee8d2d1 
>   ambari-server/src/test/java/org/apache/ambari/server/hooks/users/UserHookServiceTest.java 293b22a 
>   ambari-server/src/test/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerActionTest.java f5cdf48 
> 
> Diff: https://reviews.apache.org/r/55987/diff/
> 
> 
> Testing
> -------
> 
> Unit tests running.
> Manual testing underway
> 
> 
> Thanks,
> 
> Laszlo Puskas
> 
>


Re: Review Request 55987: Post user creation hook script creates user home dirs as the configured hdfs_user

Posted by Attila Doroszlai <ad...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55987/#review163162
-----------------------------------------------------------


Fix it, then Ship it!





ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java (line 21)
<https://reviews.apache.org/r/55987/#comment234593>

    Unused import - java.io.File



ambari-server/src/main/resources/scripts/post-user-creation-hook.sh (line 34)
<https://reviews.apache.org/r/55987/#comment234594>

    I think using `$3` would be better, unless this one will remain the last one if new parameters are introduced in the future.


- Attila Doroszlai


On Jan. 26, 2017, 6:03 p.m., Laszlo Puskas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/55987/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2017, 6:03 p.m.)
> 
> 
> Review request for Ambari, Attila Doroszlai, Sandor Magyari, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-19726
>     https://issues.apache.org/jira/browse/AMBARI-19726
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The post user creation hook had wired the **hdfs** user, user homes were created in the name of this user.
> In case of customized clusters this didn;t work due to permssion issues.
> 
> The solution is to get the proper hdfs_user from the configureation and access the dfs as this user.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookParams.java 6970dcc 
>   ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookService.java c4ff1e4 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java fe6bf35 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerAction.java e713128 
>   ambari-server/src/main/resources/scripts/post-user-creation-hook.sh ee8d2d1 
>   ambari-server/src/test/java/org/apache/ambari/server/hooks/users/UserHookServiceTest.java 293b22a 
>   ambari-server/src/test/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerActionTest.java f5cdf48 
> 
> Diff: https://reviews.apache.org/r/55987/diff/
> 
> 
> Testing
> -------
> 
> Unit tests running.
> Manual testing underway
> 
> 
> Thanks,
> 
> Laszlo Puskas
> 
>


Re: Review Request 55987: Post user creation hook script creates user home dirs as the configured hdfs_user

Posted by Sebastian Toader <st...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55987/#review163142
-----------------------------------------------------------


Ship it!




Ship It!

- Sebastian Toader


On Jan. 26, 2017, 6:03 p.m., Laszlo Puskas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/55987/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2017, 6:03 p.m.)
> 
> 
> Review request for Ambari, Attila Doroszlai, Sandor Magyari, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-19726
>     https://issues.apache.org/jira/browse/AMBARI-19726
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The post user creation hook had wired the **hdfs** user, user homes were created in the name of this user.
> In case of customized clusters this didn;t work due to permssion issues.
> 
> The solution is to get the proper hdfs_user from the configureation and access the dfs as this user.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookParams.java 6970dcc 
>   ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookService.java c4ff1e4 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java fe6bf35 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerAction.java e713128 
>   ambari-server/src/main/resources/scripts/post-user-creation-hook.sh ee8d2d1 
>   ambari-server/src/test/java/org/apache/ambari/server/hooks/users/UserHookServiceTest.java 293b22a 
>   ambari-server/src/test/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerActionTest.java f5cdf48 
> 
> Diff: https://reviews.apache.org/r/55987/diff/
> 
> 
> Testing
> -------
> 
> Unit tests running.
> Manual testing underway
> 
> 
> Thanks,
> 
> Laszlo Puskas
> 
>


Re: Review Request 55987: Post user creation hook script creates user home dirs as the configured hdfs_user

Posted by Laszlo Puskas <lp...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55987/
-----------------------------------------------------------

(Updated Jan. 26, 2017, 5:03 p.m.)


Review request for Ambari, Attila Doroszlai, Sandor Magyari, and Sebastian Toader.


Changes
-------

Fixed failing unit test.


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


Repository: ambari


Description
-------

The post user creation hook had wired the **hdfs** user, user homes were created in the name of this user.
In case of customized clusters this didn;t work due to permssion issues.

The solution is to get the proper hdfs_user from the configureation and access the dfs as this user.


Diffs (updated)
-----

  ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookParams.java 6970dcc 
  ambari-server/src/main/java/org/apache/ambari/server/hooks/users/UserHookService.java c4ff1e4 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/CsvFilePersisterService.java fe6bf35 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerAction.java e713128 
  ambari-server/src/main/resources/scripts/post-user-creation-hook.sh ee8d2d1 
  ambari-server/src/test/java/org/apache/ambari/server/hooks/users/UserHookServiceTest.java 293b22a 
  ambari-server/src/test/java/org/apache/ambari/server/serveraction/users/PostUserCreationHookServerActionTest.java f5cdf48 

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


Testing
-------

Unit tests running.
Manual testing underway


Thanks,

Laszlo Puskas