<?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: Deleting hive service on CDP Private Base and no clues for username and password in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Deleting-hive-service-on-CDP-Private-Base-and-no-clues-for/m-p/387615#M246354</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108587"&gt;@shofialau&lt;/a&gt;&amp;nbsp;First of all, you could always create a new database and user for Hive, and all other services.&lt;/P&gt;&lt;P&gt;Refer to step 7 of&amp;nbsp;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/hive-metastore/topics/hive-mysql_.html" target="_blank"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/hive-metastore/topics/hive-mysql_.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you want to reuse the existing DB and user, you should be able to reset the user password in mysql.&lt;/P&gt;&lt;P&gt;Connect to mysql as root user, and run the command as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;UPDATE mysql.user SET authentication_string = PASSWORD('new_password') WHERE User = 'hive' AND Host = 'metastorehost';&lt;/LI-CODE&gt;&lt;P&gt;In case you are not sure, or you do not have root privileges, this can be reset as well:&lt;/P&gt;&lt;P&gt;ref: &lt;A href="https://dev.mysql.com/doc/refman/8.0/en/resetting-permissions.html" target="_blank"&gt;https://dev.mysql.com/doc/refman/8.0/en/resetting-permissions.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 05 May 2024 20:27:47 GMT</pubDate>
    <dc:creator>smruti</dc:creator>
    <dc:date>2024-05-05T20:27:47Z</dc:date>
    <item>
      <title>Deleting hive service on CDP Private Base and no clues for username and password</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Deleting-hive-service-on-CDP-Private-Base-and-no-clues-for/m-p/387532#M246338</link>
      <description>&lt;P&gt;I was deleted hive services with some tools (livy, hue, kudu, oozie, hive on tez) because I forgot to keep All of the password. Now I want to re-add services that I deleted. but I have no clue for this. I don't know username and password.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shofialau_0-1714708652442.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40521i3768FA9BBD46DB14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shofialau_0-1714708652442.png" alt="shofialau_0-1714708652442.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:31:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Deleting-hive-service-on-CDP-Private-Base-and-no-clues-for/m-p/387532#M246338</guid>
      <dc:creator>shofialau</dc:creator>
      <dc:date>2026-04-21T06:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting hive service on CDP Private Base and no clues for username and password</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Deleting-hive-service-on-CDP-Private-Base-and-no-clues-for/m-p/387615#M246354</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108587"&gt;@shofialau&lt;/a&gt;&amp;nbsp;First of all, you could always create a new database and user for Hive, and all other services.&lt;/P&gt;&lt;P&gt;Refer to step 7 of&amp;nbsp;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/hive-metastore/topics/hive-mysql_.html" target="_blank"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/hive-metastore/topics/hive-mysql_.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you want to reuse the existing DB and user, you should be able to reset the user password in mysql.&lt;/P&gt;&lt;P&gt;Connect to mysql as root user, and run the command as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;UPDATE mysql.user SET authentication_string = PASSWORD('new_password') WHERE User = 'hive' AND Host = 'metastorehost';&lt;/LI-CODE&gt;&lt;P&gt;In case you are not sure, or you do not have root privileges, this can be reset as well:&lt;/P&gt;&lt;P&gt;ref: &lt;A href="https://dev.mysql.com/doc/refman/8.0/en/resetting-permissions.html" target="_blank"&gt;https://dev.mysql.com/doc/refman/8.0/en/resetting-permissions.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2024 20:27:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Deleting-hive-service-on-CDP-Private-Base-and-no-clues-for/m-p/387615#M246354</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2024-05-05T20:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting hive service on CDP Private Base and no clues for username and password</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Deleting-hive-service-on-CDP-Private-Base-and-no-clues-for/m-p/387647#M246373</link>
      <description>&lt;P&gt;Hi thanks for answering.&lt;BR /&gt;But i still get stuck.&lt;BR /&gt;How do I install JDBC driver? should I install from Cloudera Documentation?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shofialau_0-1715056335387.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40570i5A96539EB972F3E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shofialau_0-1715056335387.png" alt="shofialau_0-1715056335387.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 04:32:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Deleting-hive-service-on-CDP-Private-Base-and-no-clues-for/m-p/387647#M246373</guid>
      <dc:creator>shofialau</dc:creator>
      <dc:date>2024-05-07T04:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting hive service on CDP Private Base and no clues for username and password</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Deleting-hive-service-on-CDP-Private-Base-and-no-clues-for/m-p/387664#M246380</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108587"&gt;@shofialau&lt;/a&gt;&amp;nbsp;Let's not get confused with that JDBC driver mentioned in the doc. We can ignore that for now.&lt;/P&gt;&lt;P&gt;We have two options relating to the metastore DB situation.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Recover the password of the hive metastore DB user.&lt;/LI&gt;&lt;LI&gt;Create a new database and user.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I had shared the command to reset the DB user password(Option - 1) , or if you plan to create a new database(option -2), try the following commands:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mysql&amp;gt; CREATE DATABASE hmsdb;
