hadoop output visualization

185 views
Skip to first unread message

Amith Kumar

unread,
May 21, 2013, 5:17:06 AM5/21/13
to chenn...@googlegroups.com
I have 3 java classes namely mapper, reducer, driver ( I have attached those three classes and input xml file along with this question) which is meant for doing a hadoop job. These three classes manipulates an input file named badges.xml and produce a result. I have to show the result obtained from hadoop in a Graph format something like Google Chart or JPlot or Java Swing Graph. How to achieve this. How to give hadoop output to Google Chart or JPlor Library or Java Swing to draw a Graph?
badges.xml
MapReduceDriver.java
StackoverflowMapper.java
StackoverflowReducer.java

Srinivasan Ramalingam

unread,
May 21, 2013, 5:23:03 AM5/21/13
to chenn...@googlegroups.com
can you please use jfreechart


On Tue, May 21, 2013 at 4:17 AM, Amith Kumar <mkamit...@gmail.com> wrote:
I have 3 java classes namely mapper, reducer, driver ( I have attached those three classes and input xml file along with this question) which is meant for doing a hadoop job. These three classes manipulates an input file named badges.xml and produce a result. I have to show the result obtained from hadoop in a Graph format something like Google Chart or JPlot or Java Swing Graph. How to achieve this. How to give hadoop output to Google Chart or JPlor Library or Java Swing to draw a Graph?

--
You received this message because you are subscribed to the Google Groups "Hadoop Users Group (HUG) Chennai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chennaihug+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ashwanth Kumar

unread,
May 21, 2013, 5:26:38 AM5/21/13
to chenn...@googlegroups.com
I am not aware of any library supporting hadoop outputs for charting directly. Write the data out in a JSON or the format that is understandable by the Library that you are using and you are good to go. 

Couple of things you need to keep in mind
  1. Using Google Chart API, I assume it is an online page. It is better to load the data into a MySQL or kinda systems and serve it from there. 
  2. Assuming you write your final data from the reducer you will have multiple files (based on # reducers), you might have to use -getmerge kinda command to get a single view of the output. 





On Tue, May 21, 2013 at 2:47 PM, Amith Kumar <mkamit...@gmail.com> wrote:
I have 3 java classes namely mapper, reducer, driver ( I have attached those three classes and input xml file along with this question) which is meant for doing a hadoop job. These three classes manipulates an input file named badges.xml and produce a result. I have to show the result obtained from hadoop in a Graph format something like Google Chart or JPlot or Java Swing Graph. How to achieve this. How to give hadoop output to Google Chart or JPlor Library or Java Swing to draw a Graph?

--
You received this message because you are subscribed to the Google Groups "Hadoop Users Group (HUG) Chennai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chennaihug+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

Ashwanth Kumar / ashwanthkumar.in

Chandra Reddy

unread,
May 21, 2013, 12:02:36 PM5/21/13
to chenn...@googlegroups.com
Hi,
You can use the Hive - Pentaho integration.
thanks
Chandra
Thanks,
-Chandra.
Reply all
Reply to author
Forward
0 new messages