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.
/labs files from https://github.com/HortonworksUniversity/DevPH_Rev4
- Loading branch information
1 parent
541c46d
commit 4527ea4
Showing
85 changed files
with
512,244 additions
and
0 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 +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. |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -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; |
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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use test; | ||
|
||
drop table if exists salaries2; | ||
|
||
create table salaries2 ( | ||
gender varchar(1), | ||
age int, | ||
salary double, | ||
zipcode int); |
Oops, something went wrong.