Search

How can we copy the columns of a hive table into a file?



By using awk command in shell, the output from HiveQL Describe command can be written to a file.
Shell

$ hive -S -e "describe table_name;" | awk -F" " ’{print 1}’ > ~/output.