Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> XmlInputFormat Hadoop -Mapreduce


Copy link to this message
-
XmlInputFormat Hadoop -Mapreduce
Hi,

I am trying to process xml via mapreduce. and output should be in text
format.

I am using hadoop 0.20

the following error has occured , the link provided
https://github.com/studhadoop/xmlparsing-hadoop/blob/master/XmlParser11.java
I have used the Package org.apache.hadoop.mapreduce.lib. only.

then also following error has occured , please help.

hduser@localhost:~$ hadoop jar xml.jar ParserDriverMain Ran Sales
13/12/17 15:02:01 WARN mapred.JobClient: Use GenericOptionsParser for
parsing the arguments. Applications should implement Tool for the same.
13/12/17 15:02:01 INFO input.FileInputFormat: Total input paths to process
: 1
13/12/17 15:02:01 INFO mapred.JobClient: Running job: job_201312161706_0021
13/12/17 15:02:02 INFO mapred.JobClient:  map 0% reduce 0%
13/12/17 15:02:12 INFO mapred.JobClient: Task Id :
attempt_201312161706_0021_m_000000_0, Status : FAILED
Error: Found class org.apache.hadoop.mapreduce.TaskAttemptContext, but
interface was expected
13/12/17 15:02:18 INFO mapred.JobClient: Task Id :
attempt_201312161706_0021_m_000000_1, Status : FAILED
Error: Found class org.apache.hadoop.mapreduce.TaskAttemptContext, but
interface was expected
13/12/17 15:02:24 INFO mapred.JobClient: Task Id :
attempt_201312161706_0021_m_000000_2, Status : FAILED
Error: Found class org.apache.hadoop.mapreduce.TaskAttemptContext, but
interface was expected
13/12/17 15:02:33 INFO mapred.JobClient: Job complete: job_201312161706_0021
13/12/17 15:02:33 INFO mapred.JobClient: Counters: 3
13/12/17 15:02:33 INFO mapred.JobClient:   Job Counters
13/12/17 15:02:33 INFO mapred.JobClient:     Launched map tasks=4
13/12/17 15:02:33 INFO mapred.JobClient:     Data-local map tasks=4
13/12/17 15:02:33 INFO mapred.JobClient:     Failed map tasks=1
hduser@localhost:~$

thanks in advance.

Ranjini
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB