Hadoop DP Notes
Home
Contact Us
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.
Newer Post
Older Post
Home
What are the main components of Mapreduce Job ?
Main driver class which provides job configuration parameters. Mapper class which must extend org.apache.hadoop.mapredu...
TO_CHAR
This will be used to extract various date formats. The available date formats as follows. Syntax: to_char ( date , fo...