<?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: Mysql repo pointing to internet by default when we install HIVE service in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-repo-pointing-to-internet-by-default-when-we-install/m-p/176075#M72815</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;@Sindhu&lt;/A&gt; Please suggest&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2017 01:44:47 GMT</pubDate>
    <dc:creator>sagarshimpi</dc:creator>
    <dc:date>2017-12-22T01:44:47Z</dc:date>
    <item>
      <title>Mysql repo pointing to internet by default when we install HIVE service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-repo-pointing-to-internet-by-default-when-we-install/m-p/176074#M72814</link>
      <description>&lt;PRE&gt;Environment: OS-Centos 7, Ambari 2.5.2, HDP 2.5.3&lt;/PRE&gt;&lt;P&gt;Tried installing HIVE service on single node cluster with "NO" internet access but it failed on installing below package -&lt;/P&gt;&lt;PRE&gt;Installing package mysql-community-release &lt;/PRE&gt;&lt;P&gt;I see that while installing HIVE service in cluster using default mysql database, then Ambari Operation fails on Installing MYSQL_SERVER package- &lt;/P&gt;&lt;PRE&gt;2017-12-21 16:26:48,630 - Version 2.5.3.0-37 was provided as effective cluster version.  Using package version 2_5_3_0_37
2017-12-21 16:26:48,631 - Package['mysql-community-release'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2017-12-21 16:26:48,714 - Installing package mysql-community-release ('/usr/bin/yum -d 0 -e 0 -y install mysql-community-release')
2017-12-21 16:26:53,719 - Version 2.5.3.0-37 was provided as effective cluster version.  Using package version 2_5_3_0_37
2017-12-21 16:26:53,720 - Package['mysql-community-server'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2017-12-21 16:26:53,734 - Installing package mysql-community-server ('/usr/bin/yum -d 0 -e 0 -y install mysql-community-server')
&lt;/PRE&gt;&lt;P&gt;Findings: While installing MYSQL_SERVER it expects "mysql-community-release-el7-5.noarch.rpm" to be installed which basically comes from HDP_UTILS as shown below -&lt;/P&gt;&lt;PRE&gt;HDP-UTILS-1.1.0.21/mysql/mysql-community-release-el7-5.noarch.rpm&lt;/PRE&gt;&lt;P&gt;When Ambari operation installs the "mysql-community-release-el7-5.noarch.rpm", it creates 2 repo files under /etc/yum.repos.d/ path -&lt;/P&gt;&lt;PRE&gt; ls -lrt /etc/yum.repos.d/*
-rw-r--r--. 1 root root 1060 Jan 29  2014 mysql-community-source.repo
-rw-r--r--. 1 root root 1209 Jan 29  2014 mysql-community.repo
&lt;/PRE&gt;&lt;P&gt;Both of above repos has base_url pointing to internet.&lt;/P&gt;&lt;P&gt;And hence the environment which has no internet access. the HIVE installation fails.&lt;/P&gt;&lt;P&gt;Do you this this is expected behavior ? Please suggest.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 01:42:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-repo-pointing-to-internet-by-default-when-we-install/m-p/176074#M72814</guid>
      <dc:creator>sagarshimpi</dc:creator>
      <dc:date>2017-12-22T01:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql repo pointing to internet by default when we install HIVE service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-repo-pointing-to-internet-by-default-when-we-install/m-p/176075#M72815</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;@Sindhu&lt;/A&gt; Please suggest&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 01:44:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-repo-pointing-to-internet-by-default-when-we-install/m-p/176075#M72815</guid>
      <dc:creator>sagarshimpi</dc:creator>
      <dc:date>2017-12-22T01:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql repo pointing to internet by default when we install HIVE service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-repo-pointing-to-internet-by-default-when-we-install/m-p/176076#M72816</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2259/shimpisagar.html" nodeid="2259"&gt;@Sagar Shimpi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;BR /&gt;  MySQL package is not provided as part of Hortonworks Binaries. Even though we provide the "mysql-community*.repo" repo files as a reference.&lt;BR /&gt;&lt;BR /&gt;  If the internet access is not available on the host then we will need to install this package manually using offline MySQL package RPM download/install.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 07:18:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-repo-pointing-to-internet-by-default-when-we-install/m-p/176076#M72816</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-12-22T07:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql repo pointing to internet by default when we install HIVE service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-repo-pointing-to-internet-by-default-when-we-install/m-p/176077#M72817</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;P&gt;**MySQL package is not provided as part of Hortonworks Binaries ---&amp;gt; I agree.&lt;/P&gt;&lt;P&gt;I tried installing mysql first -&lt;/P&gt;&lt;PRE&gt;#rpm -qa |grep mysql
mysql-community-libs-5.6.38-2.el7.x86_64
mysql-connector-java-5.1.37-1.noarch
mysql-community-server-5.6.38-2.el7.x86_64
mysql-community-common-5.6.38-2.el7.x86_64
mysql-community-client-5.6.38-2.el7.x86_64&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Now when I try to install HIVE server [on MYSQL_SERVER step] by default installs "mysql-community-release-el7-5.noarch.rpm" as part of the installation script, due to which mysql-community*.repo are created. And irrespective of local or internet environment it installs the RPM and my installation is stuck.&lt;/P&gt;&lt;P&gt;I think its hardcoded in "&lt;A href="http://192.168.56.111:8080/#"&gt;MySQL Server Install&lt;/A&gt;" script to install the rpm irrespective of mysql is installed or not.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 17:48:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-repo-pointing-to-internet-by-default-when-we-install/m-p/176077#M72817</guid>
      <dc:creator>sagarshimpi</dc:creator>
      <dc:date>2017-12-22T17:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql repo pointing to internet by default when we install HIVE service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-repo-pointing-to-internet-by-default-when-we-install/m-p/176078#M72818</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;RHEL/CentOS 7 - MySql community server with RPM installation runs into multiple issues. Here are full instructions on how you could install &lt;STRONG&gt;manually&lt;/STRONG&gt; using Mysql RPM Bundle(https://dev.mysql.com/downloads/) when you do not have internet and using local Repository. &lt;/P&gt;&lt;P&gt;If you try to use "yum install mysql-community-{client,common,libs}-* mysql-5.*", you will run into errors. So install each rpm in the order below.&lt;/P&gt;&lt;P&gt;If your issue is resolved Accept the answer for the benefit of others. Else post any issue encountered as well. Unfortunately, MySQL website does not have full instructions :). Thanks!&lt;/P&gt;&lt;PRE&gt;[root@ mysql]# rpm -ivh mysql-community-common-5.7.21-1.el7.x86_64.rpm
warning: mysql-community-common-5.7.21-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql-community-common-5.7.21-1.e################################# [100%]
[root@ mysql]# rpm -ivh mysql-community-libs-5.7.21-1.el7.x86_64.rpm
warning: mysql-community-libs-5.7.21-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql-community-libs-5.7.21-1.el7################################# [100%]
[root@cpsh20-03 mysql]# rpm -ivh mysql-community-client-5.7.21-1.el7.x86_64.rpm
warning: mysql-community-client-5.7.21-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql-community-client-5.7.21-1.e################################# [100%]
[root@ mysql]# rpm -ivh mysql-community-server-5.7.21-1.el7.x86_64.rpm
warning: mysql-community-server-5.7.21-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
	libaio.so.1()(64bit) is needed by mysql-community-server-5.7.21-1.el7.x86_64
	libaio.so.1(LIBAIO_0.1)(64bit) is needed by mysql-community-server-5.7.21-1.el7.x86_64
	libaio.so.1(LIBAIO_0.4)(64bit) is needed by mysql-community-server-5.7.21-1.el7.x86_64
[root@ mysql]# wget &lt;A href="http://mirror.centos.org/centos/6/os/x86_64/Packages/libaio-0.3.107-10.el6.x86_64.rpm" target="_blank"&gt;http://mirror.centos.org/centos/6/os/x86_64/Packages/libaio-0.3.107-10.el6.x86_64.rpm&lt;/A&gt;
--2018-03-01 05:34:21--  &lt;A href="http://mirror.centos.org/centos/6/os/x86_64/Packages/libaio-0.3.107-10.el6.x86_64.rpm" target="_blank"&gt;http://mirror.centos.org/centos/6/os/x86_64/Packages/libaio-0.3.107-10.el6.x86_64.rpm&lt;/A&gt;
Resolving mirror.centos.org (mirror.centos.org)... 66.29.48.168, 2607:f2d8:1:e::10
Connecting to mirror.centos.org (mirror.centos.org)|66.29.48.168|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21708 (21K) [application/x-rpm]
Saving to: ‘libaio-0.3.107-10.el6.x86_64.rpm’


100%[==================================================================================================================&amp;gt;] 21,708      --.-K/s   in 0.07s


2018-03-01 05:34:21 (303 KB/s) - ‘libaio-0.3.107-10.el6.x86_64.rpm’ saved [21708/21708]


[root@ mysql]# rpm -ivh libaio-0.3.107-10.el6.x86_64.rpm
warning: libaio-0.3.107-10.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:libaio-0.3.107-10.el6            ################################# [100%]
[root@ mysql]# rpm -Uvh mysql-community-server-5.7.21-1.el7.x86_64.rpm
warning: mysql-community-server-5.7.21-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql-community-server-5.7.21-1.e################################# [100%]
[root@ mysql]# systemctl start mysqld.service
[root@ mysql]# mysql -u root -p
Enter password:
&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Mar 2018 14:03:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-repo-pointing-to-internet-by-default-when-we-install/m-p/176078#M72818</guid>
      <dc:creator>bmasna</dc:creator>
      <dc:date>2018-03-01T14:03:26Z</dc:date>
    </item>
  </channel>
</rss>

