任何人都可以告诉我在hive中&>
和>
之间的区别是什么?
何时使用哪一个?
对于我的工作,hive -f Script.hql > output.xls
有效且hive -f Script.hql &> output.xlsx
有效吗?
答案 0 :(得分:0)
这不是hive特有的,而是shell中的一个功能。 command &> file
将stdout重定向到文件, String output = Arrays.deepToString(num1);
JOptionPane.showMessageDialog(null, output, "Uitvoer",
JOptionPane.INFORMATION_MESSAGE);
将stderr和stdout重定向到同一文件。