No Data is Found in the Hive Table Using Presto
Issue
When Presto is used to query a Hive table, no data is found.
Symptom
Presto cannot query the data written by union statements executed by the Tez engine.
Cause Analysis
When Hive uses the Tez engine to execute the union statements, the output file is stored in the HIVE_UNION_SUBDIR directory. However, Presto does not access files in child directories by default. Therefore, data in the HIVE_UNION_SUBDIR directory is not read.
Procedure
- On the MRS console, click the cluster name, and choose Components > Presto > Service Configuration.
- Change Basic to All.
- In the navigation pane on the left, choose Presto > Hive. In the catalog/hive.properties file, add the hive.recursive-directories parameter and set it to true.
- Click Save Configuration and select Restart the affected services or instances.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot