[ 
https://issues.apache.org/jira/browse/HIVE-6694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14046932#comment-14046932
 ] 

Brock Noland commented on HIVE-6694:
------------------------------------

Hi,

Sorry for being unclear. I just meant we add the second line:

{noformat}
beeLine.error("Failed to execute Shell command: " + msg);
beeLine.error(e);
{noformat}

or alternatively create an error method on BeeLine which prints the stacktrace.

Brock

> Beeline should provide a way to execute shell command as Hive CLI does
> ----------------------------------------------------------------------
>
>                 Key: HIVE-6694
>                 URL: https://issues.apache.org/jira/browse/HIVE-6694
>             Project: Hive
>          Issue Type: Improvement
>          Components: CLI, Clients
>    Affects Versions: 0.11.0, 0.12.0, 0.13.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.14.0
>
>         Attachments: HIVE-6694.1.patch, HIVE-6694.1.patch, HIVE-6694.2.patch, 
> HIVE-6694.3.patch, HIVE-6694.4.patch, HIVE-6694.patch
>
>
> Hive CLI allows a user to execute a shell command using ! notation. For 
> instance, !cat myfile.txt. Being able to execute shell command may be 
> important for some users. As a replacement, however, Beeline provides no such 
> capability, possibly because ! notation is reserved for SQLLine commands. 
> It's possible to provide this using a slightly syntactic variation such as 
> !sh cat myfilie.txt.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to