What is the difference between exit and exit in the hive

Is there a difference between quit and exit when exiting the hive?

+4
source share
1 answer

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 (...
+4
source

Source: https://habr.com/ru/post/1683804/


All Articles