This is the documentation for CDH 4.7.1. Documentation for other versions is available at Cloudera Documentation.

Cloudera Manager 4 and CDH 4 have reached End of Maintenance (EOM) on August 9, 2015. Cloudera will not support or provide patches for any of the Cloudera Manager 4 or CDH 4 releases after that date.

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"

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

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

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

This page last updated August 5, 2015