[
https://issues.apache.org/jira/browse/AMBARI-21492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16089824#comment-16089824
]
Hari Sekhon commented on AMBARI-21492:
--------------------------------------
I had set up all the Ambari and HDF repos internally as usual, and have
installed the mysql-connector jar to ambari resources via ambari-server setup
--jdbc-b + --jdbc-driver.
Interestingly this already exists as expected:
/usr/hdf/current/registry/bootstrap/lib/mysql-connector-java.jar
and I found this in the logs:
{code}Not downloading the file from
http://<FQDN>`:8080/resources//mysql-connector-java.jar, because
/var/lib/ambari-agent/tmp/mysql-connector-java.jar already exists{code}
which makes it strange that executing the bootstrap script should then try to
download it anyway:
{code}resource_management.core.exceptions.ExecutionFailed: Execution of 'source
/usr/hdf/current/registry/conf/registry-env.sh ;
/usr/hdf/current/registry/bootstrap/bootstrap-storage.sh' returned 1. Using
Configuration file: /usr/hdf/current/registry/bootstrap/../conf/registry.yaml
Downloading mysql jar from url:
https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip
Downloading file mysql-connector-java-5.1.40.zip into /tmp
Failed to download the mysql driver from
https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip
Error occurred while downloading MySQL jar. bootstrap dir:
/usr/hdf/current/registry/bootstrap{code}
> HDF 3.0 Schema Registry support for offline install, mysql-connector-java.jar
> bootstrap fails to fetch from internet
> --------------------------------------------------------------------------------------------------------------------
>
> Key: AMBARI-21492
> URL: https://issues.apache.org/jira/browse/AMBARI-21492
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.5.1
> Environment: HDF 3.0 on Suse 12
> Reporter: Hari Sekhon
> Attachments:
> Ambari_Schema_Registry_failure_fetching_mysql_connector.txt
>
>
> Add support for offline install of Schema Registry.
> When doing an offline install of HDF 3.0 via Ambari 2.5.1 it fails to set up
> the Registry service as it assumes internet access and tries to pull down the
> mysql-connector-java-5.1.40.zip from dev.mysql.com directly which fails.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)