Review Request 47377: Fix for parsing multiple lines in output while looking for created 'llap package' name.

2016-05-13 Thread Swapan Shridhar

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

Review request for Ambari, Jaimin Jetly and Sumit Mohanty.


Repository: ambari


Description
---

LLAP start/restart, after creating LLAP package relies on output that is being 
generated in order to figure out the package name created. Typically looks for 
line :

--
Prepared llap-slider/run.sh for running LLAP on Slider
--
--

However, it doesn't handle parsing multi-line outputs (example):

--
#   # ### 
###  ##    # ### ## ### 
Prepared llap-slider2016-05-13_23-13-07/run.sh for running LLAP on Slider
--
--

**Resolution** : Fixed the code for parsing lines while looking for output line.


Diffs
-

  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py
 e94b22e 

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


Testing
---

Yes. 

Pythn UT passes.


Thanks,

Swapan Shridhar



Re: Review Request 47377: Fix for parsing multiple lines in output while looking for created 'llap package' name.

2016-05-13 Thread Sumit Mohanty

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




ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py
 (line 240)


We should add an explicit unit test that tests this path with multiple 
output lines. Modifying test_start_default in test_hive_server_int to return 
multiple lines in mock may just do it.


- Sumit Mohanty


On May 14, 2016, 12:13 a.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/47377/
> ---
> 
> (Updated May 14, 2016, 12:13 a.m.)
> 
> 
> Review request for Ambari, Jaimin Jetly and Sumit Mohanty.
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> LLAP start/restart, after creating LLAP package relies on output that is 
> being generated in order to figure out the package name created. Typically 
> looks for line :
> 
> --
> Prepared llap-slider/run.sh for running LLAP on Slider
> --
> --
> 
> However, it doesn't handle parsing multi-line outputs (example):
> 
> --
> #   # ### 
> ###  ##    # ### ## ### 
> Prepared llap-slider2016-05-13_23-13-07/run.sh for running LLAP on Slider
> --
> --
> 
> **Resolution** : Fixed the code for parsing lines while looking for output 
> line.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py
>  e94b22e 
> 
> Diff: https://reviews.apache.org/r/47377/diff/
> 
> 
> Testing
> ---
> 
> Yes. 
> 
> Pythn UT passes.
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>



Re: Review Request 47377: Fix for parsing multiple lines in output while looking for created 'llap package' name.

2016-05-13 Thread Sumit Mohanty

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



You can add the test later but can you add the JIRA ID to the review request?

- Sumit Mohanty


On May 14, 2016, 12:13 a.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/47377/
> ---
> 
> (Updated May 14, 2016, 12:13 a.m.)
> 
> 
> Review request for Ambari, Jaimin Jetly and Sumit Mohanty.
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> LLAP start/restart, after creating LLAP package relies on output that is 
> being generated in order to figure out the package name created. Typically 
> looks for line :
> 
> --
> Prepared llap-slider/run.sh for running LLAP on Slider
> --
> --
> 
> However, it doesn't handle parsing multi-line outputs (example):
> 
> --
> #   # ### 
> ###  ##    # ### ## ### 
> Prepared llap-slider2016-05-13_23-13-07/run.sh for running LLAP on Slider
> --
> --
> 
> **Resolution** : Fixed the code for parsing lines while looking for output 
> line.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py
>  e94b22e 
> 
> Diff: https://reviews.apache.org/r/47377/diff/
> 
> 
> Testing
> ---
> 
> Yes. 
> 
> Pythn UT passes.
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>



Re: Review Request 47377: Fix for parsing multiple lines in output while looking for created 'llap package' name.

2016-05-13 Thread Sumit Mohanty


> On May 14, 2016, 12:20 a.m., Sumit Mohanty wrote:
> > You can add the test later but can you add the JIRA ID to the review 
> > request?

+1. Did not realize that JIRA is inaccessible. Once you have a JIRA update the 
review and commit it.


- Sumit


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


