[ https://issues.apache.org/jira/browse/HIVE-6694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14045116#comment-14045116 ]
Xuefu Zhang commented on HIVE-6694: ----------------------------------- [~brocknoland] Just make sure that I understand correctly. Did you mean I need to check if e.getLocalizedMessage() is null? Would you like to see something like the following: {code} String msg = e.getLocalizedMessage(); if (msg == null) msg = "unknown cause" beeLine.error("Failed to execute Shell command: " + msg); {code} > 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)