Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

Commit

Permalink
DevPH_Rev4 lab files
Browse files Browse the repository at this point in the history
  • Loading branch information
lestermartin committed Oct 20, 2015
1 parent 541c46d commit 4527ea4
Show file tree
Hide file tree
Showing 85 changed files with 512,244 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# DevPH_Labs

Rev4 /labs files for HDP 2.1 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.
30,000 changes: 30,000 additions & 0 deletions labs/Lab2.1/data.txt

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions labs/Lab3.1/salaries.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use test;

drop table if exists salaries;

create table salaries (
gender varchar(1),
age int,
salary double,
zipcode int);

load data infile '/tmp/salaries.txt' into table salaries fields terminated by ',';

alter table salaries add column `id` int(10) unsigned primary KEY AUTO_INCREMENT;
50 changes: 50 additions & 0 deletions labs/Lab3.1/salaries.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
F,66,41000,95103
M,40,76000,95102
F,58,95000,95103
F,68,60000,95105
M,85,14000,95102
M,14,0,95105
M,52,2000,94040
M,67,99000,94040
F,43,11000,94041
F,37,65000,94040
M,72,83000,94041
M,68,15000,95103
F,74,37000,95105
F,15,0,95050
F,83,0,94040
F,30,10000,95101
M,19,0,95050
M,23,89000,95105
M,1,0,95050
F,4,0,95103
M,23,64000,94041
M,79,15000,94040
F,65,70000,95102
F,96,9000,95102
F,92,56000,94041
M,17,0,95102
M,17,0,95103
F,17,0,95050
M,50,18000,95102
M,15,0,95103
M,6,0,95051
F,3,0,95050
M,44,96000,94040
F,73,12000,95102
M,55,32000,94040
F,82,10000,95102
F,33,29000,95050
M,67,81000,95101
M,31,95000,94041
M,34,61000,94040
F,22,90000,95102
M,66,84000,95103
M,71,0,94041
F,16,0,95102
F,97,69000,95103
M,48,91000,95102
F,1,0,95102
M,45,48000,94041
F,39,3000,94040
F,84,14000,95051
9 changes: 9 additions & 0 deletions labs/Lab3.2/salaries2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use test;

drop table if exists salaries2;

create table salaries2 (
gender varchar(1),
age int,
salary double,
zipcode int);
Loading

0 comments on commit 4527ea4

Please sign in to comment.