On May 14, 2016, 12:13 a.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/47377/
> ---
> 
> (Updated May 14, 2016, 12:13 a.m.)
> 
> 
> Review request for Ambari, Jaimin Jetly and Sumit Mohanty.
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> LLAP start/restart, after creating LLAP package relies on output that is 
> being generated in order to figure out the package name created. Typically 
> looks for line :
> 
> --
> Prepared llap-slider/run.sh for running LLAP on Slider
> --
> --
> 
> However, it doesn't handle parsing multi-line outputs (example):
> 
> --
> #   # ### 
> ###  ##    # ### ## ### 
> Prepared llap-slider2016-05-13_23-13-07/run.sh for running LLAP on Slider
> --
> --
> 
> **Resolution** : Fixed the code for parsing lines while looking for output 
> line.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py
>  e94b22e 
> 
> Diff: https://reviews.apache.org/r/47377/diff/
> 
> 
> Testing
> ---
> 
> Yes. 
> 
> Pythn UT passes.
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>



Re: Review Request 47377: Fix for parsing multiple lines in output while looking for created 'llap package' name.

2016-05-13 Thread Swapan Shridhar


> On May 14, 2016, 12:20 a.m., Sumit Mohanty wrote:
> > You can add the test later but can you add the JIRA ID to the review 
> > request?
> 
> Sumit Mohanty wrote:
> +1. Did not realize that JIRA is inaccessible. Once you have a JIRA 
> update the review and commit it.

Updated JIRA.


- Swapan


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


On May 14, 2016, 12:13 a.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/47377/
> ---
> 
> (Updated May 14, 2016, 12:13 a.m.)
> 
> 
> Review request for Ambari, Jaimin Jetly and Sumit Mohanty.
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> LLAP start/restart, after creating LLAP package relies on output that is 
> being generated in order to figure out the package name created. Typically 
> looks for line :
> 
> --
> Prepared llap-slider/run.sh for running LLAP on Slider
> --
> --
> 
> However, it doesn't handle parsing multi-line outputs (example):
> 
> --
> #   # ### 
> ###  ##    # ### ## ### 
> Prepared llap-slider2016-05-13_23-13-07/run.sh for running LLAP on Slider
> --
> --
> 
> **Resolution** : Fixed the code for parsing lines while looking for output 
> line.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py
>  e94b22e 
> 
> Diff: https://reviews.apache.org/r/47377/diff/
> 
> 
> Testing
> ---
> 
> Yes. 
> 
> Pythn UT passes.
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>



Re: Review Request 47377: Fix for parsing multiple lines in output while looking for created 'llap package' name.

2016-05-13 Thread Swapan Shridhar


> On May 14, 2016, 12:19 a.m., Sumit Mohanty wrote:
> > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py,
> >  line 240
> > 
> >
> > We should add an explicit unit test that tests this path with multiple 
> > output lines. Modifying test_start_default in test_hive_server_int to 
> > return multiple lines in mock may just do it.

Added.


- Swapan


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


On May 14, 2016, 12:13 a.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/47377/
> ---
> 
> (Updated May 14, 2016, 12:13 a.m.)
> 
> 
> Review request for Ambari, Jaimin Jetly and Sumit Mohanty.
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> LLAP start/restart, after creating LLAP package relies on output that is 
> being generated in order to figure out the package name created. Typically 
> looks for line :
> 
> --
> Prepared llap-slider/run.sh for running LLAP on Slider
> --
> --
> 
> However, it doesn't handle parsing multi-line outputs (example):
> 
> --
> #   # ### 
> ###  ##    # ### ## ### 
> Prepared llap-slider2016-05-13_23-13-07/run.sh for running LLAP on Slider
> --
> --
> 
> **Resolution** : Fixed the code for parsing lines while looking for output 
> line.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py
>  e94b22e 
> 
> Diff: https://reviews.apache.org/r/47377/diff/
> 
> 
> Testing
> ---
> 
> Yes. 
> 
> Pythn UT passes.
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>