<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Error starting registry in Ambari (HDF 3.0) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233686#M64269</link>
    <description>&lt;P&gt;This is the bug (AMBARI-21492): &lt;A href="https://issues.apache.org/jira/browse/AMBARI-21492" target="_blank"&gt;https://issues.apache.org/jira/browse/AMBARI-21492&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Another simple workaround is to download the file, stuff it somewhere on a web server and edit the MYSQL_JAR_URL_PATH in this file: /usr/hdf/current/registry/bootstrap/bootstrap-storage.sh&lt;BR /&gt;If you're super lazy, this can work too:&lt;/P&gt;&lt;PRE&gt;yum install httpd -y  # Installs the Apache HTTP Server.
apachectl start  # Starts it.
# You can optionally use the jar brought by 'yum install mysql-connector-java', if it's up to date, to pack it into a format the script expects:
# mkdir /tmp/mysql-connector-java-5.1.40
# cp /usr/share/java/mysql-connector-java.jar /tmp/mysql-connector-java-5.1.40/mysql-connector-java-5.1.40-bin.jar
# cd /tmp
# zip /tmp/mysql-connector-java-5.1.40/ mysql-connector-java-5.1.40.zip
cp &amp;lt;wherever&amp;gt;/mysql-connector-java-5.1.40.zip /var/www/html/  # Based on environment, this one's for RHEL/Centos.
vi /usr/hdf/current/registry/bootstrap/bootstrap-storage.sh
# MYSQL_JAR_URL_PATH=http://yourserver/mysql-connector-java-5.1.40.zip&lt;/PRE&gt;</description>
    <pubDate>Fri, 29 Sep 2017 20:45:30 GMT</pubDate>
    <dc:creator>dgdkay</dc:creator>
    <dc:date>2017-09-29T20:45:30Z</dc:date>
    <item>
      <title>Error starting registry in Ambari (HDF 3.0)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233676#M64259</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After installing the HDF (3.0.0.0) platform with NiFi, I am trying to start the Registry service (0.3.0), but it fails due to the following error:&lt;/P&gt;&lt;PRE&gt;Downloading mysql jar from url: &lt;A href="https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip" target="_blank"&gt;https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip&lt;/A&gt;
