[jira] [Commented] (HIVE-15710) HS2 Stopped when running in background
[ https://issues.apache.org/jira/browse/HIVE-15710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15871059#comment-15871059 ] Rui Li commented on HIVE-15710: --- The age1 failure can't be reproduced locally. I'll commit shortly if no further comments. > HS2 Stopped when running in background > -- > > Key: HIVE-15710 > URL: https://issues.apache.org/jira/browse/HIVE-15710 > Project: Hive > Issue Type: Bug >Reporter: Rui Li >Assignee: Rui Li > Attachments: HIVE-15710.1.patch, HIVE-15710.2.patch, > HIVE-15710.3.patch > > > To reproduce, start HS2 in background like {{hive --service hiveserver2 &}}, > and run some query from beeline using Tez or Spark as engine. > I think it's similar to HIVE-6758: HS2 uses jline for the in-place progress > update, and receives SIGTTOU when trying to call stty. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (HIVE-15710) HS2 Stopped when running in background
[ https://issues.apache.org/jira/browse/HIVE-15710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15869909#comment-15869909 ] Hive QA commented on HIVE-15710: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12852984/HIVE-15710.3.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 9 failed/errored test(s), 10224 tests executed *Failed tests:* {noformat} TestDerbyConnector - did not produce a TEST-*.xml file (likely timed out) (batchId=235) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[cbo_rp_auto_join1] (batchId=3) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[join31] (batchId=81) org.apache.hadoop.hive.cli.TestEncryptedHDFSCliDriver.testCliDriver[encryption_join_with_different_encryption_keys] (batchId=159) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[multiMapJoin2] (batchId=152) org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query14] (batchId=223) org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query23] (batchId=223) org.apache.hadoop.hive.cli.TestSparkCliDriver.org.apache.hadoop.hive.cli.TestSparkCliDriver (batchId=114) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[join31] (batchId=133) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/3596/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/3596/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-3596/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 9 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12852984 - PreCommit-HIVE-Build > HS2 Stopped when running in background > -- > > Key: HIVE-15710 > URL: https://issues.apache.org/jira/browse/HIVE-15710 > Project: Hive > Issue Type: Bug >Reporter: Rui Li >Assignee: Rui Li > Attachments: HIVE-15710.1.patch, HIVE-15710.2.patch, > HIVE-15710.3.patch > > > To reproduce, start HS2 in background like {{hive --service hiveserver2 &}}, > and run some query from beeline using Tez or Spark as engine. > I think it's similar to HIVE-6758: HS2 uses jline for the in-place progress > update, and receives SIGTTOU when trying to call stty. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (HIVE-15710) HS2 Stopped when running in background
[ https://issues.apache.org/jira/browse/HIVE-15710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15869301#comment-15869301 ] Ferdinand Xu commented on HIVE-15710: - LGTM +1 pending on the test > HS2 Stopped when running in background > -- > > Key: HIVE-15710 > URL: https://issues.apache.org/jira/browse/HIVE-15710 > Project: Hive > Issue Type: Bug >Reporter: Rui Li >Assignee: Rui Li > Attachments: HIVE-15710.1.patch, HIVE-15710.2.patch, > HIVE-15710.3.patch > > > To reproduce, start HS2 in background like {{hive --service hiveserver2 &}}, > and run some query from beeline using Tez or Spark as engine. > I think it's similar to HIVE-6758: HS2 uses jline for the in-place progress > update, and receives SIGTTOU when trying to call stty. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (HIVE-15710) HS2 Stopped when running in background
[ https://issues.apache.org/jira/browse/HIVE-15710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15868655#comment-15868655 ] Mohit Sabharwal commented on HIVE-15710: [~Ferd], proposal to only do background logic for beeline and hs2 looks good to me. > HS2 Stopped when running in background > -- > > Key: HIVE-15710 > URL: https://issues.apache.org/jira/browse/HIVE-15710 > Project: Hive > Issue Type: Bug >Reporter: Rui Li >Assignee: Rui Li > Attachments: HIVE-15710.1.patch, HIVE-15710.2.patch > > > To reproduce, start HS2 in background like {{hive --service hiveserver2 &}}, > and run some query from beeline using Tez or Spark as engine. > I think it's similar to HIVE-6758: HS2 uses jline for the in-place progress > update, and receives SIGTTOU when trying to call stty. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (HIVE-15710) HS2 Stopped when running in background
[ https://issues.apache.org/jira/browse/HIVE-15710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15868011#comment-15868011 ] Ferdinand Xu commented on HIVE-15710: - Thanks [~lirui] for the update. I checked the code of {code}/bin/hive{code}. How about adding the logic of checkRunInBackground into that script? And you can check whether the service is beeline or HS2 like following: {noformat} if [[ "$SERVICE" =~ ^(beeline|hiveserver2)$ ]] ; then export HADOOP_CLIENT_OPTS="$HADOOP_CLIENT_OPTS -Djline.terminal=jline.UnsupportedTerminal" fi {noformat} > HS2 Stopped when running in background > -- > > Key: HIVE-15710 > URL: https://issues.apache.org/jira/browse/HIVE-15710 > Project: Hive > Issue Type: Bug >Reporter: Rui Li >Assignee: Rui Li > Attachments: HIVE-15710.1.patch, HIVE-15710.2.patch > > > To reproduce, start HS2 in background like {{hive --service hiveserver2 &}}, > and run some query from beeline using Tez or Spark as engine. > I think it's similar to HIVE-6758: HS2 uses jline for the in-place progress > update, and receives SIGTTOU when trying to call stty. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (HIVE-15710) HS2 Stopped when running in background
[ https://issues.apache.org/jira/browse/HIVE-15710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15867984#comment-15867984 ] Hive QA commented on HIVE-15710: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12852808/HIVE-15710.2.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 8 failed/errored test(s), 10238 tests executed *Failed tests:* {noformat} TestDerbyConnector - did not produce a TEST-*.xml file (likely timed out) (batchId=235) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[cbo_rp_auto_join1] (batchId=3) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[join31] (batchId=81) org.apache.hadoop.hive.cli.TestEncryptedHDFSCliDriver.testCliDriver[encryption_join_with_different_encryption_keys] (batchId=159) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[multiMapJoin2] (batchId=152) org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query14] (batchId=223) org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query23] (batchId=223) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[join31] (batchId=133) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/3569/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/3569/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-3569/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 8 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12852808 - PreCommit-HIVE-Build > HS2 Stopped when running in background > -- > > Key: HIVE-15710 > URL: https://issues.apache.org/jira/browse/HIVE-15710 > Project: Hive > Issue Type: Bug >Reporter: Rui Li >Assignee: Rui Li > Attachments: HIVE-15710.1.patch, HIVE-15710.2.patch > > > To reproduce, start HS2 in background like {{hive --service hiveserver2 &}}, > and run some query from beeline using Tez or Spark as engine. > I think it's similar to HIVE-6758: HS2 uses jline for the in-place progress > update, and receives SIGTTOU when trying to call stty. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (HIVE-15710) HS2 Stopped when running in background
[ https://issues.apache.org/jira/browse/HIVE-15710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15867680#comment-15867680 ] Hive QA commented on HIVE-15710: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12852753/HIVE-15710.1.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 8 failed/errored test(s), 10238 tests executed *Failed tests:* {noformat} TestDerbyConnector - did not produce a TEST-*.xml file (likely timed out) (batchId=235) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[cbo_rp_auto_join1] (batchId=3) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[join31] (batchId=81) org.apache.hadoop.hive.cli.TestEncryptedHDFSCliDriver.testCliDriver[encryption_join_with_different_encryption_keys] (batchId=159) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[multiMapJoin2] (batchId=152) org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query14] (batchId=223) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[join31] (batchId=133) org.apache.hive.jdbc.TestMultiSessionsHS2WithLocalClusterSpark.testSparkQuery (batchId=217) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/3564/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/3564/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-3564/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 8 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12852753 - PreCommit-HIVE-Build > HS2 Stopped when running in background > -- > > Key: HIVE-15710 > URL: https://issues.apache.org/jira/browse/HIVE-15710 > Project: Hive > Issue Type: Bug >Reporter: Rui Li >Assignee: Rui Li > Attachments: HIVE-15710.1.patch > > > To reproduce, start HS2 in background like {{hive --service hiveserver2 &}}, > and run some query from beeline using Tez or Spark as engine. > I think it's similar to HIVE-6758: HS2 uses jline for the in-place progress > update, and receives SIGTTOU when trying to call stty. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (HIVE-15710) HS2 Stopped when running in background
[ https://issues.apache.org/jira/browse/HIVE-15710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15867495#comment-15867495 ] Rui Li commented on HIVE-15710: --- Sorry I meant to start HS2, user can either call {{bin/hiveserver2}}, or call {{bin/hive --service hiveserver2}}. If we add the check to {{bin/hiveserver2}}, it doesn't cover the latter case. I verified I can bypass HIVE-6758 if I call {{bin/hive --service beeline}} instead of {{bin/beeline}}. Now if we don't want to add to {{bin/hive}}, then we should add to {{ext/hiveserver2.sh}}. What do you think? > HS2 Stopped when running in background > -- > > Key: HIVE-15710 > URL: https://issues.apache.org/jira/browse/HIVE-15710 > Project: Hive > Issue Type: Bug >Reporter: Rui Li >Assignee: Rui Li > Attachments: HIVE-15710.1.patch > > > To reproduce, start HS2 in background like {{hive --service hiveserver2 &}}, > and run some query from beeline using Tez or Spark as engine. > I think it's similar to HIVE-6758: HS2 uses jline for the in-place progress > update, and receives SIGTTOU when trying to call stty. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (HIVE-15710) HS2 Stopped when running in background
[ https://issues.apache.org/jira/browse/HIVE-15710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15867446#comment-15867446 ] Ferdinand Xu commented on HIVE-15710: - {noformat} hive --service{noformat} is calling to Hive CLI, It doesn't need "-Djline.terminal=jline.UnsupportedTerminal". > HS2 Stopped when running in background > -- > > Key: HIVE-15710 > URL: https://issues.apache.org/jira/browse/HIVE-15710 > Project: Hive > Issue Type: Bug >Reporter: Rui Li >Assignee: Rui Li > Attachments: HIVE-15710.1.patch > > > To reproduce, start HS2 in background like {{hive --service hiveserver2 &}}, > and run some query from beeline using Tez or Spark as engine. > I think it's similar to HIVE-6758: HS2 uses jline for the in-place progress > update, and receives SIGTTOU when trying to call stty. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (HIVE-15710) HS2 Stopped when running in background
[ https://issues.apache.org/jira/browse/HIVE-15710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15867372#comment-15867372 ] Rui Li commented on HIVE-15710: --- Thanks [~Ferd] for your suggestions. I guess the redundancy is not a big deal. More importantly, we need to prevent user from bypassing the fix by just calling {{hive --service}}. So maybe adding to {{ext/hiveserver2.sh}} is better? > HS2 Stopped when running in background > -- > > Key: HIVE-15710 > URL: https://issues.apache.org/jira/browse/HIVE-15710 > Project: Hive > Issue Type: Bug >Reporter: Rui Li >Assignee: Rui Li > Attachments: HIVE-15710.1.patch > > > To reproduce, start HS2 in background like {{hive --service hiveserver2 &}}, > and run some query from beeline using Tez or Spark as engine. > I think it's similar to HIVE-6758: HS2 uses jline for the in-place progress > update, and receives SIGTTOU when trying to call stty. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (HIVE-15710) HS2 Stopped when running in background
[ https://issues.apache.org/jira/browse/HIVE-15710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15867359#comment-15867359 ] Ferdinand Xu commented on HIVE-15710: - At this point, only hive server2 and beeline requires "-Djline.terminal=jline.UnsupportedTerminal". I prefer to add it to HiveServer2 instead of bin/hive. To avoid redundancy, you may use some utils function and call it under ext. Any ideas?[~mohitsabharwal] > HS2 Stopped when running in background > -- > > Key: HIVE-15710 > URL: https://issues.apache.org/jira/browse/HIVE-15710 > Project: Hive > Issue Type: Bug >Reporter: Rui Li >Assignee: Rui Li > Attachments: HIVE-15710.1.patch > > > To reproduce, start HS2 in background like {{hive --service hiveserver2 &}}, > and run some query from beeline using Tez or Spark as engine. > I think it's similar to HIVE-6758: HS2 uses jline for the in-place progress > update, and receives SIGTTOU when trying to call stty. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (HIVE-15710) HS2 Stopped when running in background
[ https://issues.apache.org/jira/browse/HIVE-15710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15867218#comment-15867218 ] Xuefu Zhang commented on HIVE-15710: Hi [~lirui], your proposal looks good for me. Thanks for working on this. > HS2 Stopped when running in background > -- > > Key: HIVE-15710 > URL: https://issues.apache.org/jira/browse/HIVE-15710 > Project: Hive > Issue Type: Bug >Reporter: Rui Li >Assignee: Rui Li > > To reproduce, start HS2 in background like {{hive --service hiveserver2 &}}, > and run some query from beeline using Tez or Spark as engine. > I think it's similar to HIVE-6758: HS2 uses jline for the in-place progress > update, and receives SIGTTOU when trying to call stty. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (HIVE-15710) HS2 Stopped when running in background
[ https://issues.apache.org/jira/browse/HIVE-15710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15865389#comment-15865389 ] Rui Li commented on HIVE-15710: --- Ping [~xuefuz], [~mohitsabharwal] again. > HS2 Stopped when running in background > -- > > Key: HIVE-15710 > URL: https://issues.apache.org/jira/browse/HIVE-15710 > Project: Hive > Issue Type: Bug >Reporter: Rui Li >Assignee: Rui Li > > To reproduce, start HS2 in background like {{hive --service hiveserver2 &}}, > and run some query from beeline using Tez or Spark as engine. > I think it's similar to HIVE-6758: HS2 uses jline for the in-place progress > update, and receives SIGTTOU when trying to call stty. -- This message was sent by Atlassian JIRA (v6.3.15#6346)