Skip to content

[Bug] [SeaTunnel-Task] can't append variables to seatunnel shell command #16746

@liunaijie

Description

@liunaijie

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

In my seatunnel config, there has some variables need replace on run time by parameter.

image

I defined the parameter in custom parameter setting.

image

But this parameter not append to the shell command.

SeaTunnel task command: /Users/jarvis/Downloads/apache-seatunnel-2.3.8/bin/seatunnel.sh --config /tmp/dolphinscheduler/exec/process/default/15454113618464/15454122106144_1/1/1/seatunnel_1_1.conf --deploy-mode local

I check the code, it can get the user defined parameter from localParameters

image

So we need check if localParameters not empty, then append -i key='value' parameter to the shell command.

What you expected to happen

fix seatunnel task submit issue

How to reproduce

run a seatunnel task

Anything else

No response

Version

dev

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions