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 A20D6D7ED for ; Thu, 11 Oct 2012 16:08:16 +0000 (UTC) Received: (qmail 36124 invoked by uid 500); 11 Oct 2012 16:08:11 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 35825 invoked by uid 500); 11 Oct 2012 16:08:11 -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 35817 invoked by uid 99); 11 Oct 2012 16:08:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2012 16:08:11 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.220.48] (HELO mail-pa0-f48.google.com) (209.85.220.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2012 16:08:03 +0000 Received: by mail-pa0-f48.google.com with SMTP id kp12so2404616pab.35 for ; Thu, 11 Oct 2012 09:07:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to:x-mailer:x-gm-message-state; bh=lKGgyCa/4pp7oiZ/RXT2vVJVndvb3tfbOQ6fadzE/HM=; b=GeX9sjnmmS2rgAe5EBLEbvLOr4kttov9qvOj8RRKYTSh5SszZE60OVB5MgWemHUvFv BjDLXFlnfc9pBmfvFLye1jW0pOPKKTeHxuJ+CS6EEftqeVAChEWTutRHvgQoorfp/3hM iH1tiWR26L6a4ec2QjsLkTgpJrbCzdl7hTrnMLIVBQLykOnsP8sZuT2s3HQ8mWPV2QZj OAtmTS/pL32C6dXjs/fz2xCNsJYh9foi9U4sE4qZvMidsHwypnF3X0dT7Fh0C9PpCYqG r4D7xmO+nuPDWbQSamUTuMEEnwJBqpnnvn2SPBRbmvzO7JBxDSM2QDplosS0D2AmL6HF 8l6A== Received: by 10.68.197.9 with SMTP id iq9mr4753528pbc.130.1349971661810; Thu, 11 Oct 2012 09:07:41 -0700 (PDT) Received: from [192.168.1.105] (c-71-202-190-17.hsd1.ca.comcast.net. [71.202.190.17]) by mx.google.com with ESMTPS id k4sm2812309pax.7.2012.10.11.09.07.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 11 Oct 2012 09:07:40 -0700 (PDT) From: Arpit Gupta Content-Type: multipart/alternative; boundary="Apple-Mail=_030819BF-337D-4C13-9B28-EBD9DB0159F6" Message-Id: <786C266E-D887-40C6-8C92-59F9AA0AE39A@hortonworks.com> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Acces HAR over http through browser Date: Thu, 11 Oct 2012 09:07:40 -0700 References: To: user@hadoop.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQnuIJylzQbiLjB94K00j+rvRrQEO5aMLOMb8edU2EXjzfaOBVP0WFUbEWt7z9fHAG2mpBVc --Apple-Mail=_030819BF-337D-4C13-9B28-EBD9DB0159F6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 your browser does not understand what har:// is so none of those links = will work. You will have to use webhdfs if you want out of the box = webserivce to access files, but you wont be able to use har fs from = within webhdfs. Another thing it looks like you are accessing your datanode port (50075) = unless you changed the defaults. You should send the calls through you = namenode and let it redirect you to the appropriate datanode. -- Arpit Gupta Hortonworks Inc. http://hortonworks.com/ On Oct 9, 2012, at 6:30 AM, Visioner Sadak = wrote: > =20 > =20 > i tried these 3 combinations all in vain :) if my har location is = /user/testhar.har/test.jpg =20 >=20 > > > >=20 > On Sat, Oct 6, 2012 at 3:08 PM, Visioner Sadak = wrote: > =20 > =20 > Hello experts any thoughts on how to access HAR files thru http if its = a normal file then i can access it by using below URL using webhdfs.... > =20 > http://localhost:50075/webhdfs/v1/user/test.jpg?op=3DOPEN >=20 --Apple-Mail=_030819BF-337D-4C13-9B28-EBD9DB0159F6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 your = browser does not understand what har:// is so none of those links will = work. You will have to use webhdfs if you want out of the box webserivce = to access files, but you wont be able to use har fs from within = webhdfs.

Another thing it looks like you are = accessing your datanode port (50075) unless you changed the defaults. = You should send the calls through you namenode and let it redirect you = to the appropriate datanode.

--
Arpit Gupta
Hortonworks Inc.
http://hortonworks.com/
<= /span>

On Oct 9, 2012, at 6:30 AM, Visioner Sadak <visioner.sadak@gmail.com> = wrote:

  
 
i tried these 3 = combinations  all in vain :)  if my har location is = /user/testhar.har/test.jpg     

 <td><img src =3D"har://http-localhost:50075/webhdfs/v1/user/testhar.har/test.jpg?o= p=3DOPEN"/></td>
       = ;    <td><img src =3D"har:= //webhdfs-localhost:50075/testhar.har/test.jpg?op=3DOPEN"/></td&= gt;
           = <td><img src =3D"har://webhdfs-= localhost:50075/testhar.har/test.jpg"/></td>

On Sat, Oct 6, 2012 at 3:08 PM, Visioner = Sadak <visioner.sadak@gmail.com> wrote:
 
 
Hello experts any thoughts on how to access HAR files thru http if = its a normal file then i can access it by using below URL using = webhdfs....
 


= --Apple-Mail=_030819BF-337D-4C13-9B28-EBD9DB0159F6--