You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Vihang Karajgaonkar <vi...@cloudera.com> on 2017/02/18 23:17:53 UTC
Re: Review Request 52978: HIVE-14459 TestBeeLineDriver - migration and
re-enable
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52978/#review166031
-----------------------------------------------------------
beeline/src/java/org/apache/hive/beeline/util/QFileClient.java (line 125)
<https://reviews.apache.org/r/52978/#comment237928>
can you please add a comment saying what the filter regex is doing to make it easier to understand?
itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java (lines 62 - 64)
<https://reviews.apache.org/r/52978/#comment237931>
Not sure why we need this? Can you please add some comment to help us understand
itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java (lines 77 - 82)
<https://reviews.apache.org/r/52978/#comment237929>
Is it possible to use miniHS2 instead?
itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java (line 112)
<https://reviews.apache.org/r/52978/#comment237930>
Having a fixed port number could become a problem in ptests. May be we should use a port number which is available in the run time (I think miniHS2 instantiates on a available port at the run time)
- Vihang Karajgaonkar
On Oct. 19, 2016, 1:39 p.m., Peter Vary wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52978/
> -----------------------------------------------------------
>
> (Updated Oct. 19, 2016, 1:39 p.m.)
>
>
> Review request for hive, Zoltan Haindrich, Marta Kuczora, Miklos Csanady, Prasanth_J, Sergey Shelukhin, Sergio Pena, Siddharth Seth, and Barna Zsombor Klara.
>
>
> Bugs: HIVE-14459
> https://issues.apache.org/jira/browse/HIVE-14459
>
>
> Repository: hive-git
>
>
> Description
> -------
>
> Kept the changes minimal with the sole goal to be able to run the BeeLine query tests multiple times successfully.
> - Enabled the driver
> - Modified the regexps to hide when comparing the results
> - Configured to run only 1 qtest file - so we can test, and could decide later of the beeline testing scope
> - Added required dependencies to pom
> - Added specific results dir for beeline q.out-s
>
>
> Diffs
> -----
>
> beeline/src/java/org/apache/hive/beeline/util/QFileClient.java 81f1b0e
> itests/qtest/src/test/java/org/apache/hadoop/hive/cli/DisabledTestBeeLineDriver.java cb276e6
> itests/qtest/src/test/java/org/apache/hadoop/hive/cli/TestBeeLineDriver.java PRE-CREATION
> itests/src/test/resources/testconfiguration.properties 97e310d
> itests/util/pom.xml 6d93dc1
> itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CliConfigs.java 366c7b4
> itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java e5144e3
> ql/src/test/results/clientpositive/beeline/escape_comments.q.out PRE-CREATION
>
> Diff: https://reviews.apache.org/r/52978/diff/
>
>
> Testing
> -------
>
> Manually on my computer several runs.
> Waiting for the QA tests
>
>
> Thanks,
>
> Peter Vary
>
>
Re: Review Request 52978: HIVE-14459 TestBeeLineDriver - migration and
re-enable
Posted by Peter Vary <pv...@cloudera.com>.
> On Feb. 18, 2017, 11:17 p.m., Vihang Karajgaonkar wrote:
> > beeline/src/java/org/apache/hive/beeline/util/QFileClient.java, line 125
> > <https://reviews.apache.org/r/52978/diff/3/?file=1541458#file1541458line125>
> >
> > can you please add a comment saying what the filter regex is doing to make it easier to understand?
>
> Peter Vary wrote:
> Will do - This is for removing the timestamp from the begining of the log lines
Done
> On Feb. 18, 2017, 11:17 p.m., Vihang Karajgaonkar wrote:
> > itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java, lines 66-68
> > <https://reviews.apache.org/r/52978/diff/3/?file=1541464#file1541464line66>
> >
> > Not sure why we need this? Can you please add some comment to help us understand
>
> Peter Vary wrote:
> To be honest, I was aiming for the minimal change, and did not try to run without it. Will check - my guess is that the HiveServer configured to use ZK cluster for something.
>
> Peter Vary wrote:
> Ok.. Checked, and this is needed if we want to run HiveServer2 with ZookeeperLockManager. What do you think shall we use EmbeddedLockManager instead?
Commented out, but kept the code, so we can reenable it in time
> On Feb. 18, 2017, 11:17 p.m., Vihang Karajgaonkar wrote:
> > itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java, lines 81-86
> > <https://reviews.apache.org/r/52978/diff/3/?file=1541464#file1541464line81>
> >
> > Is it possible to use miniHS2 instead?
>
> Peter Vary wrote:
> This is a very good idea! I think we should do that...
> The same applies here as above - tried to keep my changes minimal - Shall we change this here, or in a followup jira to separate the changes?
>
> Peter Vary wrote:
> Checked this, using miniHS2 would mean circular dependency. We have to move the CoreBeeLineDriver to hive-unit module to remove this problem. I think I will ask Zoltan what does he think about the refactor
Created a refactored version, I still think this a very good idea.
- Peter
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52978/#review166031
-----------------------------------------------------------
On Feb. 24, 2017, 12:21 p.m., Peter Vary wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52978/
> -----------------------------------------------------------
>
> (Updated Feb. 24, 2017, 12:21 p.m.)
>
>
> Review request for hive, Zoltan Haindrich, Marta Kuczora, Miklos Csanady, Prasanth_J, Sergey Shelukhin, Sergio Pena, Siddharth Seth, and Barna Zsombor Klara.
>
>
> Bugs: HIVE-14459
> https://issues.apache.org/jira/browse/HIVE-14459
>
>
> Repository: hive-git
>
>
> Description
> -------
>
> Kept the changes minimal with the sole goal to be able to run the BeeLine query tests multiple times successfully.
> - Enabled the driver
> - Modified the regexps to hide when comparing the results
> - Configured to run only 1 qtest file - so we can test, and could decide later of the beeline testing scope
> - Added required dependencies to pom
> - Added specific results dir for beeline q.out-s
>
>
> Diffs
> -----
>
> beeline/src/java/org/apache/hive/beeline/util/QFileClient.java 81f1b0e
> itests/hive-unit/src/main/java/org/apache/hive/jdbc/miniHS2/AbstractHiveService.java
> itests/hive-unit/src/main/java/org/apache/hive/jdbc/miniHS2/MiniHS2.java
> itests/qtest/src/test/java/org/apache/hadoop/hive/cli/DisabledTestBeeLineDriver.java cb276e6
> itests/src/test/resources/testconfiguration.properties d344464
> itests/util/pom.xml 6d93dc1
> itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CliConfigs.java af8ec67
> itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java e5144e3
> ql/src/test/results/clientpositive/beeline/escape_comments.q.out PRE-CREATION
>
> Diff: https://reviews.apache.org/r/52978/diff/
>
>
> Testing
> -------
>
> Manually on my computer several runs.
> Waiting for the QA tests
>
>
> Thanks,
>
> Peter Vary
>
>
Re: Review Request 52978: HIVE-14459 TestBeeLineDriver - migration and
re-enable
Posted by Peter Vary <pv...@cloudera.com>.
> On Feb. 18, 2017, 11:17 p.m., Vihang Karajgaonkar wrote:
> > itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java, lines 66-68
> > <https://reviews.apache.org/r/52978/diff/3/?file=1541464#file1541464line66>
> >
> > Not sure why we need this? Can you please add some comment to help us understand
>
> Peter Vary wrote:
> To be honest, I was aiming for the minimal change, and did not try to run without it. Will check - my guess is that the HiveServer configured to use ZK cluster for something.
Ok.. Checked, and this is needed if we want to run HiveServer2 with ZookeeperLockManager. What do you think shall we use EmbeddedLockManager instead?
- Peter
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52978/#review166031
-----------------------------------------------------------
On Oct. 19, 2016, 1:39 p.m., Peter Vary wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52978/
> -----------------------------------------------------------
>
> (Updated Oct. 19, 2016, 1:39 p.m.)
>
>
> Review request for hive, Zoltan Haindrich, Marta Kuczora, Miklos Csanady, Prasanth_J, Sergey Shelukhin, Sergio Pena, Siddharth Seth, and Barna Zsombor Klara.
>
>
> Bugs: HIVE-14459
> https://issues.apache.org/jira/browse/HIVE-14459
>
>
> Repository: hive-git
>
>
> Description
> -------
>
> Kept the changes minimal with the sole goal to be able to run the BeeLine query tests multiple times successfully.
> - Enabled the driver
> - Modified the regexps to hide when comparing the results
> - Configured to run only 1 qtest file - so we can test, and could decide later of the beeline testing scope
> - Added required dependencies to pom
> - Added specific results dir for beeline q.out-s
>
>
> Diffs
> -----
>
> beeline/src/java/org/apache/hive/beeline/util/QFileClient.java 81f1b0e
> itests/qtest/src/test/java/org/apache/hadoop/hive/cli/DisabledTestBeeLineDriver.java cb276e6
> itests/qtest/src/test/java/org/apache/hadoop/hive/cli/TestBeeLineDriver.java PRE-CREATION
> itests/src/test/resources/testconfiguration.properties 97e310d
> itests/util/pom.xml 6d93dc1
> itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CliConfigs.java 366c7b4
> itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java e5144e3
> ql/src/test/results/clientpositive/beeline/escape_comments.q.out PRE-CREATION
>
> Diff: https://reviews.apache.org/r/52978/diff/
>
>
> Testing
> -------
>
> Manually on my computer several runs.
> Waiting for the QA tests
>
>
> Thanks,
>
> Peter Vary
>
>
Re: Review Request 52978: HIVE-14459 TestBeeLineDriver - migration and
re-enable
Posted by Vihang Karajgaonkar <vi...@cloudera.com>.
> On Feb. 18, 2017, 11:17 p.m., Vihang Karajgaonkar wrote:
> > itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java, line 116
> > <https://reviews.apache.org/r/52978/diff/3/?file=1541464#file1541464line116>
> >
> > Having a fixed port number could become a problem in ptests. May be we should use a port number which is available in the run time (I think miniHS2 instantiates on a available port at the run time)
>
> Peter Vary wrote:
> As above :)
We can do it in another JIRA as well. My guess is that if we use fixed ports it is more likely that this test will fail when we run it in pre-commit job due to parallel execution of batches.
- Vihang
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52978/#review166031
-----------------------------------------------------------
On Oct. 19, 2016, 1:39 p.m., Peter Vary wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52978/
> -----------------------------------------------------------
>
> (Updated Oct. 19, 2016, 1:39 p.m.)
>
>
> Review request for hive, Zoltan Haindrich, Marta Kuczora, Miklos Csanady, Prasanth_J, Sergey Shelukhin, Sergio Pena, Siddharth Seth, and Barna Zsombor Klara.
>
>
> Bugs: HIVE-14459
> https://issues.apache.org/jira/browse/HIVE-14459
>
>
> Repository: hive-git
>
>
> Description
> -------
>
> Kept the changes minimal with the sole goal to be able to run the BeeLine query tests multiple times successfully.
> - Enabled the driver
> - Modified the regexps to hide when comparing the results
> - Configured to run only 1 qtest file - so we can test, and could decide later of the beeline testing scope
> - Added required dependencies to pom
> - Added specific results dir for beeline q.out-s
>
>
> Diffs
> -----
>
> beeline/src/java/org/apache/hive/beeline/util/QFileClient.java 81f1b0e
> itests/qtest/src/test/java/org/apache/hadoop/hive/cli/DisabledTestBeeLineDriver.java cb276e6
> itests/qtest/src/test/java/org/apache/hadoop/hive/cli/TestBeeLineDriver.java PRE-CREATION
> itests/src/test/resources/testconfiguration.properties 97e310d
> itests/util/pom.xml 6d93dc1
> itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CliConfigs.java 366c7b4
> itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java e5144e3
> ql/src/test/results/clientpositive/beeline/escape_comments.q.out PRE-CREATION
>
> Diff: https://reviews.apache.org/r/52978/diff/
>
>
> Testing
> -------
>
> Manually on my computer several runs.
> Waiting for the QA tests
>
>
> Thanks,
>
> Peter Vary
>
>
Re: Review Request 52978: HIVE-14459 TestBeeLineDriver - migration and
re-enable
Posted by Peter Vary <pv...@cloudera.com>.
> On Feb. 18, 2017, 11:17 p.m., Vihang Karajgaonkar wrote:
> > itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java, lines 81-86
> > <https://reviews.apache.org/r/52978/diff/3/?file=1541464#file1541464line81>
> >
> > Is it possible to use miniHS2 instead?
>
> Peter Vary wrote:
> This is a very good idea! I think we should do that...
> The same applies here as above - tried to keep my changes minimal - Shall we change this here, or in a followup jira to separate the changes?
Checked this, using miniHS2 would mean circular dependency. We have to move the CoreBeeLineDriver to hive-unit module to remove this problem. I think I will ask Zoltan what does he think about the refactor
- Peter
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52978/#review166031
-----------------------------------------------------------
On Oct. 19, 2016, 1:39 p.m., Peter Vary wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52978/
> -----------------------------------------------------------
>
> (Updated Oct. 19, 2016, 1:39 p.m.)
>
>
> Review request for hive, Zoltan Haindrich, Marta Kuczora, Miklos Csanady, Prasanth_J, Sergey Shelukhin, Sergio Pena, Siddharth Seth, and Barna Zsombor Klara.
>
>
> Bugs: HIVE-14459
> https://issues.apache.org/jira/browse/HIVE-14459
>
>
> Repository: hive-git
>
>
> Description
> -------
>
> Kept the changes minimal with the sole goal to be able to run the BeeLine query tests multiple times successfully.
> - Enabled the driver
> - Modified the regexps to hide when comparing the results
> - Configured to run only 1 qtest file - so we can test, and could decide later of the beeline testing scope
> - Added required dependencies to pom
> - Added specific results dir for beeline q.out-s
>
>
> Diffs
> -----
>
> beeline/src/java/org/apache/hive/beeline/util/QFileClient.java 81f1b0e
> itests/qtest/src/test/java/org/apache/hadoop/hive/cli/DisabledTestBeeLineDriver.java cb276e6
> itests/qtest/src/test/java/org/apache/hadoop/hive/cli/TestBeeLineDriver.java PRE-CREATION
> itests/src/test/resources/testconfiguration.properties 97e310d
> itests/util/pom.xml 6d93dc1
> itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CliConfigs.java 366c7b4
> itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java e5144e3
> ql/src/test/results/clientpositive/beeline/escape_comments.q.out PRE-CREATION
>
> Diff: https://reviews.apache.org/r/52978/diff/
>
>
> Testing
> -------
>
> Manually on my computer several runs.
> Waiting for the QA tests
>
>
> Thanks,
>
> Peter Vary
>
>
Re: Review Request 52978: HIVE-14459 TestBeeLineDriver - migration and
re-enable
Posted by Peter Vary <pv...@cloudera.com>.
> On Feb. 18, 2017, 11:17 p.m., Vihang Karajgaonkar wrote:
> > beeline/src/java/org/apache/hive/beeline/util/QFileClient.java, line 125
> > <https://reviews.apache.org/r/52978/diff/3/?file=1541458#file1541458line125>
> >
> > can you please add a comment saying what the filter regex is doing to make it easier to understand?
Will do - This is for removing the timestamp from the begining of the log lines
> On Feb. 18, 2017, 11:17 p.m., Vihang Karajgaonkar wrote:
> > itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java, lines 66-68
> > <https://reviews.apache.org/r/52978/diff/3/?file=1541464#file1541464line66>
> >
> > Not sure why we need this? Can you please add some comment to help us understand
To be honest, I was aiming for the minimal change, and did not try to run without it. Will check - my guess is that the HiveServer configured to use ZK cluster for something.
> On Feb. 18, 2017, 11:17 p.m., Vihang Karajgaonkar wrote:
> > itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java, lines 81-86
> > <https://reviews.apache.org/r/52978/diff/3/?file=1541464#file1541464line81>
> >
> > Is it possible to use miniHS2 instead?
This is a very good idea! I think we should do that...
The same applies here as above - tried to keep my changes minimal - Shall we change this here, or in a followup jira to separate the changes?
> On Feb. 18, 2017, 11:17 p.m., Vihang Karajgaonkar wrote:
> > itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java, line 116
> > <https://reviews.apache.org/r/52978/diff/3/?file=1541464#file1541464line116>
> >
> > Having a fixed port number could become a problem in ptests. May be we should use a port number which is available in the run time (I think miniHS2 instantiates on a available port at the run time)
As above :)
- Peter
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52978/#review166031
-----------------------------------------------------------
On Oct. 19, 2016, 1:39 p.m., Peter Vary wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52978/
> -----------------------------------------------------------
>
> (Updated Oct. 19, 2016, 1:39 p.m.)
>
>
> Review request for hive, Zoltan Haindrich, Marta Kuczora, Miklos Csanady, Prasanth_J, Sergey Shelukhin, Sergio Pena, Siddharth Seth, and Barna Zsombor Klara.
>
>
> Bugs: HIVE-14459
> https://issues.apache.org/jira/browse/HIVE-14459
>
>
> Repository: hive-git
>
>
> Description
> -------
>
> Kept the changes minimal with the sole goal to be able to run the BeeLine query tests multiple times successfully.
> - Enabled the driver
> - Modified the regexps to hide when comparing the results
> - Configured to run only 1 qtest file - so we can test, and could decide later of the beeline testing scope
> - Added required dependencies to pom
> - Added specific results dir for beeline q.out-s
>
>
> Diffs
> -----
>
> beeline/src/java/org/apache/hive/beeline/util/QFileClient.java 81f1b0e
> itests/qtest/src/test/java/org/apache/hadoop/hive/cli/DisabledTestBeeLineDriver.java cb276e6
> itests/qtest/src/test/java/org/apache/hadoop/hive/cli/TestBeeLineDriver.java PRE-CREATION
> itests/src/test/resources/testconfiguration.properties 97e310d
> itests/util/pom.xml 6d93dc1
> itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CliConfigs.java 366c7b4
> itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CoreBeeLineDriver.java e5144e3
> ql/src/test/results/clientpositive/beeline/escape_comments.q.out PRE-CREATION
>
> Diff: https://reviews.apache.org/r/52978/diff/
>
>
> Testing
> -------
>
> Manually on my computer several runs.
> Waiting for the QA tests
>
>
> Thanks,
>
> Peter Vary
>
>