May 2017
Beginner to intermediate
596 pages
15h 2m
English
In this section we will visualize the output from bulk data upload and MapReduce examples explained in previous sections in Hive tables. In order to achieve this, let us follow given steps:
| Text File Visualization with Hive Table | MapReduce Output with Hive Table |
|
CREATE EXTERNAL TABLE IF NOT EXISTS ContactsText( id STRING, cell STRING, phone STRING, email STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE location '<hdfs-path-to-txt-file>'; |
CREATE EXTERNAL TABLE IF NOT EXISTS ContactsMR( id ... |