Hive Exercises
Hive Exercises
* hive exercises
*
* part of a longer hadoop video course at http://bit.ly/learn-hadoop/
*
* @author rICh <[email protected]>
*/
// start up hive
Hive
// this is an external table
CREATE DATABASE page_view;
DESC page_view_external;
DESC EXTENDED page_view_external;
// WRONG! This data is EXTERNAL and in the location that we connected up with the
CREATE TABLE command
hadoop fs -ls /user/cloudera/input-data/page_view/
// you may want to query the hive data more, but when you're done, let's drop each table
& notice what happens
SHOW TABLES;