Upload
karan-gulati
View
3.119
Download
0
Embed Size (px)
DESCRIPTION
HDInsight on Windows: Building PowerPivot Report from Hive in a Few Easy Steps
Citation preview
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 1
Topic - HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
About Writer
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 2
What are we covering
o Hive Create table
Load Data
Query Data
o Configure ODBC
o Create PowerPivot With DataSource as HDInsight
Import Data from HDInsight
o Create Pivot Chat using imported data
(1)Open Hadoop Command Line
After installing HDInsight for Windows you will get Hadoop Command Line Shortcut on desktop
Click on Hadoop Command Line Shortcut and it will open Cmd Line for Hadoop
(2)Type Hive and it will change to Hive Command
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 3
(3)Create Tables
CREATE TABLE emp(id intname string)ROW FORMAT DELIMITED FIELDS TERMINATED BY
CREATE TABLE sales(id intsales int)ROW FORMAT DELIMITED FIELDS TERMINATED BY
(4)Load Data using CSV Files
LOAD DATA LOCAL INPATH cdataempcsv OVERWRITE INTO TABLE emp
LOAD DATA LOCAL INPATH cdatasalescsv OVERWRITE INTO TABLE sales
(5) Open HDInsight Dashboard (You will find shortcut on desktop) and click on Download
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 4
(6)Click on the appropriate link for your Excel
(7)Configure ODBC
For configuring ODBC Click start and type in ODBC This will bring up the Data Sources dialog Go to
the System DSN tab and click Add Configure it with a Data Source Name Your Host Information and a
Username In Single Node HDInsight Installation you donrsquot need to provide Username but if you are
using HDInsight on Azure you can provide Username
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 5
(8) Provider Data Source Name and Default Port is 10000
(9)Open Excel Sheet select PowerPivot in ribbon and click on Manage
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 6
(10)Click on Get External Data
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 7
(11)Select ndash Get External Data and Data Import window and Select Others(OLEDBODBC)
(12)Click Build
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 8
(13)Select OLE DB Provider for ODBC
(14)Select DSN which we have created earlier in step number 8 Select Database (In Single Node
HDInsight installation you donrsquot need to provider User Name and Password in current release but
in case of HDInsight on Azure you need to provide User Name and Password) and follow the
wizard for selecting tables in our case its EMP and Sales
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 9
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 10
(15)If you Notice Relationship between Emp and Sales is absent so with one click we can create
relationship
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 11
(16)Added feature like Calculated Measure name Sales and created a KPI
(17)Select Pivot of your Choice from PivotTable
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 12
(18) Finally - you are good to go with PowerPivot Report based on Hive
Refer
HDInsight ndash What is it
Configuring PowerPivot for Excel 2013
Contact Speaker
httpkaranspeakscom
httpblogsmsdncomkarang
httpstwittercomkarangspeaks
httpinlinkedincominkaranspeaks
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 2
What are we covering
o Hive Create table
Load Data
Query Data
o Configure ODBC
o Create PowerPivot With DataSource as HDInsight
Import Data from HDInsight
o Create Pivot Chat using imported data
(1)Open Hadoop Command Line
After installing HDInsight for Windows you will get Hadoop Command Line Shortcut on desktop
Click on Hadoop Command Line Shortcut and it will open Cmd Line for Hadoop
(2)Type Hive and it will change to Hive Command
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 3
(3)Create Tables
CREATE TABLE emp(id intname string)ROW FORMAT DELIMITED FIELDS TERMINATED BY
CREATE TABLE sales(id intsales int)ROW FORMAT DELIMITED FIELDS TERMINATED BY
(4)Load Data using CSV Files
LOAD DATA LOCAL INPATH cdataempcsv OVERWRITE INTO TABLE emp
LOAD DATA LOCAL INPATH cdatasalescsv OVERWRITE INTO TABLE sales
(5) Open HDInsight Dashboard (You will find shortcut on desktop) and click on Download
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 4
(6)Click on the appropriate link for your Excel
(7)Configure ODBC
For configuring ODBC Click start and type in ODBC This will bring up the Data Sources dialog Go to
the System DSN tab and click Add Configure it with a Data Source Name Your Host Information and a
Username In Single Node HDInsight Installation you donrsquot need to provide Username but if you are
using HDInsight on Azure you can provide Username
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 5
(8) Provider Data Source Name and Default Port is 10000
(9)Open Excel Sheet select PowerPivot in ribbon and click on Manage
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 6
(10)Click on Get External Data
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 7
(11)Select ndash Get External Data and Data Import window and Select Others(OLEDBODBC)
(12)Click Build
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 8
(13)Select OLE DB Provider for ODBC
(14)Select DSN which we have created earlier in step number 8 Select Database (In Single Node
HDInsight installation you donrsquot need to provider User Name and Password in current release but
in case of HDInsight on Azure you need to provide User Name and Password) and follow the
wizard for selecting tables in our case its EMP and Sales
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 9
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 10
(15)If you Notice Relationship between Emp and Sales is absent so with one click we can create
relationship
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 11
(16)Added feature like Calculated Measure name Sales and created a KPI
(17)Select Pivot of your Choice from PivotTable
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 12
(18) Finally - you are good to go with PowerPivot Report based on Hive
Refer
HDInsight ndash What is it
Configuring PowerPivot for Excel 2013
Contact Speaker
httpkaranspeakscom
httpblogsmsdncomkarang
httpstwittercomkarangspeaks
httpinlinkedincominkaranspeaks
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 3
(3)Create Tables
CREATE TABLE emp(id intname string)ROW FORMAT DELIMITED FIELDS TERMINATED BY
CREATE TABLE sales(id intsales int)ROW FORMAT DELIMITED FIELDS TERMINATED BY
(4)Load Data using CSV Files
LOAD DATA LOCAL INPATH cdataempcsv OVERWRITE INTO TABLE emp
LOAD DATA LOCAL INPATH cdatasalescsv OVERWRITE INTO TABLE sales
(5) Open HDInsight Dashboard (You will find shortcut on desktop) and click on Download
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 4
(6)Click on the appropriate link for your Excel
(7)Configure ODBC
For configuring ODBC Click start and type in ODBC This will bring up the Data Sources dialog Go to
the System DSN tab and click Add Configure it with a Data Source Name Your Host Information and a
Username In Single Node HDInsight Installation you donrsquot need to provide Username but if you are
using HDInsight on Azure you can provide Username
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 5
(8) Provider Data Source Name and Default Port is 10000
(9)Open Excel Sheet select PowerPivot in ribbon and click on Manage
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 6
(10)Click on Get External Data
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 7
(11)Select ndash Get External Data and Data Import window and Select Others(OLEDBODBC)
(12)Click Build
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 8
(13)Select OLE DB Provider for ODBC
(14)Select DSN which we have created earlier in step number 8 Select Database (In Single Node
HDInsight installation you donrsquot need to provider User Name and Password in current release but
in case of HDInsight on Azure you need to provide User Name and Password) and follow the
wizard for selecting tables in our case its EMP and Sales
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 9
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 10
(15)If you Notice Relationship between Emp and Sales is absent so with one click we can create
relationship
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 11
(16)Added feature like Calculated Measure name Sales and created a KPI
(17)Select Pivot of your Choice from PivotTable
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 12
(18) Finally - you are good to go with PowerPivot Report based on Hive
Refer
HDInsight ndash What is it
Configuring PowerPivot for Excel 2013
Contact Speaker
httpkaranspeakscom
httpblogsmsdncomkarang
httpstwittercomkarangspeaks
httpinlinkedincominkaranspeaks
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 4
(6)Click on the appropriate link for your Excel
(7)Configure ODBC
For configuring ODBC Click start and type in ODBC This will bring up the Data Sources dialog Go to
the System DSN tab and click Add Configure it with a Data Source Name Your Host Information and a
Username In Single Node HDInsight Installation you donrsquot need to provide Username but if you are
using HDInsight on Azure you can provide Username
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 5
(8) Provider Data Source Name and Default Port is 10000
(9)Open Excel Sheet select PowerPivot in ribbon and click on Manage
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 6
(10)Click on Get External Data
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 7
(11)Select ndash Get External Data and Data Import window and Select Others(OLEDBODBC)
(12)Click Build
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 8
(13)Select OLE DB Provider for ODBC
(14)Select DSN which we have created earlier in step number 8 Select Database (In Single Node
HDInsight installation you donrsquot need to provider User Name and Password in current release but
in case of HDInsight on Azure you need to provide User Name and Password) and follow the
wizard for selecting tables in our case its EMP and Sales
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 9
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 10
(15)If you Notice Relationship between Emp and Sales is absent so with one click we can create
relationship
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 11
(16)Added feature like Calculated Measure name Sales and created a KPI
(17)Select Pivot of your Choice from PivotTable
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 12
(18) Finally - you are good to go with PowerPivot Report based on Hive
Refer
HDInsight ndash What is it
Configuring PowerPivot for Excel 2013
Contact Speaker
httpkaranspeakscom
httpblogsmsdncomkarang
httpstwittercomkarangspeaks
httpinlinkedincominkaranspeaks
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 5
(8) Provider Data Source Name and Default Port is 10000
(9)Open Excel Sheet select PowerPivot in ribbon and click on Manage
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 6
(10)Click on Get External Data
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 7
(11)Select ndash Get External Data and Data Import window and Select Others(OLEDBODBC)
(12)Click Build
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 8
(13)Select OLE DB Provider for ODBC
(14)Select DSN which we have created earlier in step number 8 Select Database (In Single Node
HDInsight installation you donrsquot need to provider User Name and Password in current release but
in case of HDInsight on Azure you need to provide User Name and Password) and follow the
wizard for selecting tables in our case its EMP and Sales
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 9
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 10
(15)If you Notice Relationship between Emp and Sales is absent so with one click we can create
relationship
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 11
(16)Added feature like Calculated Measure name Sales and created a KPI
(17)Select Pivot of your Choice from PivotTable
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 12
(18) Finally - you are good to go with PowerPivot Report based on Hive
Refer
HDInsight ndash What is it
Configuring PowerPivot for Excel 2013
Contact Speaker
httpkaranspeakscom
httpblogsmsdncomkarang
httpstwittercomkarangspeaks
httpinlinkedincominkaranspeaks
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 6
(10)Click on Get External Data
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 7
(11)Select ndash Get External Data and Data Import window and Select Others(OLEDBODBC)
(12)Click Build
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 8
(13)Select OLE DB Provider for ODBC
(14)Select DSN which we have created earlier in step number 8 Select Database (In Single Node
HDInsight installation you donrsquot need to provider User Name and Password in current release but
in case of HDInsight on Azure you need to provide User Name and Password) and follow the
wizard for selecting tables in our case its EMP and Sales
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 9
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 10
(15)If you Notice Relationship between Emp and Sales is absent so with one click we can create
relationship
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 11
(16)Added feature like Calculated Measure name Sales and created a KPI
(17)Select Pivot of your Choice from PivotTable
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 12
(18) Finally - you are good to go with PowerPivot Report based on Hive
Refer
HDInsight ndash What is it
Configuring PowerPivot for Excel 2013
Contact Speaker
httpkaranspeakscom
httpblogsmsdncomkarang
httpstwittercomkarangspeaks
httpinlinkedincominkaranspeaks
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 7
(11)Select ndash Get External Data and Data Import window and Select Others(OLEDBODBC)
(12)Click Build
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 8
(13)Select OLE DB Provider for ODBC
(14)Select DSN which we have created earlier in step number 8 Select Database (In Single Node
HDInsight installation you donrsquot need to provider User Name and Password in current release but
in case of HDInsight on Azure you need to provide User Name and Password) and follow the
wizard for selecting tables in our case its EMP and Sales
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 9
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 10
(15)If you Notice Relationship between Emp and Sales is absent so with one click we can create
relationship
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 11
(16)Added feature like Calculated Measure name Sales and created a KPI
(17)Select Pivot of your Choice from PivotTable
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 12
(18) Finally - you are good to go with PowerPivot Report based on Hive
Refer
HDInsight ndash What is it
Configuring PowerPivot for Excel 2013
Contact Speaker
httpkaranspeakscom
httpblogsmsdncomkarang
httpstwittercomkarangspeaks
httpinlinkedincominkaranspeaks
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 8
(13)Select OLE DB Provider for ODBC
(14)Select DSN which we have created earlier in step number 8 Select Database (In Single Node
HDInsight installation you donrsquot need to provider User Name and Password in current release but
in case of HDInsight on Azure you need to provide User Name and Password) and follow the
wizard for selecting tables in our case its EMP and Sales
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 9
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 10
(15)If you Notice Relationship between Emp and Sales is absent so with one click we can create
relationship
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 11
(16)Added feature like Calculated Measure name Sales and created a KPI
(17)Select Pivot of your Choice from PivotTable
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 12
(18) Finally - you are good to go with PowerPivot Report based on Hive
Refer
HDInsight ndash What is it
Configuring PowerPivot for Excel 2013
Contact Speaker
httpkaranspeakscom
httpblogsmsdncomkarang
httpstwittercomkarangspeaks
httpinlinkedincominkaranspeaks
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 9
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 10
(15)If you Notice Relationship between Emp and Sales is absent so with one click we can create
relationship
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 11
(16)Added feature like Calculated Measure name Sales and created a KPI
(17)Select Pivot of your Choice from PivotTable
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 12
(18) Finally - you are good to go with PowerPivot Report based on Hive
Refer
HDInsight ndash What is it
Configuring PowerPivot for Excel 2013
Contact Speaker
httpkaranspeakscom
httpblogsmsdncomkarang
httpstwittercomkarangspeaks
httpinlinkedincominkaranspeaks
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 10
(15)If you Notice Relationship between Emp and Sales is absent so with one click we can create
relationship
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 11
(16)Added feature like Calculated Measure name Sales and created a KPI
(17)Select Pivot of your Choice from PivotTable
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 12
(18) Finally - you are good to go with PowerPivot Report based on Hive
Refer
HDInsight ndash What is it
Configuring PowerPivot for Excel 2013
Contact Speaker
httpkaranspeakscom
httpblogsmsdncomkarang
httpstwittercomkarangspeaks
httpinlinkedincominkaranspeaks
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 11
(16)Added feature like Calculated Measure name Sales and created a KPI
(17)Select Pivot of your Choice from PivotTable
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 12
(18) Finally - you are good to go with PowerPivot Report based on Hive
Refer
HDInsight ndash What is it
Configuring PowerPivot for Excel 2013
Contact Speaker
httpkaranspeakscom
httpblogsmsdncomkarang
httpstwittercomkarangspeaks
httpinlinkedincominkaranspeaks
HDInsight on Windows Building PowerPivot Report from Hive in a Few Easy Steps
Karan Gulati (SSAS Maestro) Page 12
(18) Finally - you are good to go with PowerPivot Report based on Hive
Refer
HDInsight ndash What is it
Configuring PowerPivot for Excel 2013
Contact Speaker
httpkaranspeakscom
httpblogsmsdncomkarang
httpstwittercomkarangspeaks
httpinlinkedincominkaranspeaks