Grokbase Groups Pig user March 2011
FAQ
Hi all,

I wrote a simple udf DicomParser which read a line and convert it to tuple
but when I tried to use like that

register H:/apps/mypig/mypigudf.jar;
A = load 'dicoms/' using org.apache.pig.piggybank.storage.XMLLoader('attr')
as (x:chararray);
B = Foreach A generate mypigudf.DicomParser(x);
store B into 'testUdf';


I get this error

Pig Stack Trace
---------------
ERROR 1000: Error during parsing. Failed to generate logical plan. Nested
exception: java.lang.RuntimeException: Cannot instantiate:
mypigudf.DicomParser

org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1000: Error during
parsing. Failed to generate logical plan. Nested exception:
java.lang.RuntimeException: Cannot instantiate: mypigudf.DicomParser
at org.apache.pig.PigServer$Graph.parseQuery(PigServer.java:1568)
at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1513)
at org.apache.pig.PigServer.registerQuery(PigServer.java:581)
at
org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:917)
at
org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:386)
at
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:176)
at
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:152)
at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:90)
at org.apache.pig.Main.run(Main.java:537)
at org.apache.pig.Main.main(Main.java:108)
================================================================================

why i can't use it i didn't find how I can solve this error

Regards

Baraa

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 6 | next ›
Discussion Overview
groupuser @
categoriespig, hadoop
postedMar 22, '11 at 6:42p
activeMar 22, '11 at 7:43p
posts6
users2
websitepig.apache.org

2 users in discussion

Xuefu Zhang: 3 posts Baraa Mohamad: 3 posts

People

Translate

site design / logo © 2021 Grokbase