Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Dynamic partition in hive for timestamp

avatar
Rising Star
 
1 ACCEPTED SOLUTION

avatar
Master Guru
@Gayathri Devi
As per logs you have shared 
starttime=2017-08-01 18:40:03.0
starttime=2017-08-02 18:40:03.0
starttime=2017-08-03 18:40:03.0
starttime=2017-08-04 18:40:03.0
starttime=2017-08-05 18:40:03.0
starttime=2017-08-06 18:40:03.0
starttime=2017-08-09 18:40:03.0 partitions are created to view them
Do
hive# desc formatted <database-name>.<table-name>

get the location where table got stored and check

the hdfs location

bash# hdfs dfs -ls -R <table-location>

View solution in original post

2 REPLIES 2

avatar
Master Guru
@Gayathri Devi
As per logs you have shared 
starttime=2017-08-01 18:40:03.0
starttime=2017-08-02 18:40:03.0
starttime=2017-08-03 18:40:03.0
starttime=2017-08-04 18:40:03.0
starttime=2017-08-05 18:40:03.0
starttime=2017-08-06 18:40:03.0
starttime=2017-08-09 18:40:03.0 partitions are created to view them
Do
hive# desc formatted <database-name>.<table-name>

get the location where table got stored and check

the hdfs location

bash# hdfs dfs -ls -R <table-location>

avatar
Rising Star

Shu

Thanks !!!