[
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)