Downloading file mysql-connector-java-5.1.40.zip into /tmp
Failed to download the mysql driver from &lt;A href="https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip" target="_blank"&gt;https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip&lt;/A&gt;
Error occurred while downloading MySQL jar. bootstrap dir: /usr/hdf/current/registry/bootstrap
&lt;/PRE&gt;&lt;P&gt;I have modified my &lt;EM&gt;ambari-server/ambari-env.sh&lt;/EM&gt; file with the correct proxy host name and port, but does not appear to help. I have also tried manually installing this version of the mysql-connector, again no luck. &lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 12:22:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233676#M64259</guid>
      <dc:creator>gavin_duffy</dc:creator>
      <dc:date>2026-04-21T12:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error starting registry in Ambari (HDF 3.0)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233677#M64260</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20331/gavinduffy.html" nodeid="20331"&gt;@Gavin Duffy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you please share the complete error from ambari-server.log?&lt;/P&gt;&lt;P&gt;Are you able to do wget from the host where you are trying to start the registry service?  With our Without Proxy?&lt;/P&gt;&lt;PRE&gt;# wget &lt;A href="https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip" target="_blank"&gt;https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 20:19:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233677#M64260</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-05T20:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error starting registry in Ambari (HDF 3.0)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233678#M64261</link>
      <description>&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;Full error log here from /var/lib/ambari-agent/data/errors-156.txt&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/REGISTRY/0.3.0/package/scripts/registry_server.py", line 120, in &amp;lt;module&amp;gt;
    RegistryServer().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 329, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/REGISTRY/0.3.0/package/scripts/registry_server.py", line 66, in start
    user="root")
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 262, in action_run
    tries=self.resource.tries, try_sleep=self.resource.try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
    raise ExecutionFailed(err_msg, code, out, err)
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: &lt;A href="https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip" target="_blank"&gt;https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip&lt;/A&gt;
Downloading file mysql-connector-java-5.1.40.zip into /tmp
Failed to download the mysql driver from &lt;A href="https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip" target="_blank"&gt;https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip&lt;/A&gt;
Error occurred while downloading MySQL jar. bootstrap dir: /usr/hdf/current/registry/bootstrap&lt;/PRE&gt;&lt;P&gt;I also tried the wget request and it failed. I then updated the wget config file to use a http proxy and https proxy and the wget download then succeeded. However the issue above still persists when trying to start the registry service through Ambari.&lt;/P&gt;&lt;P&gt;For completeness here is the log from /var/lib/ambari-agent/data/output-202.txt&lt;/P&gt;&lt;PRE&gt;2017-07-05 10:05:03,512 - Group['hadoop'] {}
2017-07-05 10:05:03,515 - Group['nifi'] {}
2017-07-05 10:05:03,515 - User['streamline'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-07-05 10:05:03,516 - User['registry'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-07-05 10:05:03,517 - User['storm'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-07-05 10:05:03,517 - User['infra-solr'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-07-05 10:05:03,518 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-07-05 10:05:03,519 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-07-05 10:05:03,519 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users']}
2017-07-05 10:05:03,520 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-07-05 10:05:03,520 - User['nifi'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'nifi']}
2017-07-05 10:05:03,521 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2017-07-05 10:05:03,525 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2017-07-05 10:05:03,532 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa'] due to not_if
2017-07-05 10:05:03,549 - Execute[('setenforce', '0')] {'not_if': '(! which getenforce ) || (which getenforce &amp;amp;&amp;amp; getenforce | grep -q Disabled)', 'sudo': True, 'only_if': 'test -f /selinux/enforce'}
2017-07-05 10:05:03,561 - Skipping Execute[('setenforce', '0')] due to only_if
2017-07-05 10:05:03,764 - Stack Feature Version Info: stack_version=3.0, version=3.0.0.0-453, current_cluster_version=3.0.0.0-453 -&amp;gt; 3.0.0.0-453
2017-07-05 10:05:03,766 - Directory['/var/log/registry'] {'group': 'hadoop', 'cd_access': 'a', 'create_parents': True, 'recursive_ownership': True, 'owner': 'registry', 'mode': 0755}
2017-07-05 10:05:03,768 - Directory['/var/run/registry'] {'group': 'hadoop', 'cd_access': 'a', 'create_parents': True, 'recursive_ownership': True, 'owner': 'registry', 'mode': 0755}
2017-07-05 10:05:03,769 - Directory['/usr/hdf/current/registry/conf'] {'group': 'hadoop', 'cd_access': 'a', 'create_parents': True, 'recursive_ownership': True, 'owner': 'registry', 'mode': 0755}
2017-07-05 10:05:03,770 - Directory['/var/lib/ambari-agent/data/registry'] {'group': 'hadoop', 'cd_access': 'a', 'create_parents': True, 'mode': 0755, 'owner': 'registry', 'recursive_ownership': True}
2017-07-05 10:05:03,775 - File['/usr/hdf/current/registry/conf/registry-env.sh'] {'content': InlineTemplate(...), 'owner': 'registry'}
2017-07-05 10:05:03,776 - Directory['/etc/security/limits.d'] {'owner': 'root', 'create_parents': True, 'group': 'root'}
2017-07-05 10:05:03,777 - Directory['/hdf/registry'] {'owner': 'registry', 'group': 'hadoop', 'create_parents': True, 'mode': 0755, 'cd_access': 'a'}
2017-07-05 10:05:03,781 - File['/etc/security/limits.d/registry.conf'] {'content': Template('registry.conf.j2'), 'owner': 'root', 'group': 'root', 'mode': 0644}
2017-07-05 10:05:03,788 - File['/usr/hdf/current/registry/conf/registry.yaml'] {'owner': 'registry', 'content': Template('registry.yaml.j2'), 'group': 'hadoop', 'mode': 0644}
2017-07-05 10:05:03,790 - File['/usr/lib/ambari-agent/DBConnectionVerification.jar'] {'content': DownloadSource('http://ourhostname.com:8080/resources/DBConnectionVerification.jar')}
2017-07-05 10:05:03,790 - Not downloading the file from &lt;A href="http://ourhostname.com:8080/resources/DBConnectionVerification.jar" target="_blank"&gt;http://ourhostname.com:8080/resources/DBConnectionVerification.jar&lt;/A&gt;, because /var/lib/ambari-agent/tmp/DBConnectionVerification.jar already exists
2017-07-05 10:05:03,792 - Execute['source /usr/hdf/current/registry/conf/registry-env.sh ; /usr/hdf/current/registry/bootstrap/bootstrap-storage.sh'] {'user': 'root'}
2017-07-05 10:07:12,077 - Execute['find /var/log/registry -maxdepth 1 -type f -name '*' -exec echo '==&amp;gt; {} &amp;lt;==' \; -exec tail -n 40 {} \;'] {'logoutput': True, 'ignore_failures': True, 'user': 'registry'}


&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jul 2017 21:12:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233678#M64261</guid>
      <dc:creator>gavin_duffy</dc:creator>
      <dc:date>2017-07-05T21:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error starting registry in Ambari (HDF 3.0)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233679#M64262</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20331/gavinduffy.html" nodeid="20331"&gt;@Gavin Duffy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ambari Server is a Java program , Where as Ambari Agent is a python program so if you have set the proxy property to the ambari server then it will not have any effect on agent behaviour.&lt;/P&gt;&lt;P&gt;You should try the following:&lt;/P&gt;&lt;P&gt;On all the ambari Agent Host,  in the&lt;STRONG&gt; "~/.bash_profile"&lt;/STRONG&gt; or&lt;STRONG&gt; "~/.profile"&lt;/STRONG&gt; profile we can add the following: &lt;/P&gt;&lt;PRE&gt;export http_proxy=http://YOURPOROXY:PORT&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 22:41:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233679#M64262</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-05T22:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error starting registry in Ambari (HDF 3.0)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233680#M64263</link>
      <description>&lt;P&gt;Unfortunately, no luck either with that. Still the same error as above&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 23:15:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233680#M64263</guid>
      <dc:creator>gavin_duffy</dc:creator>
      <dc:date>2017-07-05T23:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error starting registry in Ambari (HDF 3.0)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233681#M64264</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20331/gavinduffy.html" nodeid="20331"&gt;@Gavin Duffy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I see that the URL is "https" here:   &lt;/P&gt;&lt;PRE&gt; &lt;A href="https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip" target="_blank"&gt;https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;So you should also set the"https_proxy" as well.&lt;/P&gt;&lt;PRE&gt;export http_proxy=http://YOURPOROXY:PORT
export https_proxy=https://YOURPOROXY:PORT&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 23:34:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233681#M64264</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-05T23:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error starting registry in Ambari (HDF 3.0)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233682#M64265</link>
      <description>&lt;P&gt;Sorry I should have said that, I added that in as well, but no luck&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 23:59:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233682#M64265</guid>
      <dc:creator>gavin_duffy</dc:creator>
      <dc:date>2017-07-05T23:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error starting registry in Ambari (HDF 3.0)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233683#M64266</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had the same issue and I resolved it incluiding proxy information&lt;/P&gt;&lt;P&gt;-Dhttps.proxyHost=proxy_name &lt;/P&gt;&lt;P&gt;-Dhttps.proxyPort=xxxx &lt;/P&gt;&lt;P&gt;when bootstrap-storage.sh call the class ${TABLE_INITIALIZER_MAIN_CLASS} &lt;/P&gt;&lt;P&gt;(functions dropTables, createTables, checkStorageConnection).&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 18:02:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233683#M64266</guid>
      <dc:creator>juan_vares</dc:creator>
      <dc:date>2017-07-24T18:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error starting registry in Ambari (HDF 3.0)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233684#M64267</link>
      <description>&lt;P&gt;Hi Juan,&lt;/P&gt;&lt;P&gt;Thanks for sharing. Where exactly did you add this proxy information?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 17:56:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233684#M64267</guid>
      <dc:creator>gavin_duffy</dc:creator>
      <dc:date>2017-08-08T17:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error starting registry in Ambari (HDF 3.0)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233685#M64268</link>
      <description>&lt;P&gt;Thanks Juan,&lt;/P&gt;&lt;P&gt;I have made the changes you suggested and now Registry service is starting without issue. For clarity, I edited the file &lt;/P&gt;&lt;PRE&gt;/usr/hdf/current/registry/bootstrap/bootstrap-storage.sh&lt;/PRE&gt;&lt;P&gt;I updated the following lines with the proxy information, as suggested by Juan, by adding in the values for &lt;/P&gt;&lt;P&gt;-Dhttps.proxyHost=proxy_name&lt;/P&gt;&lt;P&gt;-Dhttps.proxyPort=xxxx&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;function dropTables {
    ${JAVA} -Dbootstrap.dir=$BOOTSTRAP_DIR -Dhttps.proxyHost=&amp;lt;YOUR_PROXY_HOST&amp;gt; -Dhttps.proxyPort=&amp;lt;YOUR_PROXY_PORT&amp;gt;  -cp ${CLASSPATH} ${TABLE_INITIALIZER_MAIN_CLASS} -m ${MYSQL_JAR_URL_PATH} -c ${CONFIG_FILE_PATH} -s ${SCRIPT_ROOT_DIR} --drop
}

function createTables {
    ${JAVA} -Dbootstrap.dir=$BOOTSTRAP_DIR -Dhttps.proxyHost=&amp;lt;YOUR_PROXY_HOST&amp;gt; -Dhttps.proxyPort=&amp;lt;YOUR_PROXY_PORT&amp;gt;  -cp ${CLASSPATH} ${TABLE_INITIALIZER_MAIN_CLASS} -m ${MYSQL_JAR_URL_PATH} -c ${CONFIG_FILE_PATH} -s ${SCRIPT_ROOT_DIR} --create
}

function checkStorageConnection {
    ${JAVA} -Dbootstrap.dir=$BOOTSTRAP_DIR -Dhttps.proxyHost=&amp;lt;YOUR_PROXY_HOST&amp;gt; -Dhttps.proxyPort=&amp;lt;YOUR_PROXY_PORT&amp;gt;  -cp ${CLASSPATH} ${TABLE_INITIALIZER_MAIN_CLASS} -m ${MYSQL_JAR_URL_PATH} -c ${CONFIG_FILE_PATH} -s ${SCRIPT_ROOT_DIR} --check-connection
}
&lt;/PRE&gt;&lt;P&gt;Hope this helps someone in the future&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 22:00:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233685#M64268</guid>
      <dc:creator>gavin_duffy</dc:creator>
      <dc:date>2017-08-08T22:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error starting registry in Ambari (HDF 3.0)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233686#M64269</link>
      <description>&lt;P&gt;This is the bug (AMBARI-21492): &lt;A href="https://issues.apache.org/jira/browse/AMBARI-21492" target="_blank"&gt;https://issues.apache.org/jira/browse/AMBARI-21492&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Another simple workaround is to download the file, stuff it somewhere on a web server and edit the MYSQL_JAR_URL_PATH in this file: /usr/hdf/current/registry/bootstrap/bootstrap-storage.sh&lt;BR /&gt;If you're super lazy, this can work too:&lt;/P&gt;&lt;PRE&gt;yum install httpd -y  # Installs the Apache HTTP Server.
apachectl start  # Starts it.
# You can optionally use the jar brought by 'yum install mysql-connector-java', if it's up to date, to pack it into a format the script expects:
# mkdir /tmp/mysql-connector-java-5.1.40
# cp /usr/share/java/mysql-connector-java.jar /tmp/mysql-connector-java-5.1.40/mysql-connector-java-5.1.40-bin.jar
# cd /tmp
# zip /tmp/mysql-connector-java-5.1.40/ mysql-connector-java-5.1.40.zip
cp &amp;lt;wherever&amp;gt;/mysql-connector-java-5.1.40.zip /var/www/html/  # Based on environment, this one's for RHEL/Centos.
vi /usr/hdf/current/registry/bootstrap/bootstrap-storage.sh
# MYSQL_JAR_URL_PATH=http://yourserver/mysql-connector-java-5.1.40.zip&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Sep 2017 20:45:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233686#M64269</guid>
      <dc:creator>dgdkay</dc:creator>
      <dc:date>2017-09-29T20:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error starting registry in Ambari (HDF 3.0)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233687#M64270</link>
      <description>&lt;P&gt;I was able to resolve the issue by copying the jar "mysql-connector-java-5.1.40-bin.jar" in /usr/share/java and /usr/hdf/current/registry/bootstrap/lib/. Below are the steps I followed: &lt;/P&gt;&lt;P&gt;1. Remove the mysql-connector-java.jar or other version jars from /usr/share/java and /usr/hdf/current/registry/bootstrap/ &lt;/P&gt;&lt;P&gt;2. copy the jar mysql-connector-java-5.1.40-bin.jar in /usr/hdf/current/registry/bootstrap/lib/ and /usr/share/java &lt;/P&gt;&lt;P&gt;3. Create the symlinks:&lt;/P&gt;&lt;P&gt;     ln -s /usr/share/java/ mysql-connector-java-5.1.40-bin.jar /usr/share/mysql-connector-java.jar &lt;/P&gt;&lt;P&gt;4.ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar &lt;/P&gt;&lt;P&gt;5. ambari-server restart &lt;/P&gt;&lt;P&gt;6. Start the registry service from ambari &lt;/P&gt;&lt;P&gt;Thanks,
Sinha&lt;/P&gt;,&lt;P&gt;I was able to resolve the issue by copying the jar "mysql-connector-java-5.1.40-bin.jar" in /usr/share/java and /usr/hdf/current/registry/bootstrap/lib/. Below are the steps I followed:&lt;/P&gt;&lt;P&gt;1. Remove the mysql-connector-java.jar or other version jars from /usr/share/java and /usr/hdf/current/registry/bootstrap/ &lt;/P&gt;&lt;P&gt;2. copy the jar mysql-connector-java-5.1.40-bin.jar in /usr/hdf/current/registry/bootstrap/lib/ and /usr/share/java &lt;/P&gt;&lt;P&gt;3. Crete the symlinks:
  ln -s /usr/share/java/ mysql-connector-java-5.1.40-bin.jar /usr/share/mysql-connector-java.jar &lt;/P&gt;&lt;P&gt;4.ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar &lt;/P&gt;&lt;P&gt;5. ambari-server restart
6. Start the registry service from ambari &lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Sinha&lt;/P&gt;,&lt;P&gt;I was able to resolve the issue by copying the jar "mysql-connector-java-5.1.40-bin.jar" in /usr/hdf/current/registry/bootstrap/lib/ and /usr/share/java location. I created symlink with the mysql jar:&lt;/P&gt;&lt;P&gt;ln -s  /usr/share/java/mysql-connector-java-5.1.40-bin.jar /usr/share/java/mysql-connector-java.jar&lt;/P&gt;&lt;P&gt;ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar&lt;/P&gt;&lt;P&gt;ambari-server restart&lt;/P&gt;&lt;P&gt;Start the registry service&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sinha&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 02:54:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233687#M64270</guid>
      <dc:creator>ibn_hadoop</dc:creator>
      <dc:date>2017-10-13T02:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error starting registry in Ambari (HDF 3.0)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233688#M64271</link>
      <description>&lt;P&gt;If the proxy configuration is not working for you, You can download it manually from &lt;A href="https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip" target="_blank"&gt;https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip&lt;/A&gt; on the machine and change the MYSQL_JAR_URL_PATH variable in /usr/hdf/current/registry/bootstrap/bootstrap-storage.sh  to local path where file is stored using the file:// format i.e MYSQL_JAR_URL_PATH=file:///root/mysql-connector-java-5.1.40.zip&lt;/P&gt;,&lt;P&gt;If the proxy configuration is not working for you, You can download it manually from &lt;A href="https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip" target="_blank"&gt;https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip&lt;/A&gt; on the machine and change the MYSQL_JAR_URL_PATH variable in /usr/hdf/current/registry/bootstrap/bootstrap-storage.sh  to local path where file is stored using the file:// format i.e MYSQL_JAR_URL_PATH=file:///root/mysql-connector-java-5.1.40.zip.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 21:05:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-starting-registry-in-Ambari-HDF-3-0/m-p/233688#M64271</guid>
      <dc:creator>adnan_yaqoob</dc:creator>
      <dc:date>2017-12-13T21:05:26Z</dc:date>
    </item>
  </channel>
</rss>

