Jesse Anderson created HIVE-6895:
------------------------------------
Summary: Beeline -f Requires A New Line
Key: HIVE-6895
URL: https://issues.apache.org/jira/browse/HIVE-6895
Project: Hive
Issue Type: Bug
Components: CLI
Affects Versions: 0.10.0
Reporter: Jesse Anderson
When a file is run through Beeline, the file must contain a newline at the end
of the file or the command will not run. The Beeline shell seems to disconnect
without running the command.
Here is the command without a newline:
{noformat}
[training@dev solution]$ beeline -u jdbc:hive2://dev.loudacre.com -n training
-p training -f create-devicestatus-table.hql
scan complete in 7ms
Connecting to jdbc:hive2://dev.loudacre.com
Connected to: Hive (version 0.10.0)
Driver: Hive (version 0.10.0-cdh4.5.0)
Transaction isolation: TRANSACTION_REPEATABLE_READ
Beeline version 0.10.0-cdh4.5.0 by Apache Hive
0: jdbc:hive2://dev.loudacre.com> DROP TABLE IF EXISTS devicestatus;Closing:
org.apache.hive.jdbc.HiveConnection
{noformat}
Here is the same command with a newline:
{noformat}
[training@dev solution]$ beeline -u jdbc:hive2://dev.loudacre.com -n training
-p training -f create-devicestatus-table.hql
scan complete in 8ms
Connecting to jdbc:hive2://dev.loudacre.com
Connected to: Hive (version 0.10.0)
Driver: Hive (version 0.10.0-cdh4.5.0)
Transaction isolation: TRANSACTION_REPEATABLE_READ
Beeline version 0.10.0-cdh4.5.0 by Apache Hive
0: jdbc:hive2://dev.loudacre.com> DROP TABLE IF EXISTS devicestatus;
No rows affected (0.222 seconds)
0: jdbc:hive2://dev.loudacre.com> Closing: org.apache.hive.jdbc.HiveConnection
{noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)