Hive
Hive from the Command prompt
Read how to run from command promptGet info re hive options by running hive -h
From within hive, use:
source FILE
Run a hive program from shell or command line using: hive -f
Example shell script calling hive directly.
while [ 1 ]
do
hive -e "select count(*) from mytable where id = $RANDOM"
done
Hive UDFs
Write own Hive UDFJoin optimisation hints
Check out the join optimisation hints for Hive queries in this article.
Setting mapred.child.java.opts in hive
The first two did not work for me.
The third did.
hive> SET mapred.child.java.opts=-Xmx512M;
No comments:
Post a Comment