Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

How to write the HQL to retrieve the records for one specific file for the same table

$
0
0
Hi, hive experts

When I import data into HIVE, I used the component "Hadoop File Output" to load the data into hdfs://cloudera:cloudera@135.252.31.26:8020/user/hive/warehouse/user/abc.
Note: 1.The option "included date in the file name?" is yes.
2. user is the table name that I created in hive.

So when I run this *.ktr file everyday, I can find a new file like abc_130723 is generated on /user/hive/warehouse/user/ via checking "hadoop fs - /user/hive/warehouse/user, and I can find all the records in all the abc* files are shown when running "select * from user".
Now, I only want to read the records in someday like the abc_130724. Is it doable? Can you share me how to write the HQL?

Thanks/Maria

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>