Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 D1793D4AD for ; Wed, 31 Oct 2012 12:14:15 +0000 (UTC) Received: (qmail 37614 invoked by uid 500); 31 Oct 2012 12:14:10 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 37371 invoked by uid 500); 31 Oct 2012 12:14:10 -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 37346 invoked by uid 99); 31 Oct 2012 12:14:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2012 12:14:09 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of saurabhmishra.iitg@outlook.com designates 65.54.190.82 as permitted sender) Received: from [65.54.190.82] (HELO bay0-omc2-s7.bay0.hotmail.com) (65.54.190.82) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2012 12:14:00 +0000 Received: from BAY002-W200 ([65.54.190.125]) by bay0-omc2-s7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 31 Oct 2012 05:13:40 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_1645bc3a-dc13-417f-b8d4-bf378bf1767e_" X-Originating-IP: [163.231.6.69] From: Saurabh Mishra To: "user@hadoop.apache.org" Subject: Unable to Add Jars to distributed cache Date: Wed, 31 Oct 2012 17:43:40 +0530 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 31 Oct 2012 12:13:40.0181 (UTC) FILETIME=[29A21050:01CDB761] X-Virus-Checked: Checked by ClamAV on apache.org --_1645bc3a-dc13-417f-b8d4-bf378bf1767e_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C I tried adding jars to distributed cache through following code : DistributedCache.addArchiveToClassPath(path=2C jobConf)=3B DistributedCache.addCacheArchive(path.toUri()=2C jobConf)= =3B It worked fine for one cluster which is running clodera hadoop installation= (cdh3u1). But when i tried the same job on a self setup apache hadoop cluster (0.20.0= ) it threw class not found exception. I tried matching the job.xml's for th= eir tracker jobs=2C but there was no significatn difference between them. S= till the problem persists. Is there some cluster configuration=2C which needs to be modified to allow = for successful addition of jars to the Distributed Cache. Sincerely Saurabh Mishra = --_1645bc3a-dc13-417f-b8d4-bf378bf1767e_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi=2C
I tried adding jars to = distributed cache through following code :
 =3B =3B =3B &nbs= p=3B =3B =3B  =3B =3B =3B  =3B =3B =3B Dist= ributedCache.addArchiveToClassPath(path=2C jobConf)=3B
 =3B =3B&= nbsp=3B  =3B =3B =3B  =3B =3B =3B  =3B =3B&= nbsp=3B DistributedCache.addCacheArchive(path.toUri()=2C jobConf)=3B
It worked fine for one cluster which is running clodera hadoop installatio= n(cdh3u1).
But when i tried the same job on a self setup apache hadoop c= luster (0.20.0) it threw class not found exception. I tried matching the jo= b.xml's for their tracker jobs=2C but there was no significatn difference b= etween them. Still the problem persists.

Is there some cluster confi= guration=2C which needs to be modified to allow for successful addition of = jars to the Distributed Cache.

Sincerely
Saurabh Mishra
=
= --_1645bc3a-dc13-417f-b8d4-bf378bf1767e_--