Hive Sample Project
To obtain an MRS sample project, visit https://github.com/huaweicloud/huaweicloud-mrs-example and switch to the branch that matches the MRS cluster version. Download the package to the local PC and decompress it to obtain the sample project of each component.
Sample Project Location |
Description |
---|---|
|
Java program for Hive JDBC to process data. In this project, JDBC APIs are used to connect to Hive and perform data operations. You can use JDBC APIs to create tables, load data, and query data. You can access FusionInsight ZooKeeper and third-party ZooKeeper in the same client process at the same time. For details, see Accessing Hive with JDBC. |
hive-examples/hcatalog-example |
Java program for Hive HCatalog to process data. You can use HCatalog APIs to define and query MRS Hive metadata using a Hive command line interface. For details about the example, see Access Hive with HCatalog. |
hive-examples/python-examples |
Python program to connect to Hive and execute SQL examples. You can use Python to connect to Hive and submit data analysis tasks. For details about the example, see Accessing Hive Using Python. |
hive-examples/python3-examples |
Python 3 program to connect to Hive and execute SQL statements. You can use Python 3 to connect to Hive and submit data analysis tasks. For details about the example, see Accessing Hive Using Python 3. |
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