Support Questions
Find answers, ask questions, and share your expertise

redirect all stdout and error to logfile in sqoop command

Highlighted

redirect all stdout and error to logfile in sqoop command

New Contributor

Hi,

how we can redirect all sqoop command stdout and stderror to log file .so that when i run sqoop command it should not show any message in screen .

I am using below but still showing messga e

sqoop command 2>.&1 >>logfile

2 REPLIES 2

Re: redirect all stdout and error to logfile in sqoop command

Contributor

@kumar pmaha You should use Sqoop command > logfile 2>&1 instead. You can achieve the same functionality using Sqoop command &> logfile. Please let me know if you face any issues.

Highlighted

Re: redirect all stdout and error to logfile in sqoop command

Contributor

@kumar pmaha Can you please update on this and close the issue if resolved?