Python Engine Usage
If you want to use the python EngineConn on your server, you need to ensure that the python execution directory and execution permissions are in the user’s PATH.
Table 1-1 Environmental configuration list
Python supports python2 and For python3, you can simply change the configuration to complete the Python version switch, without recompiling the python EngineConn version.
Page configuration:
2.2 python engineConn deployment and loading
Here you can use the default loading method to be used normally.
Ready to operate
Before submitting python on linkis, you only need to make sure that there is python path in your user’s PATH.
Linkis provides a client method to call python tasks. The call method is through the SDK provided by LinkisClient. We provide java and scala two ways to call, the specific usage can refer to JAVA SDK Manual. If you use Hive, you only need to make the following changes:
3.2 How to use Linkis-cli
After Linkis 1.0, you can submit tasks through cli. We only need to specify the corresponding EngineConn and CodeType tag types. The use of Python is as follows:
The specific usage can refer to Linkis CLI Manual.
The way to use Scriptis is the simplest. You can directly enter Scriptis, right-click the directory and create a new python script, write python code and click Execute.
Figure 3-1 Screenshot of the execution effect of python
In addition to the above EngineConn configuration, users can also make custom settings, such as the version of python and some modules that python needs to load.
Figure 4-1 User-defined configuration management console of python