IMPALA-9444: Fix URL for postgresql jar download

The current URL uses http://central.maven.org, which has been
decommissioned as part of the transition to HTTPS. See:
https://central.sonatype.org/articles/2019/Jul/15/central-http-deprecation-update/
https://central.sonatype.org/articles/2020/Jan/15/501-https-required-error/
This switches the URL to use https://repo.maven.apache.org/.

Testing:
 - Removed postgresql jar, ran bin/create-test-configuration.sh,
   verified that it downloaded the jar.

Change-Id: I7ee9a1ce77bc3f8c6b3f728633cafe4eb37e669d
Reviewed-on: http://gerrit.cloudera.org:8080/15337
Reviewed-by: Joe McDonnell <joemcdonnell@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
Joe McDonnell
2020-03-02 10:54:46 -08:00
parent d3a2d73fda
commit 8357f61886

View File

@@ -243,7 +243,7 @@ if [[ -f "${POSTGRES_JDBC_DRIVER}" ]]; then
cp -f "${POSTGRES_JDBC_DRIVER}" "${RANGER_SERVER_LIB_DIR}"
else
# IMPALA-8261: Running this script should not fail when FE has not been built.
MAVEN_URL="http://central.maven.org/maven2/org/postgresql/postgresql"
MAVEN_URL="https://repo.maven.apache.org/maven2/org/postgresql/postgresql"
JDBC_JAR="postgresql-${IMPALA_POSTGRES_JDBC_DRIVER_VERSION}.jar"
wget -P "${RANGER_SERVER_LIB_DIR}" \
"${MAVEN_URL}/${IMPALA_POSTGRES_JDBC_DRIVER_VERSION}/${JDBC_JAR}"