&>之间的差异和>在蜂巢

时间:2015-07-08 16:48:40

标签: hive

任何人都可以告诉我在hive中&>>之间的区别是什么?

何时使用哪一个?

对于我的工作,hive -f Script.hql > output.xls有效且hive -f Script.hql &> output.xlsx有效吗?

1 个答案:

答案 0 :(得分:0)

这不是hive特有的,而是shell中的一个功能。 command &> file将stdout重定向到文件, String output = Arrays.deepToString(num1); JOptionPane.showMessageDialog(null, output, "Uitvoer", JOptionPane.INFORMATION_MESSAGE); 将stderr和stdout重定向到同一文件。

另见Redirect stderr and stdout in a Bash script

相关问题