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




ambari-server/src/main/python/ambari_server/serverConfiguration.py (line 693)
<https://reviews.apache.org/r/53273/#comment224107>

    (trivial) AMBARI-18741-oct31-updated.patch:14: trailing whitespace.



ambari-server/src/main/python/ambari_server/serverConfiguration.py (line 698)
<https://reviews.apache.org/r/53273/#comment224108>

    (trivial) AMBARI-18741-oct31-updated.patch:19: trailing whitespace



ambari-server/src/main/python/ambari_server/serverConfiguration.py (line 699)
<https://reviews.apache.org/r/53273/#comment224109>

    (trivial) AMBARI-18741-oct31-updated.patch:20: trailing whitespace



ambari-server/src/test/python/TestUtils.py (line 129)
<https://reviews.apache.org/r/53273/#comment224104>

    I think get_properties_mock was added to avoid this error:
    
    ```
    Failed tests:
    ERROR: test_wait_for_pid (TestUtils.TestUtils)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "ambari-common/src/test/python/mock/mock.py", line 1199, in patched
        return func(*args, **keywargs)
      File "ambari-server/src/test/python/TestUtils.py", line 129, in 
test_wait_for_pid
        from ambari_server.serverConfiguration import SSL_API, 
CLIENT_API_PORT_PROPERTY
      File 
"ambari-server/src/main/python/ambari_server/serverConfiguration.py", line 571, 
in <module>
        configDefaults = ServerConfigDefaults()
      File 
"ambari-server/src/main/python/ambari_server/serverConfiguration.py", line 488, 
in __init__
        super(ServerConfigDefaultsLinux, self).__init__()
      File 
"ambari-server/src/main/python/ambari_server/serverConfiguration.py", line 343, 
in __init__
        properties = get_ambari_properties()
      File 
"ambari-server/src/main/python/ambari_server/serverConfiguration.py", line 229, 
in get_ambari_properties
        conf_file = find_properties_file()
      File 
"ambari-server/src/main/python/ambari_server/serverConfiguration.py", line 222, 
in find_properties_file
        raise FatalException(1, err)
    FatalException: 'Fatal exception: File ambari.properties not found in 
search path $AMBARI_CONF_DIR: /etc/ambari-server/conf, exit code 1'
    ```


- Attila Doroszlai


On Nov. 1, 2016, 6:39 a.m., Anita Jebaraj wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/53273/
> -----------------------------------------------------------
> 
> (Updated Nov. 1, 2016, 6:39 a.m.)
> 
> 
> Review request for Ambari, Di Li, Tim Thorpe, and Vitalyi Brodetskyi.
> 
> 
> Bugs: AMBARI-18741
>     https://issues.apache.org/jira/browse/AMBARI-18741
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> After including client.api.port in ambari.properties, ambari-server still 
> tries to connect to port 8080
> 
> The ambari_server_ui_port is hardcoded to 8080, but if the client.api.port is 
> defined in ambari.properties then the value should be taken as the port 
> number.
> 
> https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_optional_changing_the_default_ambari_server_port.html
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/python/ambari_server/serverConfiguration.py 766f4cc 
>   ambari-server/src/main/python/ambari_server/utils.py 5886561 
>   ambari-server/src/test/python/TestUtils.py 5d32125 
> 
> Diff: https://reviews.apache.org/r/53273/diff/
> 
> 
> Testing
> -------
> 
> Performed manual testing.
> 
> 
> Thanks,
> 
> Anita Jebaraj
> 
>

Reply via email to