Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adding a script to open terminals and updating the workshop script to…

… be better-formatted markdown.
  • Loading branch information...
commit 10bd725207d516be1f6556e3bd1bf0289c931579 1 parent d2e6e0f
Matthew McCullough authored

Showing 2 changed files with 25 additions and 16 deletions. Show diff stats Hide diff stats

  1. +16 16 Hadoop Workshop Labs.md
  2. +9 0 open-terminals.sh
32 Hadoop Workshop Labs.md
Source Rendered
@@ -99,28 +99,28 @@ hadoop fs -cat shakespeare_words.output/part-00000
99 99
100 100
101 101 ##Hive
102   -hive
103   -### Clean up logs
104   -hadoop fs -rmr shakespeare_freq/_logs
105   -
106   -SHOW TABLES;
107   -CREATE TABLE shakespeare (freq INT, word STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' STORED AS TEXTFILE;
108   -DESCRIBE shakespeare;
  102 + hive
109 103
110   -LOAD DATA INPATH "shakespeare_freq" INTO TABLE shakespeare;
  104 +### Clean up logs
  105 + hadoop fs -rmr shakespeare_freq/_logs
111 106
112   -SELECT * FROM shakespeare LIMIT 10;
  107 + SHOW TABLES;
  108 + CREATE TABLE shakespeare (freq INT, word STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' STORED AS TEXTFILE;
  109 + DESCRIBE shakespeare;
113 110
114   -SELECT * FROM shakespeare WHERE freq > 100 SORT BY freq ASC LIMIT 10;
115   -exit;
  111 + LOAD DATA INPATH "shakespeare_freq" INTO TABLE shakespeare;
  112 +
  113 + SELECT * FROM shakespeare LIMIT 10;
  114 +
  115 + SELECT * FROM shakespeare WHERE freq > 100 SORT BY freq ASC LIMIT 10;
  116 + exit;
116 117
117 118
118 119 ## Configuring Hadoop
119   -cd /usr/lib/hadoop-0.20/conf
  120 + cd /usr/lib/hadoop-0.20/conf
120 121
121 122
122 123 ## Managing Hadoop
123   -
124   -cd /usr/lib/hadoop-0.20/bin
125   -sudo -u hadoop start-all.sh
126   -sudo -u hadoop stop-all.sh
  124 + cd /usr/lib/hadoop-0.20/bin
  125 + sudo -u hadoop start-all.sh
  126 + sudo -u hadoop stop-all.sh
9 open-terminals.sh
... ... @@ -0,0 +1,9 @@
  1 +terminal.sh /Users/mccm06/Documents/Teach/Courses/Hadoop/sample-data
  2 +sleep 1
  3 +terminal.sh /Applications/Dev/hadoop-family/hbase-0.20.2/bin
  4 +sleep 1
  5 +terminal.sh /Applications/Dev/hadoop-family/hadoop-0.20.1/bin
  6 +sleep 1
  7 +terminal.sh /Applications/Dev/hadoop-family/hadoop-0.20.1/logs
  8 +sleep 1
  9 +terminal.sh /Applications/Dev/hadoop-family/hadoop-0.20.1/conf

0 comments on commit 10bd725

Please sign in to comment.
Something went wrong with that request. Please try again.