rickchengx opened a new pull request, #11589: URL: https://github.com/apache/dolphinscheduler/pull/11589
<!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.--> ## Purpose of the pull request Mask the password in the log of `sqoop` task. Currently, there are 2 positions that the log of `sqoop` task will output the password of mysql: https://github.com/apache/dolphinscheduler/blob/17a9dd25fa0e80b048394f79db130f56eb8ef72f/dolphinscheduler-task-plugin/dolphinscheduler-task-sqoop/src/main/java/org/apache/dolphinscheduler/plugin/task/sqoop/SqoopTask.java#L83 https://github.com/apache/dolphinscheduler/blob/17a9dd25fa0e80b048394f79db130f56eb8ef72f/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/ShellCommandExecutor.java#L116 ## Brief change log <!--*(for example:)* - *Add maven-checkstyle-plugin to root pom.xml* --> ## Verify this pull request <!--*(Please pick either of the following options)*--> Manually tested. ``` ... [INFO] 2022-08-22 14:31:49.129 +0800 [taskAppId=TASK-20220822-6577167623584_6-49-45] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.sqoop.SqoopTask:[94] - sqoop script: sqoop export -D mapred.job.name=task -m 1 --export-dir /sqoop_test/part-m-00000 --connect "..." --username root --password "******" --table student ... sqoop export -D mapred.job.name=task -m 1 --export-dir /sqoop_test/part-m-00000 --connect "..." --username root --password "******" --table student ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
