2016-09-14 62 views
0

想知道是否有办法以某种方式隐藏Unix shell中的sqoop进程输出?替换sqoop进程输出

例如,而不是该输出把一些文字,如“sqoop处理”

感谢

+0

可能的重复[如何重定向和追加stdout和stderr与文件与Bash?](http://stackoverflow.com/questions/876239/how-can-i-redirect-and-append-both -stdout-and-stderr -a-file-with-bash) –

+0

不完全是,它不能解决我的问题,仍然会获得sqoop输出。 – maciek2791

+0

[在shell脚本中禁止输出到屏幕]的可能重复(http://stackoverflow.com/questions/5960567/suppress-the-output-to-screen-in-shell-script) –

回答

0

我对付这种猪的脚本(这也往往给大量的输出,并运行方式很长一段时间)如下:

而不是运行

pig mypath/myscript.pig 

我会跑

nohup pig mypath/myscript.pig & 

在你的情况,这将意味着像

nohup oozie -job something & 

这具有额外的好处,如果你的SSH连接超时它不会停止查询。如果你目前没有使用SSH,这可能是一个额外的必要步骤。