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 6C84E10F2B for ; Mon, 9 Dec 2013 16:07:17 +0000 (UTC) Received: (qmail 28167 invoked by uid 500); 9 Dec 2013 16:07:10 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 27647 invoked by uid 500); 9 Dec 2013 16:07:04 -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 27634 invoked by uid 99); 9 Dec 2013 16:07:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Dec 2013 16:07:03 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shekhar2581@gmail.com designates 209.85.212.51 as permitted sender) Received: from [209.85.212.51] (HELO mail-vb0-f51.google.com) (209.85.212.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Dec 2013 16:06:57 +0000 Received: by mail-vb0-f51.google.com with SMTP id 11so672752vbe.10 for ; Mon, 09 Dec 2013 08:06:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=KR9+Ismnmy3AyANhc0BR+1eWUe2e65aOdJ6dlzm35Fs=; b=qeMbSDlWewhc8i7kBNu+iQTmfUoPV0OAZfs52d1bs2HtVVVn5aBtOrfWAekOA+kpxI guhjD7fyaLBwYYtTrmmjCv8LM0kbx152nwU+g7UJBjnmsmaFD0W5H1SshX4PK3dgLvWv GpZxab0yrzfyHHW/axLn2AVKCvKprLeGZEsZO/IWX5lldcJY7OVIRJ1XhKgnqdqYh5uk kZRH6POvV6ErYSaPVCBHle1BD5+BM7qCRXAcomjab4VZ8hVrTO1+L65XCoMqYuHpprri XrbWFQoif4rd6Fuups0Wk35FddLpzbBjSl36HxeZbVNF8vJnXMCN/4gJYWHd/GYMrsAQ t67g== X-Received: by 10.52.188.4 with SMTP id fw4mr914873vdc.67.1386605196707; Mon, 09 Dec 2013 08:06:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.43.81 with HTTP; Mon, 9 Dec 2013 08:06:16 -0800 (PST) In-Reply-To: References: <0312D54A-7969-4230-982F-2F9B90B99BA5@datameer.com> From: Shekhar Sharma Date: Mon, 9 Dec 2013 21:36:16 +0530 Message-ID: Subject: Re: Hadoop-MapReduce To: user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org First Option: Put the jar in $HADOOP_HOME/lib folder And then run "hadoop classpath" command on your terminal to check whether the jar has been added Second OPtion: PUt the jar path in HADOOP_CLASSPATH variable ( hadoop-env.sh file) and restart your cluster.. Regards, Som Shekhar Sharma +91-8197243810 On Mon, Dec 9, 2013 at 6:30 PM, Ranjini Rathinam wrote: > Hi Subroto Sanyal, > > The link provided about xml, it does not work . The Class written > XmlContent is not allowed in the XmlInputFormat. > > I request you to help , whether this scenaio some one has coded, and needed > working code. > > I have written using SAX Parser too, but eventhough the jars are added in > classpath THe error is is coming has NoClasFoung Exception. > > Please provide sample code for the same. > > Thanks in advance, > Ranjini.R > > On Mon, Dec 9, 2013 at 12:34 PM, Ranjini Rathinam > wrote: >> >> >>>> Hi, >>>> >>>> As suggest by the link below , i have used for my program , >>>> >>>> but i am facing the below issues, please help me to fix these error. >>>> >>>> >>>> XmlReader.java:8: XmlReader.Map is not abstract and does not override >>>> abstract method >>>> map(org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.mapred.OutputCollector,org.apache.hadoop.mapred.Reporter) >>>> in org.apache.hadoop.mapred.Mapper >>>> public static class Map extends MapReduceBase implements Mapper >>>> { >>>> ^ >>>> ./XmlInputFormat.java:16: XmlInputFormat.XmlRecordReader is not abstract >>>> and does not override abstract method >>>> next(java.lang.Object,java.lang.Object) in >>>> org.apache.hadoop.mapred.RecordReader >>>> public class XmlRecordReader implements RecordReader { >>>> ^ >>>> Note: XmlReader.java uses unchecked or unsafe operations. >>>> Note: Recompile with -Xlint:unchecked for details. >>>> 2 errors >>>> >>>> >>>> i am using hadoop 0.20 version and java 1.6 . >>>> >>>> Please suggest. >>>> >>>> Thanks in advance. >>>> >>>> Regrads, >>>> Ranjini. R >>>> On Mon, Dec 9, 2013 at 11:08 AM, Ranjini Rathinam >>>> wrote: >>>>> >>>>> >>>>> >>>>> ---------- Forwarded message ---------- >>>>> From: Subroto >>>>> Date: Fri, Dec 6, 2013 at 4:42 PM >>>>> Subject: Re: Hadoop-MapReduce >>>>> To: user@hadoop.apache.org >>>>> >>>>> >>>>> Hi Ranjini, >>>>> >>>>> A good example to look into : >>>>> http://www.undercloud.org/?p=408 >>>>> >>>>> Cheers, >>>>> Subroto Sanyal >>>>> >>>>> On Dec 6, 2013, at 12:02 PM, Ranjini Rathinam wrote: >>>>> >>>>> Hi, >>>>> >>>>> How to read xml file via mapreduce and load them in hbase and hive >>>>> using java. >>>>> >>>>> Please provide sample code. >>>>> >>>>> I am using hadoop 0.20 version and java 1.6. Which parser version >>>>> should be used. >>>>> >>>>> Thanks in advance. >>>>> >>>>> Ranjini >>>>> >>>>> >>>>> >>>> >>> >> >