Shell Engine Usage document
If you want to use the shell EngineConn on your server, you need to ensure that the user’s PATH has the bash execution directory and execution permissions.
Table 1-1 Environmental configuration list
The shell EngineConn does not need to be compiled by the user, and the compiled shell EngineConn plug-in package can be used directly.
2.2 shell engineConn deployment and loading
Here you can use the default loading method to be used normally.
Ready to operate
Before submitting the shell on linkis, you only need to ensure that there is the path of the shell in your user’s $PATH.
Linkis provides a client method to call shell 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 shell is as follows:
The specific usage can refer to Linkis CLI Manual.
The execution principle of the shell is that the shell EngineConn starts a system process to execute through the ProcessBuilder that comes with java, and redirects the output of the process to the EngineConn and writes it to the log.
Figure 3-1 Screenshot of shell execution effect
The shell EngineConn can generally set the maximum memory of the EngineConn JVM.