Hi ,
Can you give me the steps for running the .hql scripts from beeline prompt?
i get below error.
0: jdbc:hive2://> source /home/local/hive/p.hql;
NoViableAltException(26@[])
at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1079)
at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:202)
at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166)
****************
i am comfortable with below command and it works
1) hive> source /home/local/hive/p.hql;
OK
table_1
table_2
Time taken: 0.231 seconds, Fetched: 2 row(s)
hive>
2) beeline -u jdbc:hive2://xxxxxxxxxx:10000/default -n hive -p hive -f /home/local/hive/st.hql >> out.txt
3) $HIVE_HOME/bin/hive -f /home/local/hive/st.hql --database default > out.txt