You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Qiang Zhang <zh...@zte.com.cn> on 2017/02/08 07:01:09 UTC

Review Request 56431: The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice. We should handle the exception as well as tagsync.

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

Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.


Bugs: RANGER-1362
    https://issues.apache.org/jira/browse/RANGER-1362


Repository: ranger


Description
-------

The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice.

The tagsync installer checked JAVA_HOME environment variable. It would print error information and abort if JAVA_HOME environment variable is empty during installing tagsync. We should handle the exception for the installer of the usersync and unixauthservice as well as tagsync.


The installer of the usersync and unixauthservice is the same program. They will be modified at the same time after we modifed the setup.sh of the unixauthservice project.


Diffs
-----

  unixauthservice/scripts/setup.sh cf785a1 

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


Testing
-------


Thanks,

Qiang Zhang


Re: Review Request 56431: The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice. We should handle the exception as well as tagsync.

Posted by Qiang Zhang <zh...@zte.com.cn>.

> On \u4e8c\u6708 8, 2017, 9:53 a.m., Colm O hEigeartaigh wrote:
> > We should go further, and check to see if the JAVA_HOME variable is a directory, rather than just checking to see if it's empty (in both scripts)
> 
> Qiang Zhang wrote:
>     Ok. I agree with your proposal. I rebuild the patch.
> 
> Qiang Zhang wrote:
>     I had rebuilt and updated the patch. Thanks!
> 
> Colm O hEigeartaigh wrote:
>     The patch only contains the fix for the unixauthservice and not the tagsyncservice?

As described in the description the installer of the usersync and unixauthservice is the same program. In the process of packing, it is compiled into different packages. So they will be modified at the same time after we modifed the setup.sh of the unixauthservice project.


- Qiang


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


