Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E5C3119E3 for ; Fri, 11 Jul 2014 16:36:23 +0000 (UTC) Received: (qmail 78006 invoked by uid 500); 11 Jul 2014 16:36:18 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 77897 invoked by uid 500); 11 Jul 2014 16:36:18 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 77883 invoked by uid 99); 11 Jul 2014 16:36:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2014 16:36:18 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simond301@gmail.com designates 209.85.220.178 as permitted sender) Received: from [209.85.220.178] (HELO mail-vc0-f178.google.com) (209.85.220.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2014 16:36:14 +0000 Received: by mail-vc0-f178.google.com with SMTP id ij19so2602624vcb.9 for ; Fri, 11 Jul 2014 09:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=76Or5Dy+VMnYkUb88cBIxi0bOn3OPM+/PHXnoc1xUcA=; b=etdHeVS6opH+K+/y6aLs7Nparzm/Q3S4keZj2yVCnJs6wOD3/wGq1HjH9A63TAxGi5 XuHecFKXZXT9yhqnAGTYE+GpOvDubLCzFwx61Gixx7DgpJ5REp2rpI5EBhHK6cU5EiO1 STpqsvuxEeqXWT7eNKFMRcIShk9dM2vc9Nz9vh93jrxfAt6LmwnMSYZcvw+AhcfNbOeA HJmXeg9Y1j9d2xracFOwN+a+dARj/ma2m5hQmOBAPGuxllZ3qzkuwEqAHomgzx4Nacut PZ8UwtrwxAKZC9CN2N51SmXrcyvEws/UMvPUe3ZluDrJxuZKo5IOXVNCm/bybUZ6ulg2 3tQA== MIME-Version: 1.0 X-Received: by 10.220.182.5 with SMTP id ca5mr1583vcb.50.1405096549828; Fri, 11 Jul 2014 09:35:49 -0700 (PDT) Received: by 10.220.170.73 with HTTP; Fri, 11 Jul 2014 09:35:49 -0700 (PDT) In-Reply-To: References: Date: Fri, 11 Jul 2014 09:35:49 -0700 Message-ID: Subject: Re: silence/suppress output from mkdir & put From: Simon Dong To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a1133d7eaba4e1404fded88c7 X-Virus-Checked: Checked by ClamAV on apache.org --001a1133d7eaba4e1404fded88c7 Content-Type: text/plain; charset=UTF-8 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 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 > --001a1133d7eaba4e1404fded88c7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The output is probably from stderr. Try:

hadoop fs -mk= dir /logs/firsttier/2014/D/03 > /dev/null 2>&1


On Fri, Jul 1= 1, 2014 at 8:01 AM, John Meza <j_mezazap@hotmail.com> wr= ote:
I'm try to silence the output of a hdfs load= script (snippets below), but continue to get output. This causes is= sues when the multiple load scripts are put into background.

Am I missing something? Are there switches I could use?
any info is appreciated.
John

had= oop fs -mkdir /logs/firsttier/2014/D/03 > /dev/null
hadoop fs = -put Dserver_46927-esw3c_S-2014-03-31-12-201403311600-1700-0.tsv =C2=A0 =C2= =A0/logs/firsttier/2014/D/06/Dserver_46927-esw3c_S-2014-03-31-12-2014033116= 00-1700-0.tsv > /dev/null

--001a1133d7eaba4e1404fded88c7--