Re: [Hadoop-studio-users] Workflow GUI Reporter implementation
Brought to you by:
arren
From: Ted R. <tre...@ka...> - 2012-02-29 17:00:49
|
David, Unfortunately the GUI emulator is not a full-blown Hadoop environment, and does not have input splits or counters. The is currently no way to do this in the emulator. Your best work around would be to deploy the job to either the local/embedded Hadoop or to a real Hadoop cluster. Ted. Ted Reynolds Technical Support Engineer *The Leader in Big Data Analytics for Hadoop* P: (650)292-6113 19200 Stevens Creek Blvd. Suite 130, Cupertino, CA 95014 On Fri, Feb 24, 2012 at 10:21 AM, David Walling <dav...@gm...>wrote: > It would appear the workflow gui emulator simply uses the 'do nothing' > static Reporter class in Hadoop. This breaks things if need to do > something like the following in your Mapper: > > <code> > FileSplit fileSplit = (FileSplit) reporter.getInputSplit(); > Path path = fileSplit.getPath(); > String fileName = path.getName(); > valueOut.set(fileName + "@" + key); > </code> > > You will receive the following error in the Mapper tab: > > "java.lang.UnsupportedOperationException: NULL reporter has no input" > > Is there a work around? > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Hadoop-studio-users mailing list > Had...@li... > https://lists.sourceforge.net/lists/listinfo/hadoop-studio-users > > |