On \u4e8c\u6708 8, 2017, 2:57 p.m., Qiang Zhang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56431/
> -----------------------------------------------------------
> 
> (Updated \u4e8c\u6708 8, 2017, 2:57 p.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1362
>     https://issues.apache.org/jira/browse/RANGER-1362
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice.
> 
> The tagsync installer checked JAVA_HOME environment variable. It would print error information and abort if JAVA_HOME environment variable is empty during installing tagsync. We should handle the exception for the installer of the usersync and unixauthservice as well as tagsync.
> 
> 
> The installer of the usersync and unixauthservice is the same program. They will be modified at the same time after we modifed the setup.sh of the unixauthservice project.
> 
> 
> Diffs
> -----
> 
>   unixauthservice/scripts/setup.sh cf785a1 
> 
> Diff: https://reviews.apache.org/r/56431/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Qiang Zhang
> 
>


Re: Review Request 56431: The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice. We should handle the exception as well as tagsync.

Posted by Qiang Zhang <zh...@zte.com.cn>.

> On Feb. 8, 2017, 9:53 a.m., Colm O hEigeartaigh wrote:
> > We should go further, and check to see if the JAVA_HOME variable is a directory, rather than just checking to see if it's empty (in both scripts)
> 
> Qiang Zhang wrote:
>     Ok. I agree with your proposal. I rebuild the patch.
> 
> Qiang Zhang wrote:
>     I had rebuilt and updated the patch. Thanks!
> 
> Colm O hEigeartaigh wrote:
>     The patch only contains the fix for the unixauthservice and not the tagsyncservice?
> 
> Qiang Zhang wrote:
>     As described in the description the installer of the usersync and unixauthservice is the same program. In the process of packing, it is compiled into different packages. So they will be modified at the same time after we modifed the setup.sh of the unixauthservice project.
> 
> Colm O hEigeartaigh wrote:
>     Right, but what about tagsync (./tagsync/scripts/setup.sh) ? The same problem exists there...you had a fix in an earlier version of the patch.

About tagsync (./tagsync/scripts/setup.sh), I have not modified it. It should be modified by other committer. I found unixauthservice and usersync and tagsync inconsistent when tested and verified the installer for unixauthservice and usersync. Compared with the tagsync, we check if the JAVA_HOME variable is a directory. Do you think we should modify tagsync (./tagsync/scripts/setup.sh) to keep them consistent? If you agree with my point of view, I will modify tagsync (./tagsync/scripts/setup.sh) and rebuild patch.


- Qiang


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


On Feb. 8, 2017, 2:57 p.m., Qiang Zhang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56431/
> -----------------------------------------------------------
> 
> (Updated Feb. 8, 2017, 2:57 p.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1362
>     https://issues.apache.org/jira/browse/RANGER-1362
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice.
> 
> The tagsync installer checked JAVA_HOME environment variable. It would print error information and abort if JAVA_HOME environment variable is empty during installing tagsync. We should handle the exception for the installer of the usersync and unixauthservice as well as tagsync.
> 
> 
> The installer of the usersync and unixauthservice is the same program. They will be modified at the same time after we modifed the setup.sh of the unixauthservice project.
> 
> 
> Diffs
> -----
> 
>   unixauthservice/scripts/setup.sh cf785a1 
> 
> Diff: https://reviews.apache.org/r/56431/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Qiang Zhang
> 
>


Re: Review Request 56431: The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice. We should handle the exception as well as tagsync.

Posted by Qiang Zhang <zh...@zte.com.cn>.

> On \u4e8c\u6708 8, 2017, 9:53 a.m., Colm O hEigeartaigh wrote:
> > We should go further, and check to see if the JAVA_HOME variable is a directory, rather than just checking to see if it's empty (in both scripts)

Ok. I agree with your proposal. I rebuild the patch.


- Qiang


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


On \u4e8c\u6708 8, 2017, 7:01 a.m., Qiang Zhang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56431/
> -----------------------------------------------------------
> 
> (Updated \u4e8c\u6708 8, 2017, 7:01 a.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1362
>     https://issues.apache.org/jira/browse/RANGER-1362
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice.
> 
> The tagsync installer checked JAVA_HOME environment variable. It would print error information and abort if JAVA_HOME environment variable is empty during installing tagsync. We should handle the exception for the installer of the usersync and unixauthservice as well as tagsync.
> 
> 
> The installer of the usersync and unixauthservice is the same program. They will be modified at the same time after we modifed the setup.sh of the unixauthservice project.
> 
> 
> Diffs
> -----
> 
>   unixauthservice/scripts/setup.sh cf785a1 
> 
> Diff: https://reviews.apache.org/r/56431/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Qiang Zhang
> 
>


Re: Review Request 56431: The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice. We should handle the exception as well as tagsync.

Posted by Colm O hEigeartaigh <co...@apache.org>.

> On Feb. 8, 2017, 9:53 a.m., Colm O hEigeartaigh wrote:
> > We should go further, and check to see if the JAVA_HOME variable is a directory, rather than just checking to see if it's empty (in both scripts)
> 
> Qiang Zhang wrote:
>     Ok. I agree with your proposal. I rebuild the patch.
> 
> Qiang Zhang wrote:
>     I had rebuilt and updated the patch. Thanks!
> 
> Colm O hEigeartaigh wrote:
>     The patch only contains the fix for the unixauthservice and not the tagsyncservice?
> 
> Qiang Zhang wrote:
>     As described in the description the installer of the usersync and unixauthservice is the same program. In the process of packing, it is compiled into different packages. So they will be modified at the same time after we modifed the setup.sh of the unixauthservice project.
> 
> Colm O hEigeartaigh wrote:
>     Right, but what about tagsync (./tagsync/scripts/setup.sh) ? The same problem exists there...you had a fix in an earlier version of the patch.
> 
> Qiang Zhang wrote:
>     About tagsync (./tagsync/scripts/setup.sh), I have not modified it. It should be modified by other committer. I found unixauthservice and usersync and tagsync inconsistent when tested and verified the installer for unixauthservice and usersync. Compared with the tagsync, we check if the JAVA_HOME variable is a directory. Do you think we should modify tagsync (./tagsync/scripts/setup.sh) to keep them consistent? If you agree with my point of view, I will modify tagsync (./tagsync/scripts/setup.sh) and rebuild patch.

Yes please put the fix in the tagsync script as well.


- Colm


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


On Feb. 8, 2017, 2:57 p.m., Qiang Zhang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56431/
> -----------------------------------------------------------
> 
> (Updated Feb. 8, 2017, 2:57 p.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1362
>     https://issues.apache.org/jira/browse/RANGER-1362
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice.
> 
> The tagsync installer checked JAVA_HOME environment variable. It would print error information and abort if JAVA_HOME environment variable is empty during installing tagsync. We should handle the exception for the installer of the usersync and unixauthservice as well as tagsync.
> 
> 
> The installer of the usersync and unixauthservice is the same program. They will be modified at the same time after we modifed the setup.sh of the unixauthservice project.
> 
> 
> Diffs
> -----
> 
>   unixauthservice/scripts/setup.sh cf785a1 
> 
> Diff: https://reviews.apache.org/r/56431/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Qiang Zhang
> 
>


Re: Review Request 56431: The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice. We should handle the exception as well as tagsync.

Posted by Colm O hEigeartaigh <co...@apache.org>.

> On Feb. 8, 2017, 9:53 a.m., Colm O hEigeartaigh wrote:
> > We should go further, and check to see if the JAVA_HOME variable is a directory, rather than just checking to see if it's empty (in both scripts)
> 
> Qiang Zhang wrote:
>     Ok. I agree with your proposal. I rebuild the patch.
> 
> Qiang Zhang wrote:
>     I had rebuilt and updated the patch. Thanks!

The patch only contains the fix for the unixauthservice and not the tagsyncservice?


- Colm


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


On Feb. 8, 2017, 2:57 p.m., Qiang Zhang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56431/
> -----------------------------------------------------------
> 
> (Updated Feb. 8, 2017, 2:57 p.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1362
>     https://issues.apache.org/jira/browse/RANGER-1362
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice.
> 
> The tagsync installer checked JAVA_HOME environment variable. It would print error information and abort if JAVA_HOME environment variable is empty during installing tagsync. We should handle the exception for the installer of the usersync and unixauthservice as well as tagsync.
> 
> 
> The installer of the usersync and unixauthservice is the same program. They will be modified at the same time after we modifed the setup.sh of the unixauthservice project.
> 
> 
> Diffs
> -----
> 
>   unixauthservice/scripts/setup.sh cf785a1 
> 
> Diff: https://reviews.apache.org/r/56431/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Qiang Zhang
> 
>


Re: Review Request 56431: The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice. We should handle the exception as well as tagsync.

Posted by Qiang Zhang <zh...@zte.com.cn>.

> On Feb. 8, 2017, 9:53 a.m., Colm O hEigeartaigh wrote:
> > We should go further, and check to see if the JAVA_HOME variable is a directory, rather than just checking to see if it's empty (in both scripts)
> 
> Qiang Zhang wrote:
>     Ok. I agree with your proposal. I rebuild the patch.
> 
> Qiang Zhang wrote:
>     I had rebuilt and updated the patch. Thanks!
> 
> Colm O hEigeartaigh wrote:
>     The patch only contains the fix for the unixauthservice and not the tagsyncservice?
> 
> Qiang Zhang wrote:
>     As described in the description the installer of the usersync and unixauthservice is the same program. In the process of packing, it is compiled into different packages. So they will be modified at the same time after we modifed the setup.sh of the unixauthservice project.
> 
> Colm O hEigeartaigh wrote:
>     Right, but what about tagsync (./tagsync/scripts/setup.sh) ? The same problem exists there...you had a fix in an earlier version of the patch.
> 
> Qiang Zhang wrote:
>     About tagsync (./tagsync/scripts/setup.sh), I have not modified it. It should be modified by other committer. I found unixauthservice and usersync and tagsync inconsistent when tested and verified the installer for unixauthservice and usersync. Compared with the tagsync, we check if the JAVA_HOME variable is a directory. Do you think we should modify tagsync (./tagsync/scripts/setup.sh) to keep them consistent? If you agree with my point of view, I will modify tagsync (./tagsync/scripts/setup.sh) and rebuild patch.
> 
> Colm O hEigeartaigh wrote:
>     Yes please put the fix in the tagsync script as well.

I rebuilt and updated the patch according to our discussion.


- Qiang


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


On Feb. 8, 2017, 2:57 p.m., Qiang Zhang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56431/
> -----------------------------------------------------------
> 
> (Updated Feb. 8, 2017, 2:57 p.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1362
>     https://issues.apache.org/jira/browse/RANGER-1362
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice.
> 
> The tagsync installer checked JAVA_HOME environment variable. It would print error information and abort if JAVA_HOME environment variable is empty during installing tagsync. We should handle the exception for the installer of the usersync and unixauthservice as well as tagsync.
> 
> 
> The installer of the usersync and unixauthservice is the same program. They will be modified at the same time after we modifed the setup.sh of the unixauthservice project.
> 
> 
> Diffs
> -----
> 
>   unixauthservice/scripts/setup.sh cf785a1 
> 
> Diff: https://reviews.apache.org/r/56431/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Qiang Zhang
> 
>


Re: Review Request 56431: The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice. We should handle the exception as well as tagsync.

Posted by Qiang Zhang <zh...@zte.com.cn>.

> On Feb. 8, 2017, 9:53 a.m., Colm O hEigeartaigh wrote:
> > We should go further, and check to see if the JAVA_HOME variable is a directory, rather than just checking to see if it's empty (in both scripts)
> 
> Qiang Zhang wrote:
>     Ok. I agree with your proposal. I rebuild the patch.

I had rebuilt and updated the patch. Thanks!


- Qiang


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


On Feb. 8, 2017, 7:01 a.m., Qiang Zhang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56431/
> -----------------------------------------------------------
> 
> (Updated Feb. 8, 2017, 7:01 a.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1362
>     https://issues.apache.org/jira/browse/RANGER-1362
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice.
> 
> The tagsync installer checked JAVA_HOME environment variable. It would print error information and abort if JAVA_HOME environment variable is empty during installing tagsync. We should handle the exception for the installer of the usersync and unixauthservice as well as tagsync.
> 
> 
> The installer of the usersync and unixauthservice is the same program. They will be modified at the same time after we modifed the setup.sh of the unixauthservice project.
> 
> 
> Diffs
> -----
> 
>   unixauthservice/scripts/setup.sh cf785a1 
> 
> Diff: https://reviews.apache.org/r/56431/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Qiang Zhang
> 
>


Re: Review Request 56431: The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice. We should handle the exception as well as tagsync.

Posted by Colm O hEigeartaigh <co...@apache.org>.

> On Feb. 8, 2017, 9:53 a.m., Colm O hEigeartaigh wrote:
> > We should go further, and check to see if the JAVA_HOME variable is a directory, rather than just checking to see if it's empty (in both scripts)
> 
> Qiang Zhang wrote:
>     Ok. I agree with your proposal. I rebuild the patch.
> 
> Qiang Zhang wrote:
>     I had rebuilt and updated the patch. Thanks!
> 
> Colm O hEigeartaigh wrote:
>     The patch only contains the fix for the unixauthservice and not the tagsyncservice?
> 
> Qiang Zhang wrote:
>     As described in the description the installer of the usersync and unixauthservice is the same program. In the process of packing, it is compiled into different packages. So they will be modified at the same time after we modifed the setup.sh of the unixauthservice project.

Right, but what about tagsync (./tagsync/scripts/setup.sh) ? The same problem exists there...you had a fix in an earlier version of the patch.


- Colm


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


On Feb. 8, 2017, 2:57 p.m., Qiang Zhang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56431/
> -----------------------------------------------------------
> 
> (Updated Feb. 8, 2017, 2:57 p.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1362
>     https://issues.apache.org/jira/browse/RANGER-1362
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice.
> 
> The tagsync installer checked JAVA_HOME environment variable. It would print error information and abort if JAVA_HOME environment variable is empty during installing tagsync. We should handle the exception for the installer of the usersync and unixauthservice as well as tagsync.
> 
> 
> The installer of the usersync and unixauthservice is the same program. They will be modified at the same time after we modifed the setup.sh of the unixauthservice project.
> 
> 
> Diffs
> -----
> 
>   unixauthservice/scripts/setup.sh cf785a1 
> 
> Diff: https://reviews.apache.org/r/56431/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Qiang Zhang
> 
>


Re: Review Request 56431: The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice. We should handle the exception as well as tagsync.

Posted by Colm O hEigeartaigh <co...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/56431/#review164656
-----------------------------------------------------------



We should go further, and check to see if the JAVA_HOME variable is a directory, rather than just checking to see if it's empty (in both scripts)

- Colm O hEigeartaigh


On Feb. 8, 2017, 7:01 a.m., Qiang Zhang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56431/
> -----------------------------------------------------------
> 
> (Updated Feb. 8, 2017, 7:01 a.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1362
>     https://issues.apache.org/jira/browse/RANGER-1362
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice.
> 
> The tagsync installer checked JAVA_HOME environment variable. It would print error information and abort if JAVA_HOME environment variable is empty during installing tagsync. We should handle the exception for the installer of the usersync and unixauthservice as well as tagsync.
> 
> 
> The installer of the usersync and unixauthservice is the same program. They will be modified at the same time after we modifed the setup.sh of the unixauthservice project.
> 
> 
> Diffs
> -----
> 
>   unixauthservice/scripts/setup.sh cf785a1 
> 
> Diff: https://reviews.apache.org/r/56431/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Qiang Zhang
> 
>


Re: Review Request 56431: The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice. We should handle the exception as well as tagsync.

Posted by Colm O hEigeartaigh <co...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/56431/#review164914
-----------------------------------------------------------


Ship it!




Ship It!

- Colm O hEigeartaigh


On Feb. 9, 2017, 12:44 p.m., Qiang Zhang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56431/
> -----------------------------------------------------------
> 
> (Updated Feb. 9, 2017, 12:44 p.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1362
>     https://issues.apache.org/jira/browse/RANGER-1362
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice.
> 
> The tagsync installer checked JAVA_HOME environment variable. It would print error information and abort if JAVA_HOME environment variable is empty during installing tagsync. We should handle the exception for the installer of the usersync and unixauthservice as well as tagsync.
> 
> 
> The installer of the usersync and unixauthservice is the same program. They will be modified at the same time after we modifed the setup.sh of the unixauthservice project.
> 
> 
> Diffs
> -----
> 
>   tagsync/scripts/setup.sh d2a4f1b 
>   unixauthservice/scripts/setup.sh cf785a1 
> 
> Diff: https://reviews.apache.org/r/56431/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Qiang Zhang
> 
>


Re: Review Request 56431: The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice. We should handle the exception as well as tagsync.

Posted by Qiang Zhang <zh...@zte.com.cn>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/56431/
-----------------------------------------------------------

(Updated Feb. 9, 2017, 12:44 p.m.)


Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.


Bugs: RANGER-1362
    https://issues.apache.org/jira/browse/RANGER-1362


Repository: ranger


Description
-------

The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice.

The tagsync installer checked JAVA_HOME environment variable. It would print error information and abort if JAVA_HOME environment variable is empty during installing tagsync. We should handle the exception for the installer of the usersync and unixauthservice as well as tagsync.


The installer of the usersync and unixauthservice is the same program. They will be modified at the same time after we modifed the setup.sh of the unixauthservice project.


Diffs (updated)
-----

  tagsync/scripts/setup.sh d2a4f1b 
  unixauthservice/scripts/setup.sh cf785a1 

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


Testing
-------


Thanks,

Qiang Zhang


Re: Review Request 56431: The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice. We should handle the exception as well as tagsync.

Posted by Qiang Zhang <zh...@zte.com.cn>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/56431/
-----------------------------------------------------------

(Updated Feb. 8, 2017, 2:57 p.m.)


Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.


Bugs: RANGER-1362
    https://issues.apache.org/jira/browse/RANGER-1362


Repository: ranger


Description
-------

The installer of the usersync and unixauthservice can be executed when JAVA_HOME environment variable was set empty. The result is that there are many errors when installing UserSync and unixauthservice.

The tagsync installer checked JAVA_HOME environment variable. It would print error information and abort if JAVA_HOME environment variable is empty during installing tagsync. We should handle the exception for the installer of the usersync and unixauthservice as well as tagsync.


The installer of the usersync and unixauthservice is the same program. They will be modified at the same time after we modifed the setup.sh of the unixauthservice project.


Diffs (updated)
-----

  unixauthservice/scripts/setup.sh cf785a1 

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


Testing
-------


Thanks,

Qiang Zhang