From the hive documentation, it seems that quit and exit perform the same function of exiting the hive CLI.
Further, according to the source code, both commands are functionally identical.
if (cmd_trimmed.toLowerCase().equals("quit") || cmd_trimmed.toLowerCase().equals("exit")) {
// if we have come this far - either the previous commands
// are all successful or this is command line. in either case
// this counts as a successful run
ss.close();
System.exit(0);
} else if (...
source
share