在Hive中,quit和exit有什么区别?

4

当我退出hive时,“quit”和“exit”之间有什么区别吗?

1个回答

4
根据Hive文档,quit和exit在退出hive CLI时具有完全相同的功能。
此外,根据源代码,这两个命令的功能完全相同。
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 (...

以下是有关编程的内容:链接可能会失效,因此建议在答案中添加相关部分(除了链接)。抱歉,我无法提供更多信息,因为您没有提供要翻译的具体内容。请提供需要翻译的文本。 - David דודו Markovitz

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接