Apache Hadoop on Windows Azure is integrated with a web-based interactive JavaScript console, which allows you to perform
Once you have built your Hadoop cluster on Windows Azure, you can launch Interactive JavaScript web console directly as below:
After the Interactive JavaScript is launched you can enter a set of commands or your own JavaScript directly from the browser:
For our example we will do the following:
Let’s collect some real time data about mobile market share for 2011:
http://www.netmarketshare.com/operating-system-market-share.aspx?qprid=9&qpcustomb=1
Create a txt file locally as mobilesharedata.txt locally:
iOS 52.10 JavaME 21.27Android 16.29Symbian 5.76BlackBerry 3.51Other 1.07
Upload this file to HDFS from Interactive JavaScript console:
Verify the file is uploaded:
Let’s read the data this
Now parse the data as below:
Set the graph visualization settings as below:
Now let’s visualize the data in Bar Graph:
js> graph.bar(data, options)
Now let’s visualize the data in Pie Graph:
js> graph.pie(data, options)
Keywords: Windows Azure, Hadoop, Apache, BigData, Cloud, MapReduce
Most of it works fine for me with the exception of the parse command. It does not give me a
[
0: {
OS: "iOS"
MarketShare: 52
}
1: {
OS: "JavaME"
MarketShare: 21
]
type of value for me but my parse result is like this:
map: [object Function]
filter: [object Function]
forEach: [object Function]
reduce: [object Function]
As a result, the graph does not work. What should I do to avoid these
in the search results?