mysql&amp;gt; CREATE USER 'hiveuser'@'metastorehost' IDENTIFIED BY 'mypassword';
mysql&amp;gt; REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'hiveuser'@'metastorehost';
mysql&amp;gt; GRANT ALL PRIVILEGES ON hmsdb.* TO 'hiveuser'@'metastorehost';
mysql&amp;gt; FLUSH PRIVILEGES;
mysql&amp;gt; quit;&lt;/LI-CODE&gt;&lt;P&gt;Replace the "metastorehost" with the Hive metastore node hostname.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 14:55:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Deleting-hive-service-on-CDP-Private-Base-and-no-clues-for/m-p/387664#M246380</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2024-05-07T14:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting hive service on CDP Private Base and no clues for username and password</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Deleting-hive-service-on-CDP-Private-Base-and-no-clues-for/m-p/387674#M246386</link>
      <description>&lt;P&gt;I already create this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mysql&amp;gt; create database hmsdb;
Query OK, 1 row affected (0.01 sec)

mysql&amp;gt; CREATE USER 'swg_mysql'@'cdp-utility.swgemilang.com.local' IDENTIFIED BY 'xxxxx';
Query OK, 0 rows affected (0.01 sec)

mysql&amp;gt; REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'swg_mysql'@'cdp-utility.swgemilang.com.local';
Query OK, 0 rows affected (0.00 sec)

mysql&amp;gt; GRANT ALL PRIVILEGES ON hmsdb.* TO 'swg_mysql'@'cdp-utility.swgemilang.com.local';
Query OK, 0 rows affected (0.01 sec)

mysql&amp;gt; FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)&lt;/LI-CODE&gt;&lt;P&gt;but it still like this:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shofialau_0-1715149252844.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40576iCDFE465054536448/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shofialau_0-1715149252844.png" alt="shofialau_0-1715149252844.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 06:23:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Deleting-hive-service-on-CDP-Private-Base-and-no-clues-for/m-p/387674#M246386</guid>
      <dc:creator>shofialau</dc:creator>
      <dc:date>2024-05-08T06:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting hive service on CDP Private Base and no clues for username and password</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Deleting-hive-service-on-CDP-Private-Base-and-no-clues-for/m-p/387688#M246391</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108587"&gt;@shofialau&lt;/a&gt;&amp;nbsp;great! Now we can download mysql jdbc connector and place in the HMS node under the location /usr/share/java&lt;/P&gt;&lt;P&gt;Detailed information can be found here -&amp;nbsp;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-upgrade/latest/upgrade-hdp/topics/amb-install-mysql-jdbc.html#pnavId2" target="_blank"&gt;https://docs.cloudera.com/cdp-private-cloud-upgrade/latest/upgrade-hdp/topics/amb-install-mysql-jdbc.html#pnavId2&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 13:03:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Deleting-hive-service-on-CDP-Private-Base-and-no-clues-for/m-p/387688#M246391</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2024-05-08T13:03:33Z</dc:date>
    </item>
  </channel>
</rss>

