I am unable to run
beeline -f file_queries.hql
Error:
$ beeline -f edip_validations_hql.hql
beeline> {My Query}
No current connection
Note: I am on Kerberos so I have done kinit. Usually for beeline to work I have to do a
!connect jdbc:hive2://XX.xxxx.xx.org:10000/default;principal=hive/[email protected]
However I am not clear how this would work. Any pointers would help.
To start Beeline, run beeline shell which is located at $HIVE_HOME/bin directory. This prompts you to an interactive Hive Beeline CLI Shell where you can run HiveQL commands. You can enter !
All -
I found out how to do this.
beeline -u 'jdbc:hive2://server.domain.<>.com:10000/default;principal=hive/[email protected]' -f filename.hql
I just found out one way to run File in Hive Beeline.
Just Go to the Hive beeline
//use !run to run script File
beeline> !run ///C:/ScriptFile
Above Method surely helpful to run file beeline after connect to the hive server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With