How to Install Microsoft .Net SDK for Hadoop?


There are two main steps:

1. Installing Nuget Package manager if you haven’t already.

2. Installing Microsoft .Net SDK for Hadoop

Installing Nuget Package manager

1) Open Visual Studio

2) Tools Menu > Extensions Manager > Search online gallery > Nuget

3) Downloaded and Installed Nuget:

Nuget Package Manager Extensions Manager

4. Restarted Visual Studio

Installing Microsoft .NET SDK for Hadoop

1. Tools menu > Library Package Manager > Package Manager console

2. Installed Map/Reduce, Linq to Hive and WebHDFS component by running following commands in the package manager prompt:

Example for:

install-package Microsoft.Hadoop.MapReduce -pre

Nuget Microsoft SDK for Hadoop install mapreduce


In this post, we saw how to install Microsoft .NET SDK for Hadoop.


Continue learning: Programming MapReduce Jobs with HDInsight Server for Windows


What is Serialization? May be Star Trek analogy could help..


I recently played with XML serialization:


In super simple terms, (one of the) aim of serialization is to convert an object (not a class) that can be transported.

There are two processes that are attached to Serialization viz. deserializing and serializing AND to understand that – let’s draw an analogy with star trek:

Remember Transporter?



Transporters convert a person or object or matter into an energy pattern –> then “beam” it to a target –> where it is reconverted into matter

In programmer’s world:

Serialization equals “convert a person or object or matter into an energy pattern”

Deserialization equals “where it is reconverted into matter”

Technical (accurate) Definition from Wikipedia:

In computer science, in the context of data storage and transmission, serialization is the process of converting a data structure or object state into a format that can be stored (for example, in a file or memory buffer, or transmitted across a network connection link) and “resurrected” later in the same or another computer environment

 Let’s Simplify that!

we need to serialize the object when 1) an object is to be sent over the network 2) state of an object is to be saved.

Moral of the story

To send an object via network, it is serialized.

After it’s received, to recover it, it is deserialized.

Now let’s get into action!

I am familiar with .Net framework– so I am going to share a demo code for XML serialization (serializing + deserializing) with you.

Here’s the class definition (person.cs). Just a simple object for demo purpose:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace XMLSerialization


class person


static void Main(string[] args)



public class person


private string _firstname, _lastname, _twitter;

public person()


_firstname = "";

_lastname = "";

_twitter = "";


public string firstname


get { return _firstname; }

set { _firstname = value; }


public string lastname


get { return _lastname; }

set { _lastname = value; }


public string twitter


get { return _twitter; }

set { _twitter = value; }





Code for Serializing an object:

class Program


static void Main(string[] args)


person personone = new person();

personone.firstname = "paras";

personone.lastname = "doshi";

personone.twitter = "@paras_doshi";


XmlSerializer serializer = new XmlSerializer(typeof(person));

string path = ".\\filename.xml";

FileStream fs = File.OpenWrite(path);

XmlTextWriter writer = new XmlTextWriter(fs,System.Text.Encoding.UTF8);

writer.Formatting = Formatting.Indented;



serializer.Serialize(writer, personone);






Console.WriteLine("Serialization: Done!");



Code to deserialize an object:


XmlSerializer serializer = new XmlSerializer(typeof(person));

string path = ".\\filename.xml";

FileStream fs = File.OpenRead(path);

person deserializeperson;



deserializeperson = (person)serializer.Deserialize(fs);






Console.WriteLine("Person info:");

Console.WriteLine("First Name: {0}", deserializeperson.firstname);

Console.WriteLine("Last Name: {0}", deserializeperson.lastname);

Console.WriteLine("Twitter: {0}", deserializeperson.twitter);


I hope that STAR TREK helped!

How to Include Charts in Visual Studio 2008 Express Edition using Microsoft chart controls


I recently learned how to include charts in visual studio 2008 express edition. If you want to do the same then you need do following things:
1) Get visual studio 2008 Express SP1 or higher version
2) Upgrade to .net 3.5 sp1 (if you use lower version of .net)
3) Download Microsoft chart controls : Download Link and then install it.

After you are done with Installing a ‘charts’ option will appear in the Data Tab in Toolbox. If you still do not see it you will need to add

1) System.Web.UI.DataVisualization.Charting

2) System.Windows.Forms.DataVisualization.Charting.

Just right-click pane -> choose items -> select the above namespaces in the .net framework components!

here’s a tutorial after you are successful at seeing the ‘charts’ option. click me .

And Let’s connect! I Look forward to Interacting with you on any of these people networks:

paras doshi blog on facebookparas doshi twitterparas doshi google plus