Microsoft recently announced a new feature for Azure Services, Azure Data Lake Services for analytics in the Microsoft Azure cloud services. It is having a large scale repository and also a default service YARN that provide a benefit for analysing the large scale data to a developer or DBA and also for the data scientists. YARN is Apache Hadoop NextGen MapReduce known as MapReduce 2.0 (MRv2) or called YARN.

Azure Data Lake have a managed way to manage all Hadoop, Spark and HBase Services. Azure Data Lake use U-SQL. It is a language that explores the benefits of SQL and is scalable and provides a distributed query capabilities for a developer and DBA those are currently working with Big Data. Also, it provides you to efficiently analyse your data in the store and across relational stores such as Microsoft SQL Azure Database.

Azure Data Lake

Benefits of Data Lake

Batch, Real-time, and interactive analytics made it easy to:

Why use U-SQL?

U-SQL is a large scalable Language and if we see the behaviour of Big Data analytics we can have several requirements. Here are the major requirements as per the MSDN blog.

How to use U-SQL?

If you want to see how we can use U-SQL. Go through the MSDN blog example. Let’s assume I have downloaded my Twitter history of all my tweets, retweets, and mentions as a CSV file and placed it into my Azure Data Lake Store. Here top 50 rows in the .csv file can be seen:

File Information
Image Source: blogs.msdn.com

In this just count the number of tweets for each of the authors in the tweet “network”:

  1. @t = EXTRACT date string
  2. , time string
  3. , author string
  4. , tweet string
  5. FROM "/input/MyTwitterHistory.csv"
  6. USING Extractors.Csv();
  7. @res = SELECT author
  8. , COUNT(*) AS tweetcount
  9. FROM @t
  10. GROUP BY author;
  11. OUTPUT @res TO "/output/MyTwitterAnalysis.csv"
  12. ORDER BY tweetcount DESC
  13. USING Outputters.Csv();
Here are the following three major steps of processing data with U-SQL from the above U-SQL script:
  1. Extract data from your source. Datatypes are based on C# datatypes and the built-in extractors library to read and schematize the CSV file is used.

  2. Transform using SQL and/or custom user defined operators. A familiar SQL expression that does a GROUP BY aggregation is used in the preceding example.

  3. Output the result into a file. You can also store it into U-SQL table for further processing.

This was just an introduction to U-SQL, for further understanding refer the msdn blog examples to: