[Fix][data-quality] change data-quality task main jar path (#8752)

* feat(data-quality) change data-quality task main jar path

* feat(data-quality) change data-quality task main jar path

Co-authored-by: zixi0825 <sunzhaohe@linklogis.com>
This commit is contained in:
zixi0825 2022-03-09 21:49:19 +08:00 committed by GitHub
parent ddd4474189
commit 6a02b15e40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -76,7 +76,7 @@ datasource.encryption.enable=false
datasource.encryption.salt=!@#$%^&*
# data quality option
data-quality.jar.name=/worker-server/libs/dolphinscheduler-data-quality-2.0.4-SNAPSHOT.jar
data-quality.jar.name=dolphinscheduler-data-quality-2.0.4-SNAPSHOT.jar
#data-quality.error.output.path=/tmp/data-quality-error-data

View File

@ -180,7 +180,8 @@ public class DataQualityTask extends AbstractYarnTask {
@Override
protected void setMainJarName() {
ResourceInfo mainJar = new ResourceInfo();
mainJar.setRes(CommonUtils.getDataQualityJarName());
String basePath = System.getProperty("user.dir").replace(File.separator + "bin", File.separator + "libs");
mainJar.setRes(basePath + File.separator + CommonUtils.getDataQualityJarName());
dataQualityParameters.getSparkParameters().setMainJar(mainJar);
}