This repository has been archived by the owner on Sep 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
to align with HDP 2.2 version of the course offering
- Loading branch information
1 parent
4527ea4
commit 5c60e94
Showing
5 changed files
with
22 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# DevPH_Labs | ||
|
||
Rev4 /labs files for HDP 2.1 version of the | ||
Rev5 /labs files for HDP 2.2 version of the | ||
http://hortonworks.com/training/class/hadoop-2-data-analysis-pig-hive/ course. | ||
|
||
Files are a replay of the /labs folder from https://github.com/HortonworksUniversity/DevPH_Rev4. | ||
Status: Currently in Production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
SELECT ordertotal, orders.userid, itemlist | ||
FROM orders | ||
JOIN max_ordertotal ON | ||
max_ordertotal.userid = orders.userid | ||
AND | ||
max_ordertotal.maxtotal = orders.ordertotal; | ||
|
||
select order_date, sum(ordertotal) FROM orders GROUP BY order_date; | ||
select count(*) as visit_count, fname, lname | ||
from wh_visits | ||
group by fname, lname | ||
order by visit_count DESC | ||
limit 20; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
CREATE TABLE hive_user_email | ||
STORED AS AVRO | ||
TBLPROPERTIES ('avro.schema.url'='hdfs://sandbox.hortonworks.com:8020/user/root/mbox.avsc'); | ||
|
||
ROW FORMAT | ||
|
||
SERDE 'org.apache.hadoop.hive.serde2.avro.AvroSerDe' | ||
|
||
WITH SERDEPROPERTIES ( | ||
'avro.schema.url'='hdfs:///user/root/mbox.avsc') | ||
|
||
STORED AS | ||
|
||
INPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat' | ||
|
||
OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat' | ||
; | ||
#CREATE TABLE hive_user_email | ||
#ROW FORMAT | ||
#SERDE 'org.apache.hadoop.hive.serde2.avro.AvroSerDe' | ||
#WITH SERDEPROPERTIES ( | ||
# 'avro.schema.url'='hdfs:///user/root/mbox.avsc') | ||
#STORED AS | ||
#INPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat' | ||
#OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat' | ||
#; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters