Select count (*) in hive is always 0, select * has data

As shown in the question, when using hive, when using the aggregate function select count (*), instead of going through the MR program, directly return 0, and select * has data: the
Insert picture description herereason is that my data is directly uploaded to the specified directory through the put command
Insert picture description hereYes, I did n’t use load to upload, use hdfs to view the files: the permissions of the two files are different, there is no good solution for the time being, my way is to delete the original data, honestly use the load command to load data Okay.

Published 39 original articles · won praise 1 · views 4620

Guess you like

Origin blog.csdn.net/thetimelyrain/article/details/104167383