Cloudera Enterprise 5.15.x | Other versions

Accessing Table Information with the HCatalog Command-line API

# Create a table
$ hcat -e "create table groups(name string,placeholder string,id int) row format delimited fields terminated by ':' stored as textfile"
OK

# Get the schema for a table
$ hcat -e "desc groups"
OK
name    string  
placeholder     string  
id      int     

# Create another table
$ hcat -e "create table groupids(name string,id int)"
OK

See the HCatalog documentation for information on using the HCatalog command-line application.

Page generated May 18, 2018.