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 4F51D92FA for ; Tue, 21 Feb 2012 02:27:45 +0000 (UTC) Received: (qmail 76392 invoked by uid 500); 21 Feb 2012 02:27:44 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 76342 invoked by uid 500); 21 Feb 2012 02:27:44 -0000 Mailing-List: contact mapreduce-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-user@hadoop.apache.org Delivered-To: mailing list mapreduce-user@hadoop.apache.org Received: (qmail 76334 invoked by uid 99); 21 Feb 2012 02:27:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 02:27:44 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of devdoer2@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-tul01m020-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 02:27:36 +0000 Received: by obbwd18 with SMTP id wd18so11069305obb.35 for ; Mon, 20 Feb 2012 18:27:15 -0800 (PST) Received-SPF: pass (google.com: domain of devdoer2@gmail.com designates 10.182.111.72 as permitted sender) client-ip=10.182.111.72; Authentication-Results: mr.google.com; spf=pass (google.com: domain of devdoer2@gmail.com designates 10.182.111.72 as permitted sender) smtp.mail=devdoer2@gmail.com; dkim=pass header.i=devdoer2@gmail.com Received: from mr.google.com ([10.182.111.72]) by 10.182.111.72 with SMTP id ig8mr14395862obb.53.1329791235695 (num_hops = 1); Mon, 20 Feb 2012 18:27:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=cttYU4kcmufZhGlbOFaOUvPS2o8Kp/90DEcmTGFZ7uQ=; b=TXxC4ypx8gKp8JXhMR0bR+IWCCbtXIBmaiLfJVXUblitstZSpufVj1RL7z5WP3GYLq yjl0toAvNMnslv4Wql2e8zh8AlANTKy+8Jevgclqjnrr/ZKBGcNHfsZjc6JRr7JoITuA xVloQS96fdEH9L3UcX0B3NovnpMkR/rOSedFk= MIME-Version: 1.0 Received: by 10.182.111.72 with SMTP id ig8mr12209167obb.53.1329791235659; Mon, 20 Feb 2012 18:27:15 -0800 (PST) Received: by 10.60.39.134 with HTTP; Mon, 20 Feb 2012 18:27:15 -0800 (PST) Date: Tue, 21 Feb 2012 10:27:15 +0800 Message-ID: Subject: failed to import python package when using cacheArchive From: devdoer bird To: mapreduce-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=14dae939987d3a193804b970268d X-Virus-Checked: Checked by ClamAV on apache.org --14dae939987d3a193804b970268d Content-Type: text/plain; charset=ISO-8859-1 HI: I packed a python module to "mypackage.tar.gz" and upload it to hdfs ,then visit the package with " -cacheArchive /app/mypackage.tar.gz#mypackage" But the python script failed to "import mypacakge" , it throw the failed to import exception " no module named mypacakge". I need some help. Thanks. --14dae939987d3a193804b970268d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable HI:

I packed a python module to "mypackage.tar.gz&q= uot; and upload it to hdfs ,then visit the package with " -cacheArchiv= e /app/mypackage.tar.gz#mypackage"=A0
=A0=A0

<= /div>
But the python script failed to "import mypacakge" , it thro= w the failed to import exception " no module named mypacakge".


I need some help.

Thanks.
--14dae939987d3a193804b970268d--