Skip to main content
sduraisankar93
Silver ⭐️⭐️
Jul 17, 2019 7:34 PM UTC
Solved

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

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

Shu_ashu
Shu_ashuAnswer
Gold ⭐️⭐️⭐️
Jul 18, 2019 10:25 AM UTC

@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.

5 replies

Shu_ashu
Shu_ashuAnswer
Gold ⭐️⭐️⭐️
Jul 18, 2019 10:25 AM UTC

@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.
Translate
sduraisankar93
Silver ⭐️⭐️
Jul 18, 2019 1:13 PM UTC

thank u 4 the info

Translate
Shu_ashu
Gold ⭐️⭐️⭐️
Jul 18, 2019 11:15 PM UTC

@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 🙂

Translate
sduraisankar93
Silver ⭐️⭐️
Jul 18, 2019 11:38 PM UTC

@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



Translate
sduraisankar93
Silver ⭐️⭐️
Jul 18, 2019 11:39 PM UTC

@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

Translate