Help Center/ MapReduce Service/ Developer Guide (LTS)/ Hive Development Guide (Normal Mode)/ Debugging Hive Applications/ Running Python3 and Viewing Results
Updated on 2026-04-09 GMT+08:00
Running Python3 and Viewing Results
Running Python in CLI Mode
- Grant the execution permission for the script of python3-examples folder. Run the following command in the CLI:
chmod +x python3-examples -R.
- In python3-examples/pyCLI_nosec.py, change the value of host array to the service plane IP address of the node where HiveServer is installed, and change the value of port to the hiveserverPort (hive.server2.thrift.port) used by Hive to provide the Thrift service. The default value is 10000.
- Run the following commands to start the Python3 client:
cd python3-examples
python pyCLI_nosec.py
- In the CLI, view the HQL query results in the example codes. For example:
[['default', '']] [{'comment': 'from deserializer', 'columnName': 'tab_name', 'type': 'STRING_TYPE'}] ['xx']
Parent topic: Debugging Hive Applications
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot