Return-Path: X-Original-To: apmail-mahout-user-archive@www.apache.org Delivered-To: apmail-mahout-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D965E11FFC for ; Mon, 16 Jun 2014 23:50:26 +0000 (UTC) Received: (qmail 1533 invoked by uid 500); 16 Jun 2014 23:50:24 -0000 Delivered-To: apmail-mahout-user-archive@mahout.apache.org Received: (qmail 1456 invoked by uid 500); 16 Jun 2014 23:50:24 -0000 Mailing-List: contact user-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mahout.apache.org Delivered-To: mailing list user@mahout.apache.org Received: (qmail 1444 invoked by uid 99); 16 Jun 2014 23:50:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2014 23:50:24 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ted.dunning@gmail.com designates 209.85.223.182 as permitted sender) Received: from [209.85.223.182] (HELO mail-ie0-f182.google.com) (209.85.223.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2014 23:50:18 +0000 Received: by mail-ie0-f182.google.com with SMTP id rp18so5794665iec.13 for ; Mon, 16 Jun 2014 16:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=zUKYtY0bQZwllafyjLRsQz5gZfCL1o4f9tKJDrAriZQ=; b=0ySh6DC18Be8KtaORGvGU8p9WtTQ2WK5DRgicNj2vizruQccskq4VbTZtKuZLLLNGH hamljcR5LJaea4gK5MEcqRrmCelrK+jusZs80TStJCUFHVzkPxK+sm1BTufAkL1GucC+ w2NJ8tH9kdJOQ6RN4YTPTevzQoU6WrBc309lo3CGvTb7YsrR2bkFpdj2m28zfqWoIVCv 5X6BXyrLbwcH/6FKWzt/fJ0Ul8MZgotunzS8z886h/gcIH65oxXENqm5x6BRg4E+8ri+ Opf2+dR0+0p8oWbhJ0Ge+/nQOOKgvG0Ma9V9NWqK0+S5X5p016G0Gy0BzAmG0QBHuH3b sROg== X-Received: by 10.42.106.15 with SMTP id x15mr6404932ico.67.1402962597721; Mon, 16 Jun 2014 16:49:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.13.113 with HTTP; Mon, 16 Jun 2014 16:49:27 -0700 (PDT) In-Reply-To: References: From: Ted Dunning Date: Mon, 16 Jun 2014 16:49:27 -0700 Message-ID: Subject: Re: a seemingly benign test that fails MahoutTestCase To: "user@mahout.apache.org" Content-Type: multipart/alternative; boundary=20cf3042706645539e04fbfcafd4 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3042706645539e04fbfcafd4 Content-Type: text/plain; charset=UTF-8 Attachments are stripped by the mailing list. Can you throw the stack trace onto a github gist or something? On Mon, Jun 16, 2014 at 3:27 PM, Wei Zhang wrote: > > > Hello, > > I am wrting a simple Unit test, which extends MahoutTestCase. I am using > Mahout 0.9 and Hadoop 1.0.3. > > The test is quite simple, it just creates an empty file on HDFS. The entire > coding is the following: > > @Test > public void simpleTest() throws IOException{ > Configuration conf = new Configuration(); > FileSystem fs = FileSystem.get(conf); > Path filenamePath = new Path("/tmp/tmp.txt"); > FSDataOutputStream out = fs.create(filenamePath); > out.close(); > } > > However, this will fail the MahoutTestCase. In particular, the moment I > added the line 4 (FSDataOutputStream out = fs.create(filenamePath);), this > test would fail. > I am wondering can anyone give me some pointers regarding why this naive > program would fail ? > The error log is attached below. > > Thank you very much ! > > Wei --20cf3042706645539e04fbfcafd4--