June 2018
Beginner to intermediate
210 pages
5h 12m
English
Since we deal with tables most of the time, there are a few useful table-information display commands, as follows:
> SHOW TABLES; -- Show all tables in database > SHOW TABLES '*sam*'; -- Show tables name contains "sam" > SHOW TABLES '*sam|lily*'; -- Show tables name contains "sam" or "lily"
>SHOW TABLE EXTENDED LIKE 'employee_int*'; OK tableName:employee_internal owner:dayongd location:hdfs://localhost/user/hive/warehouse/employee_internal inputformat:org.apache.hadoop.mapred.TextInputFormat outputformat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyText OutputFormatcolumns:struct columns { ...Read now
Unlock full access