<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www2.sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'HDInsight'</title><link>http://www2.sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=HDInsight&amp;orTags=0</link><description>Search results matching tag 'HDInsight'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>My first venture into Hadoop</title><link>http://www2.sqlblog.com/blogs/jamie_thomson/archive/2013/02/20/my-first-venture-into-hadoop.aspx</link><pubDate>Wed, 20 Feb 2013 21:56:24 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47840</guid><dc:creator>jamiet</dc:creator><description>&lt;p&gt;If you keep an eye on the tech industry you cannot have failed to notice that an Open Source technology called Hadoop is getting lots of coverage these days. You’ll be able to find lots of descriptions around the web about what Hadoop actually is so I won’t try and come up with one myself other than to say its a technology for storing and querying over large sets of data.&lt;/p&gt;  &lt;p&gt;Microsoft recently released a preview of their Hadoop offering which they are calling HDInsight; it can be installed on your own hardware (HDInsight Server) or you can sign up temporarily for their Azure-based offering (HSInsight Service). Learn more at &lt;a title="http://www.microsoft.com/bigdata" href="http://www.microsoft.com/bigdata"&gt;http://www.microsoft.com/bigdata&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt;&lt;a href="https://twitter.com/SQLCindy" target="_blank"&gt;Cindy Gross&lt;/a&gt; has provided an excellent step-by-step tutorial on how to store data on HDInsight (either via the service or server) and query it in her blog post &lt;a href="http://blogs.msdn.com/b/cindygross/archive/2013/01/31/mash-up-hive-sql-server-data-in-powerpivot-amp-power-view-hurricane-sandy-2012.aspx" target="_blank"&gt;Hurricane Sandy Mash-Up: Hive, SQL Server, PowerPivot &amp;amp; Power View&lt;/a&gt;. A few days ago I downloaded HDInsight server and followed Cindy’s instructions for installing it, inserting data, querying it and then building a Power View report atop it and the whole thing took less than two hours. Hence, if you’re looking to get familiar with Hadoop and you’re primarily a Windows guy like me then this is a really quick and easy (and free) way of going about it.&lt;/p&gt;  &lt;p&gt;Cindy’s tutorial demonstrates how to combine data from Hadoop with data from SQL Server using PowerPivot and the output of that combined data is a Power View report:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_2E480A9F.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_1DDC6D19.png" width="551" height="401" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;My attempt is available on SkyDrive at &lt;a title="http://sdrv.ms/Zhv4tB" href="http://sdrv.ms/Zhv4tB"&gt;http://sdrv.ms/Zhv4tB&lt;/a&gt; although be aware that &lt;a href="http://sqlblog.com/blogs/jamie_thomson/archive/2012/07/30/power-view-in-skydrive.aspx" target="_blank"&gt;Power View doesn’t work on SkyDrive&lt;/a&gt; so you’ll have to download the containing Excel workbook and open it in Excel 2013 if you want to see anything useful.&lt;/p&gt;  &lt;p&gt;   &lt;hr /&gt;&lt;/p&gt;  &lt;p&gt;As I said above the steps to installing HDInsight, sticking data in it, and querying it were very easy thanks to Cindy’s thorough blog post and hence I was able to make some observations about this murky world of Hadoop that I’ve been hearing so much about. &lt;/p&gt;  &lt;p&gt;Firstly, I gather that the “normal” way of querying Hadoop is to write programs in Java however a technology called Hive provides an abstraction over Hadoop that can make the data therein appear as a table with rows and columns just as those of us immersed in the RDBMS world are used to. For example, the data provided by Cindy was provided as a text file:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/SNAGHTML10fe22b5_73408C3B.png"&gt;&lt;img title="SNAGHTML10fe22b5" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="SNAGHTML10fe22b5" src="http://sqlblog.com/blogs/jamie_thomson/SNAGHTML10fe22b5_thumb_003A6C4D.png" width="485" height="299" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;which literally gets stored in Hadoop as-is. Hive allows us to surface that file as a table using the following syntax:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;CREATE EXTERNAL TABLE census (     &lt;br /&gt;&amp;#160; State_FIPS int      &lt;br /&gt;, County_FIPS int      &lt;br /&gt;, Population bigint      &lt;br /&gt;, Pop_Age_Over_69 bigint      &lt;br /&gt;, Total_Households bigint      &lt;br /&gt;, Median_Household_Income bigint      &lt;br /&gt;, KeyID string      &lt;br /&gt;)       &lt;br /&gt;COMMENT 'US Census Data'       &lt;br /&gt;ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t'       &lt;br /&gt;STORED AS TEXTFILE LOCATION '/user/demo/census';&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Its fairly intuitive to look at this CREATE EXTERNAL TABLE definition and understand exactly what Hive is doing. Its taking a text file whose “columns” are delimited by tabs and defining data types for those columns.&lt;/p&gt;  &lt;p&gt;There also exists an ODBC driver for Hive that enables one to query the data from anything that can talk ODBC (e.g. Excel).&lt;/p&gt;  &lt;p&gt;I have often heard it said that Hadoop is for querying over unstructured data however, to me, that text file has got &lt;em&gt;lots&lt;/em&gt; of structure to it; its got column delimiters and row delimiters, data in each row is stored consistently. That observation led me to question the use of the word &amp;quot;”unstructured” and I asked Cindy to clarify what that word meant in this context. She replied that its more a question of when structure is applied (in this case its being applied by Hive &lt;em&gt;after&lt;/em&gt; the data is stored) and she correctly pointed out that a different structure could have been defined in the CREATE EXTERNAL TABLE command without modifying the underlying data.&lt;/p&gt;  &lt;p&gt;If nothing else this tutorial helped to crystalize some of the marketing fluff that gets bandied about regarding Hadoop. Yes, you can probably store anything you like in there (hence “unstructured”) however in order to get any value from it you’re going to have to apply structure at some point even if that’s as simple as breaking a document into all the individual words by specifying a whitespace delimiter.&lt;/p&gt;  &lt;p&gt;That’s a short rundown of what was an equally short investigation. If Hadoop is something that interests you then downloading HDInsight Server and following Cindy’s tutorial might be a good place to start.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://twitter.com/jamiet" target="_blank"&gt;@Jamiet&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>