You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by John Meza <j_...@hotmail.com> on 2014/07/11 17:01:06 UTC

silence/suppress output from mkdir & put

I'm try to silence the output of a hdfs load script (snippets below), but continue to get output. This causes issues when the multiple load scripts are put into background.
Am I missing something? Are there switches I could use?any info is appreciated.John
hadoop fs -mkdir /logs/firsttier/2014/D/03 > /dev/nullhadoop fs -put Dserver_46927-esw3c_S-2014-03-31-12-201403311600-1700-0.tsv    /logs/firsttier/2014/D/06/Dserver_46927-esw3c_S-2014-03-31-12-201403311600-1700-0.tsv > /dev/null 		 	   		  

Re: silence/suppress output from mkdir & put

Posted by Simon Dong <si...@gmail.com>.
The output is probably from stderr. Try:

hadoop fs -mkdir /logs/firsttier/2014/D/03 > /dev/null 2>&1


On Fri, Jul 11, 2014 at 8:01 AM, John Meza <j_...@hotmail.com> wrote:

> I'm try to silence the output of a hdfs load script (*snippets below*),
> but continue to get output. This causes issues when the multiple load
> scripts are put into background.
>
> Am I missing something? Are there switches I could use?
> any info is appreciated.
> John
>
> hadoop fs -mkdir /logs/firsttier/2014/D/03 > /dev/null
> hadoop fs -put Dserver_46927-esw3c_S-2014-03-31-12-201403311600-1700-0.tsv
>
>  /logs/firsttier/2014/D/06/Dserver_46927-esw3c_S-2014-03-31-12-201403311600-1700-0.tsv
> > /dev/null
>

Re: silence/suppress output from mkdir & put

Posted by Simon Dong <si...@gmail.com>.
The output is probably from stderr. Try:

hadoop fs -mkdir /logs/firsttier/2014/D/03 > /dev/null 2>&1


On Fri, Jul 11, 2014 at 8:01 AM, John Meza <j_...@hotmail.com> wrote:

> I'm try to silence the output of a hdfs load script (*snippets below*),
> but continue to get output. This causes issues when the multiple load
> scripts are put into background.
>
> Am I missing something? Are there switches I could use?
> any info is appreciated.
> John
>
> hadoop fs -mkdir /logs/firsttier/2014/D/03 > /dev/null
> hadoop fs -put Dserver_46927-esw3c_S-2014-03-31-12-201403311600-1700-0.tsv
>
>  /logs/firsttier/2014/D/06/Dserver_46927-esw3c_S-2014-03-31-12-201403311600-1700-0.tsv
> > /dev/null
>

Re: silence/suppress output from mkdir & put

Posted by Simon Dong <si...@gmail.com>.
The output is probably from stderr. Try:

hadoop fs -mkdir /logs/firsttier/2014/D/03 > /dev/null 2>&1


On Fri, Jul 11, 2014 at 8:01 AM, John Meza <j_...@hotmail.com> wrote:

> I'm try to silence the output of a hdfs load script (*snippets below*),
> but continue to get output. This causes issues when the multiple load
> scripts are put into background.
>
> Am I missing something? Are there switches I could use?
> any info is appreciated.
> John
>
> hadoop fs -mkdir /logs/firsttier/2014/D/03 > /dev/null
> hadoop fs -put Dserver_46927-esw3c_S-2014-03-31-12-201403311600-1700-0.tsv
>
>  /logs/firsttier/2014/D/06/Dserver_46927-esw3c_S-2014-03-31-12-201403311600-1700-0.tsv
> > /dev/null
>

Re: silence/suppress output from mkdir & put

Posted by Simon Dong <si...@gmail.com>.
The output is probably from stderr. Try:

hadoop fs -mkdir /logs/firsttier/2014/D/03 > /dev/null 2>&1


On Fri, Jul 11, 2014 at 8:01 AM, John Meza <j_...@hotmail.com> wrote:

> I'm try to silence the output of a hdfs load script (*snippets below*),
> but continue to get output. This causes issues when the multiple load
> scripts are put into background.
>
> Am I missing something? Are there switches I could use?
> any info is appreciated.
> John
>
> hadoop fs -mkdir /logs/firsttier/2014/D/03 > /dev/null
> hadoop fs -put Dserver_46927-esw3c_S-2014-03-31-12-201403311600-1700-0.tsv
>
>  /logs/firsttier/2014/D/06/Dserver_46927-esw3c_S-2014-03-31-12-201403311600-1700-0.tsv
> > /dev/null
>