You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@ambari.apache.org by Alejandro Fernandez <af...@hortonworks.com> on 2016/04/19 01:24:04 UTC

Review Request 46351: Hive Server Interactive to also write configs to conf.server and specify folder to unpack LLAP Slider app

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

Review request for Ambari, Sumit Mohanty, Swapan Shridhar, and Yusaku Sako.


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


Repository: ambari


Description
-------

Hive Server Interactive should also create a conf.server folder (similar to Hive Server Batch), in order to distinguish the configs used by the server and client.

Further, when it starts the LLAP App on slider, it can specify which folder to unpack it it,
E.g., 
```
/usr/hdp/current/hive-server2-hive2/bin/hive --service llap --instances 1 -slider-am-container-mb {size} --loglevel INFO --output {directory}
```


Diffs
-----

  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py a2ee491 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_interactive.py 9cfd41f 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py 8adff0a 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py 9d011a0 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py 33e8e47 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service_interactive.py 92e67c7 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py 1205202 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/status_params.py feca9f1 
  ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py ac4f6fc 

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


Testing
-------

Verified on live cluster by installing Hive Server Interactive with LLAP, and then restarting HSI and LLAP.

Python unit tests passed.
----------------------------------------------------------------------
Total run:966
Total errors:0
Total failures:0
OK


Thanks,

Alejandro Fernandez


Re: Review Request 46351: Hive Server Interactive to also write configs to conf.server and specify folder to unpack LLAP Slider app

Posted by Alejandro Fernandez <af...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/46351/#review129447
-----------------------------------------------------------




ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py (line 390)
<https://reviews.apache.org/r/46351/#comment192859>

    Generalized this since canbe used by both Hive Server Batch and Interactive.



ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py (line 204)
<https://reviews.apache.org/r/46351/#comment192860>

    Unpack using a unique directory name.



ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py (line 312)
<https://reviews.apache.org/r/46351/#comment192861>

    This allows generating the conf.server dir with the configs inside of it.



ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/status_params.py (line 114)
<https://reviews.apache.org/r/46351/#comment192862>

    Write server configs to correct folder.


- Alejandro Fernandez


On April 18, 2016, 11:24 p.m., Alejandro Fernandez wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46351/
> -----------------------------------------------------------
> 
> (Updated April 18, 2016, 11:24 p.m.)
> 
> 
> Review request for Ambari, Sumit Mohanty, Swapan Shridhar, and Yusaku Sako.
> 
> 
> Bugs: AMBARI-15955
>     https://issues.apache.org/jira/browse/AMBARI-15955
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Hive Server Interactive should also create a conf.server folder (similar to Hive Server Batch), in order to distinguish the configs used by the server and client.
> 
> Further, when it starts the LLAP App on slider, it can specify which folder to unpack it it,
> E.g., 
> ```
> /usr/hdp/current/hive-server2-hive2/bin/hive --service llap --instances 1 -slider-am-container-mb {size} --loglevel INFO --output {directory}
> ```
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py a2ee491 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_interactive.py 9cfd41f 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py 8adff0a 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py 9d011a0 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py 33e8e47 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service_interactive.py 92e67c7 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py 1205202 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/status_params.py feca9f1 
>   ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py ac4f6fc 
> 
> Diff: https://reviews.apache.org/r/46351/diff/
> 
> 
> Testing
> -------
> 
> Verified on live cluster by installing Hive Server Interactive with LLAP, and then restarting HSI and LLAP.
> 
> Python unit tests passed.
> ----------------------------------------------------------------------
> Total run:966
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Alejandro Fernandez
> 
>


Re: Review Request 46351: Hive Server Interactive to also write configs to conf.server and specify folder to unpack LLAP Slider app

Posted by Swapan Shridhar <ss...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/46351/#review129465
-----------------------------------------------------------


Fix it, then Ship it!




Fix it and Ship It.


ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/status_params.py 
<https://reviews.apache.org/r/46351/#comment192892>

    White spaces



ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/status_params.py (line 97)
<https://reviews.apache.org/r/46351/#comment192893>

    White spaces


- Swapan Shridhar


On April 18, 2016, 11:24 p.m., Alejandro Fernandez wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46351/
> -----------------------------------------------------------
> 
> (Updated April 18, 2016, 11:24 p.m.)
> 
> 
> Review request for Ambari, Sumit Mohanty, Swapan Shridhar, and Yusaku Sako.
> 
> 
> Bugs: AMBARI-15955
>     https://issues.apache.org/jira/browse/AMBARI-15955
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Hive Server Interactive should also create a conf.server folder (similar to Hive Server Batch), in order to distinguish the configs used by the server and client.
> 
> Further, when it starts the LLAP App on slider, it can specify which folder to unpack it it,
> E.g., 
> ```
> /usr/hdp/current/hive-server2-hive2/bin/hive --service llap --instances 1 -slider-am-container-mb {size} --loglevel INFO --output {directory}
> ```
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py a2ee491 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_interactive.py 9cfd41f 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py 8adff0a 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py 9d011a0 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py 33e8e47 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service_interactive.py 92e67c7 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py 1205202 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/status_params.py feca9f1 
>   ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py ac4f6fc 
> 
> Diff: https://reviews.apache.org/r/46351/diff/
> 
> 
> Testing
> -------
> 
> Verified on live cluster by installing Hive Server Interactive with LLAP, and then restarting HSI and LLAP.
> 
> Python unit tests passed.
> ----------------------------------------------------------------------
> Total run:966
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Alejandro Fernandez
> 
>


Re: Review Request 46351: Hive Server Interactive to also write configs to conf.server and specify folder to unpack LLAP Slider app

Posted by Swapan Shridhar <ss...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/46351/#review129656
-----------------------------------------------------------


Ship it!




