0

Wondering if there is any way to somehow hide sqoop process output in Unix shell?

For example instead of that output put some text like "sqoop processing"

Thanks

andreww
  • 223
  • 6
  • 16
  • Possible duplicate of [How can I redirect and append both stdout and stderr to a file with Bash?](http://stackoverflow.com/questions/876239/how-can-i-redirect-and-append-both-stdout-and-stderr-to-a-file-with-bash) – Dennis Jaheruddin Sep 14 '16 at 12:49
  • Not exactly, it does not solve my problem, still getting sqoop output. – andreww Sep 14 '16 at 13:01
  • Possible duplicate of [suppress the output to screen in shell script](http://stackoverflow.com/questions/5960567/suppress-the-output-to-screen-in-shell-script) – Dev Sep 14 '16 at 16:58

1 Answers1

0

The way I deal with this for pig scripts (which also tend to give a lot of output, and run for a long time) is as follows:

Rather than running

pig mypath/myscript.pig

I will run

nohup pig mypath/myscript.pig &

In your case that would mean something like

nohup oozie -job something &

This has the additional benefit that it will not stop your query if your SSH connection times out. If you do not use SSH at the moment, this may be an additional required step.

Dennis Jaheruddin
  • 21,208
  • 8
  • 66
  • 122