Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Count(*) not working on Hbase mapped Hive Table

avatar

I've a Hbase mapped Hive table which retrieves rows when I run

select * from my_table;

109009-capture.png

But when I execute

select count(*) from my_table; 

the output is 0.

109081-capture.png


What must be the issue in this case ?

1 ACCEPTED SOLUTION

avatar
Master Guru

@Prathamesh H

Instead of select count(*) use

select count(<column_name>) from my_table; 

this command will display number of rows in the hive-hbase table.

-

If the answer is helpful to resolve the issue, Click on Accept button below to close this thread.This will help other community users to find answers quickly :-).


View solution in original post

2 REPLIES 2

avatar
Master Guru

@Prathamesh H

Instead of select count(*) use

select count(<column_name>) from my_table; 

this command will display number of rows in the hive-hbase table.

-

If the answer is helpful to resolve the issue, Click on Accept button below to close this thread.This will help other community users to find answers quickly :-).


avatar

The above querstion and the entire reply thread below was originally posted in the Community Help Track. On Tue Jun 4 03:55 UTC 2019, a member of the HCC moderation staff moved it to the Data Processing track. The Community Help Track is intended for questions about using the HCC site itself.

Bill Brooks, Community Moderator
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.