Return-Path: X-Original-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A4FCCFE2 for ; Sun, 20 May 2012 01:35:47 +0000 (UTC) Received: (qmail 77482 invoked by uid 500); 20 May 2012 01:35:47 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 77409 invoked by uid 500); 20 May 2012 01:35:46 -0000 Mailing-List: contact mapreduce-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-dev@hadoop.apache.org Received: (qmail 77398 invoked by uid 99); 20 May 2012 01:35:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 May 2012 01:35:46 +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 yuzhihong@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-wg0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 May 2012 01:35:42 +0000 Received: by wgbdq11 with SMTP id dq11so3703355wgb.29 for ; Sat, 19 May 2012 18:35:20 -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=aR+gDAtzsPjHVOg4TLVW6SAL61uB+6yXzAyiVGRYqwc=; b=0NrNpKGNGYaDdKjyeB2nb3boWi1l5dD+wtp2Tbd7qpEN0Ffeqec0v9FCZzPBKWkxGL Amu67NLobOKFQyfvEIkj2E7MLz6M9GNsjpYV/2sO9NeJLczgkD1XIOfIXbUPMb0+OxK3 uwjhkgR6FKhmsIssVnyvflkvC/3SQN0wyCOYiXMKMgBELsqd6OZfXaX+5NW4rm1cnTpY 5kB+a3KvVDfPPZ1YWOsjw+o24bwFRwsXX8YuFc5KaVxBejliTiGnrdHfJBIxh+UkdL8C gef2sZVbyeKEyOXH4k+y1oOyPjOKmC6dugh65M2yfsoS7tFU9Ls9SN6EC7moGyyZjvXU 6tjA== MIME-Version: 1.0 Received: by 10.180.97.66 with SMTP id dy2mr13394230wib.0.1337477720838; Sat, 19 May 2012 18:35:20 -0700 (PDT) Received: by 10.216.16.9 with HTTP; Sat, 19 May 2012 18:35:20 -0700 (PDT) In-Reply-To: References: Date: Sat, 19 May 2012 18:35:20 -0700 Message-ID: Subject: Re: ClassNotFoundException: org.apache.commons.io.FileUtils From: Ted Yu To: mapreduce-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=f46d0443060a7212db04c06dccd0 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0443060a7212db04c06dccd0 Content-Type: text/plain; charset=ISO-8859-1 I don't see 1.0.4 in Fix Versions dropdown list. Personally this defect should at least be documented in 1.0.3 release notes. Users would have to package commons-io 2.1 themselves so that map/reduce jobs can succeed. On Sat, May 19, 2012 at 6:25 PM, Ted Yu wrote: > HADOOP-8417 has been filed. > > > On Sat, May 19, 2012 at 5:59 PM, Luke Lu wrote: > >> Looks like this is caused by HADOOP-6963, which introduced commons-io >> 2.1 in ivy.xml but forgot to update the hadoop-core-pom-template.xml. >> The old version (1.3.2) of the commons-io is probably an existing >> transient dependency. Please file a blocker/critical bug for >> 1.0.4/1.1.0. The workaround would be explicitly include commons-io 2.1 >> in downstream projects, but it's not the right thing to do. >> >> __Luke >> >> On Thu, May 17, 2012 at 9:37 PM, Ted Yu wrote: >> > I changed hadoop version to 1.0.2 and the test passed. >> > >> > I would tend to say 1.0.3 had a regression in this regard. >> > >> > Cheers >> > >> > On Thu, May 17, 2012 at 8:11 PM, Ted Yu wrote: >> > >> >> Correction to my first email: >> >> I refreshed my HBase 0.92 workspace and I could see the same test >> failure. >> >> >> >> Under ~/.m2/repository/org/apache/commons/commons-io, I still see 1.3.2 >> >> >> >> I ran 'mvn dependency:tree' under 0.92 and don't see commons-io in the >> >> output. >> >> >> >> Do we need to include commons-io explicitly in our pom.xml ? >> >> >> >> For Todd's question: >> >> >> >> LM-SJN-00713032:205-hadoop zhihyu$ svn info >> >> Path: . >> >> URL: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1 >> >> Repository Root: https://svn.apache.org/repos/asf >> >> Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68 >> >> Revision: 1339961 >> >> Node Kind: directory >> >> Schedule: normal >> >> Last Changed Author: mattf >> >> Last Changed Rev: 1339945 >> >> Last Changed Date: 2012-05-17 18:25:57 -0700 (Thu, 17 May 2012) >> >> >> >> The line I referenced in my first email came from >> ivy/libraries.properties >> >> >> >> >> >> On Thu, May 17, 2012 at 8:06 PM, Todd Lipcon >> wrote: >> >> >> >>> I believe we upgraded to commons-io 3.0 in 1.0.3. Did you check the >> 1.0.3 >> >>> pom? >> >>> >> >>> -Todd >> >>> >> >>> On Thu, May 17, 2012 at 8:01 PM, Ted Yu wrote: >> >>> > Hi, >> >>> > HBase 0.92 upgraded hadoop to 1.0.3 today. >> >>> > We started seeing some test failures which we didn't see before. >> e.g.: >> >>> > >> >>> >> https://builds.apache.org/view/G-L/view/HBase/job/HBase-0.92/410/testReport/org.apache.hadoop.hbase.mapred/TestTableMapReduce/testMultiRegionTable/ >> >>> > Here is the interesting part: >> >>> > >> >>> > Caused by: java.lang.ClassNotFoundException: >> >>> org.apache.commons.io.FileUtils >> >>> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) >> >>> > at java.security.AccessController.doPrivileged(Native Method) >> >>> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) >> >>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) >> >>> > at >> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) >> >>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) >> >>> > ... 15 more >> >>> > >> >>> > In hadoop 1.0, I see: >> >>> > commons-io.version=2.1 >> >>> > >> >>> > HBase doesn't specify commons-io version. >> >>> > >> >>> > When I run the same test on MacBook, I don't see the test fail. >> >>> > >> >>> > commons-io in local mvn repo is 1.3.2 >> >>> > >> >>> > If someone can give me hint on why the unit test failed, that would >> be >> >>> > great. >> >>> >> >>> >> >>> >> >>> -- >> >>> Todd Lipcon >> >>> Software Engineer, Cloudera >> >>> >> >> >> >> >> > > --f46d0443060a7212db04c06dccd0--