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!

unable to view the content of acid table in spark and hive

avatar
New Member

i have created acid orc partition table in hive. By using spark i insert the data to that table . in table pointing location its showing data like

/warehouse/tablespace/managed/hive/testdb.db/table__2/full_date=2019-07-17/delta_0000000_0000000_0000/ 0000_0 .


when i query the table it showing only column names can any one give me a solution

1 ACCEPTED SOLUTION

avatar
Master Guru

@Duraisankar S

You can run Major compaction on the partition in Hive, after the major compaction is done base-**** directory will be created.

Then spark able to read the specific partition which have base-*** directories in it.

But spark not able to read delta directories as there is an open Jira [SPARK-15348] about spark is not able to read acid table.


I think starting from HDP-3.X HiveWareHouseConnector is able to support to read HiveAcid tables.

View solution in original post

5 REPLIES 5

avatar
Master Guru

@Duraisankar S

You can run Major compaction on the partition in Hive, after the major compaction is done base-**** directory will be created.

Then spark able to read the specific partition which have base-*** directories in it.

But spark not able to read delta directories as there is an open Jira [SPARK-15348] about spark is not able to read acid table.


I think starting from HDP-3.X HiveWareHouseConnector is able to support to read HiveAcid tables.

avatar
New Member

thank u 4 the info

avatar
Master Guru

@Duraisankar S

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

avatar
New Member

@shu


hive warehouse connector support for acid table is available in HDP-3.0 r do i need to upgrade HDP-3.0 to HDP-3.1



avatar
New Member

@Shu hive warehouse connector support for acid table is available in HDP-3.0 r do i need to upgrade HDP-3.0 to HDP-3.1