fix(GMS): fix no such classes directory file:///etc/datahub/plugins/auth/resources (#5743)

This commit is contained in:
mohdsiddique 2022-08-30 00:38:18 +05:30 committed by GitHub
parent 67a68b9705
commit 2b4f9400ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 6 deletions

View File

@ -53,10 +53,15 @@ if [[ $ENABLE_PROMETHEUS == true ]]; then
PROMETHEUS_AGENT="-javaagent:jmx_prometheus_javaagent.jar=4318:/datahub/datahub-gms/scripts/prometheus-config.yaml "
fi
# for container based deployments the default directory is /etc/datahub/plugins/auth/resources and it can be different for
# For container based deployments the default directory is /etc/datahub/plugins/auth/resources and it can be different for
# kubernetes deployments
auth_resource_dir=${AUTH_RESOURCES_DIR:-"/etc/datahub/plugins/auth/resources"}
# Option --classes ${AUTH_RESOURCE_LOOK_UP_DIR} is added for Apache Ranger library to load the ranger-datahub-security.xml from classpath
CLASSES_DIR=""
if [[ ${RANGER_AUTHORIZER_ENABLED} == true ]]; then
CLASSES_DIR="--classes ${auth_resource_dir}"
fi
COMMON="
$WAIT_FOR_EBEAN \
$WAIT_FOR_CASSANDRA \
@ -68,7 +73,7 @@ COMMON="
$PROMETHEUS_AGENT \
-jar /jetty-runner.jar \
--jar jetty-util.jar \
--jar jetty-jmx.jar --classes ${auth_resource_dir} \
--jar jetty-jmx.jar ${CLASSES_DIR} \
--config /datahub/datahub-gms/scripts/jetty.xml \
/datahub/datahub-gms/bin/war.war"

View File

@ -33,7 +33,6 @@ services:
- mysql
volumes:
- ${HOME}/.datahub/plugins:/etc/datahub/plugins
- ${HOME}/.datahub/plugins/auth/resources/:/etc/datahub/plugins/auth/resources
volumes:

View File

@ -48,7 +48,6 @@ services:
- ../metadata-models/src/main/resources/:/datahub/datahub-gms/resources
- ../metadata-service/war/build/libs/:/datahub/datahub-gms/bin
- ${HOME}/.datahub/plugins:/etc/datahub/plugins
- ${HOME}/.datahub/plugins/auth/resources/:/etc/datahub/plugins/auth/resources
datahub-frontend-react:
image: linkedin/datahub-frontend-react:debug

View File

@ -86,7 +86,6 @@ services:
- ${DATAHUB_MAPPED_GMS_PORT:-8080}:8080
volumes:
- ${HOME}/.datahub/plugins:/etc/datahub/plugins
- ${HOME}/.datahub/plugins/auth/resources/:/etc/datahub/plugins/auth/resources
elasticsearch:
container_name: elasticsearch
environment:

View File

@ -90,7 +90,6 @@ services:
- 8080:8080
volumes:
- ${HOME}/.datahub/plugins:/etc/datahub/plugins
- ${HOME}/.datahub/plugins/auth/resources/:/etc/datahub/plugins/auth/resources
elasticsearch:
container_name: elasticsearch
environment: