Author: Hao Zhu
Original Publication Date:July 6, 2015
Hive all versions
Beeline of HiveServer2 hangs if huge output data is returned. At this point users have no choice but to kill (ctrl-C) beeline. Also, "Out of Memory" error may show up.
As per HIVE-7224, by default beeline tries to buffer the entire output relation before printing it on stdout.
Beeline has the option "--incremental=true" to print output incrementally. This option is not in "beeline --help" command output yet.
So just invoke beeline as below: