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 E3AB1F105 for ; Wed, 17 Apr 2013 18:42:00 +0000 (UTC) Received: (qmail 5252 invoked by uid 500); 17 Apr 2013 18:41:55 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 5060 invoked by uid 500); 17 Apr 2013 18:41:55 -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 5050 invoked by uid 99); 17 Apr 2013 18:41:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Apr 2013 18:41:55 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of amits@infolinks.com designates 207.126.144.135 as permitted sender) Received: from [207.126.144.135] (HELO eu1sys200aog113.obsmtp.com) (207.126.144.135) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 17 Apr 2013 18:41:49 +0000 Received: from mail-oa0-f69.google.com ([209.85.219.69]) (using TLSv1) by eu1sys200aob113.postini.com ([207.126.147.11]) with SMTP ID DSNKUW7s1+XwMlUiacYQh3jXZo59hOUXg63a@postini.com; Wed, 17 Apr 2013 18:41:28 UTC Received: by mail-oa0-f69.google.com with SMTP id h1so12202580oag.4 for ; Wed, 17 Apr 2013 11:41:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=WQgbIFzgjmpnSQowbrrUU6UQYRNUe4OtWdcbG1zbkyc=; b=hqekaFs7F8sERNMvaS0o3AU+dV4dKZhWH4TqePZ+AvGdN8BLOP/v+NHhyfqEjMeCg3 FmaNoSg1nvyVqqhV47lEDxXXoKdQic2BGib1kYRzEu0p7PrFikH8p9rrGWMo6m26Bod5 1lmE/d6V/5zRbfviGRzdUuCrNFR7cYROZjomZVCGR+XYJ7DCYpWpOCar5BilhTJE15zy SaICJtondBGCYIFLzooo/OxfaOKsrRt0/I9u2l0ilCapEWkbSbanz6lwdxdo4BNyX0Tm m78zn4Rm9b4+Jfyu+2aU16xY8jEZXjAkEq4no/YMBEfhMSn/HOOhlMXgGpFQd3Jivbd2 LggQ== X-Received: by 10.50.36.199 with SMTP id s7mr11498275igj.56.1366224086251; Wed, 17 Apr 2013 11:41:26 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.36.199 with SMTP id s7mr11498272igj.56.1366224086156; Wed, 17 Apr 2013 11:41:26 -0700 (PDT) Received: by 10.64.92.136 with HTTP; Wed, 17 Apr 2013 11:41:26 -0700 (PDT) Date: Wed, 17 Apr 2013 21:41:26 +0300 Message-ID: Subject: Setting up a Hadoop client in OSGI bundle From: Amit Sela To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=14dae9340d0356dc8004da92d5db X-Gm-Message-State: ALoCoQmwd7DNy63ZbrTLbmS5GtPW5AZSZ8sPQNdx5sdbQIPwoxNQmrJg2jUlT6jUvCygdkxxVnfCEsII5Bzge29SyYmmsin7tHyW9l1oxWH+4TqP5gghQB3hh4+nKWUw2yZz6M5CNJkWHoHETqGHqc8at5CWfn7XjN2w9z803oVr/Bzm60hYIcs= X-Virus-Checked: Checked by ClamAV on apache.org --14dae9340d0356dc8004da92d5db Content-Type: text/plain; charset=ISO-8859-1 Hi all, I'm trying to setup an Hadoop client for job submissions (and more) as an OSGI bundle. I came over a lot of hardships but I'm kinda stuck now. When I create a new Job for submission I setClassLoader() for the Job Configuration so that it would use the bundle's ClassLoader (felix), but when I submit the job and it tries to load the splits it looks for DefaultCodec and fails to find that because somewhere along the way, JobClient creates a new JobContext(Configuration) but although using the Configuration containing the bundle's ClassLoader, the jobContext constructor doesn't copy the ClassLoader set in Configuration. And I guess that could happen in many other places in the Hadoop frameworl. does anyone have any experience with submitting mapreduce jobs from OSGI bundle client ? Any tips for this problems (and others I've yet to encounter) ? BTW, running Hadoop 1.0.4 and HBase 0.94.2. Thanks, Amit. --14dae9340d0356dc8004da92d5db Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi all,=A0

I'm trying to setu= p an Hadoop client for job submissions (and more) as an OSGI bundle.
<= div style>
I came over a lot of hardships but I'm k= inda stuck now.

When I create a new Job for submission I se= tClassLoader() for the Job Configuration =A0so that it would use the bundle= 's ClassLoader (felix), but when I submit the job and it tries to load = the splits it looks for DefaultCodec and fails to find that because somewhe= re along the way, JobClient creates a new JobContext(Configuration) but alt= hough using the Configuration containing the bundle's ClassLoader, the = jobContext constructor doesn't copy the ClassLoader set in Configuratio= n.
And I guess that could happen in many other places in the Hadoop= frameworl.

does anyone have any exper= ience with submitting mapreduce jobs from OSGI bundle client ? Any tips for= this problems (and others I've yet to encounter) ?

BTW, running Hadoop 1.0.4 and HBase 0.94.2.=

Thanks,=A0

=
Amit.
--14dae9340d0356dc8004da92d5db--