Ship It!

- Swapan Shridhar


On April 19, 2016, 11:51 p.m., Alejandro Fernandez wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46351/
> -----------------------------------------------------------
> 
> (Updated April 19, 2016, 11:51 p.m.)
> 
> 
> Review request for Ambari, Sumit Mohanty, Swapan Shridhar, and Yusaku Sako.
> 
> 
> Bugs: AMBARI-15955
>     https://issues.apache.org/jira/browse/AMBARI-15955
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Hive Server Interactive should also create a conf.server folder (similar to Hive Server Batch), in order to distinguish the configs used by the server and client.
> 
> Further, when it starts the LLAP App on slider, it can specify which folder to unpack it it,
> E.g., 
> ```
> /usr/hdp/current/hive-server2-hive2/bin/hive --service llap --instances 1 -slider-am-container-mb {size} --loglevel INFO --output {directory}
> ```
> 
> 
> Diffs
> -----
> 
>   ambari-common/src/main/python/resource_management/libraries/functions/copy_tarball.py 38e4fb4 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py a2ee491 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_interactive.py 9cfd41f 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py 8adff0a 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py 9d011a0 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py 33e8e47 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service_interactive.py 92e67c7 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py 9bee786 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/status_params.py feca9f1 
>   ambari-server/src/main/resources/scripts/Ambaripreupload.py 941e762 
>   ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py ac4f6fc 
>   ambari-server/src/test/python/stacks/2.5/configs/hsi_default.json f9c31dc 
> 
> Diff: https://reviews.apache.org/r/46351/diff/
> 
> 
> Testing
> -------
> 
> Verified on live cluster by installing Hive Server Interactive with LLAP, and then restarting HSI and LLAP.
> 
> Python unit tests passed.
> ----------------------------------------------------------------------
> Total run:966
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Alejandro Fernandez
> 
>


Re: Review Request 46351: Hive Server Interactive to also write configs to conf.server and specify folder to unpack LLAP Slider app

Posted by Alejandro Fernandez <af...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/46351/#review129654
-----------------------------------------------------------




ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_interactive.py (line 70)
<https://reviews.apache.org/r/46351/#comment193148>

    This got lost during my earlier rebase.


- Alejandro Fernandez


On April 19, 2016, 11:51 p.m., Alejandro Fernandez wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46351/
> -----------------------------------------------------------
> 
> (Updated April 19, 2016, 11:51 p.m.)
> 
> 
> Review request for Ambari, Sumit Mohanty, Swapan Shridhar, and Yusaku Sako.
> 
> 
> Bugs: AMBARI-15955
>     https://issues.apache.org/jira/browse/AMBARI-15955
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Hive Server Interactive should also create a conf.server folder (similar to Hive Server Batch), in order to distinguish the configs used by the server and client.
> 
> Further, when it starts the LLAP App on slider, it can specify which folder to unpack it it,
> E.g., 
> ```
> /usr/hdp/current/hive-server2-hive2/bin/hive --service llap --instances 1 -slider-am-container-mb {size} --loglevel INFO --output {directory}
> ```
> 
> 
> Diffs
> -----
> 
>   ambari-common/src/main/python/resource_management/libraries/functions/copy_tarball.py 38e4fb4 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py a2ee491 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_interactive.py 9cfd41f 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py 8adff0a 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py 9d011a0 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py 33e8e47 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service_interactive.py 92e67c7 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py 9bee786 
>   ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/status_params.py feca9f1 
>   ambari-server/src/main/resources/scripts/Ambaripreupload.py 941e762 
>   ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py ac4f6fc 
>   ambari-server/src/test/python/stacks/2.5/configs/hsi_default.json f9c31dc 
> 
> Diff: https://reviews.apache.org/r/46351/diff/
> 
> 
> Testing
> -------
> 
> Verified on live cluster by installing Hive Server Interactive with LLAP, and then restarting HSI and LLAP.
> 
> Python unit tests passed.
> ----------------------------------------------------------------------
> Total run:966
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Alejandro Fernandez
> 
>


Re: Review Request 46351: Hive Server Interactive to also write configs to conf.server and specify folder to unpack LLAP Slider app

Posted by Alejandro Fernandez <af...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/46351/
-----------------------------------------------------------

(Updated April 19, 2016, 11:51 p.m.)


Review request for Ambari, Sumit Mohanty, Swapan Shridhar, and Yusaku Sako.


Changes
-------

Rebased, changed more unit tests, and removed uploading hive2 tarball to HDFS.


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


Repository: ambari


Description
-------

Hive Server Interactive should also create a conf.server folder (similar to Hive Server Batch), in order to distinguish the configs used by the server and client.

Further, when it starts the LLAP App on slider, it can specify which folder to unpack it it,
E.g., 
```
/usr/hdp/current/hive-server2-hive2/bin/hive --service llap --instances 1 -slider-am-container-mb {size} --loglevel INFO --output {directory}
```


Diffs (updated)
-----

  ambari-common/src/main/python/resource_management/libraries/functions/copy_tarball.py 38e4fb4 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py a2ee491 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_interactive.py 9cfd41f 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py 8adff0a 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py 9d011a0 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py 33e8e47 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service_interactive.py 92e67c7 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py 9bee786 
  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/status_params.py feca9f1 
  ambari-server/src/main/resources/scripts/Ambaripreupload.py 941e762 
  ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py ac4f6fc 
  ambari-server/src/test/python/stacks/2.5/configs/hsi_default.json f9c31dc 

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


Testing
-------

Verified on live cluster by installing Hive Server Interactive with LLAP, and then restarting HSI and LLAP.

Python unit tests passed.
----------------------------------------------------------------------
Total run:966
Total errors:0
Total failures:0
OK


Thanks,

Alejandro Fernandez