<?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 HIVE metastore in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-starting-HIVE-metastore/m-p/209329#M171283</link>
    <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/users/87334/harryli.html"&gt;@Harry Li&lt;/A&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you share your the output of ,please adopt were necessary the proper user root or use sudo&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# hostname -f &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Set the hostname&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;sudo hostnamectl set-hostname your-new-name &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Now you will need to edit 2 files the &lt;STRONG&gt;/etc/hostname&lt;/STRONG&gt; and &lt;STRONG&gt;/etc/hosts&lt;/STRONG&gt; file and replace the hostname with  your earlier choice above&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;sudo -H gedit /etc/hostname 
sudo -H gedit /etc/hosts &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Without restarting your machine, just run the command below to restart the hostname service to apply changes: &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;sudo systemctl restart systemd-logind.service &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;When editing the &lt;STRONG&gt;/etc/ hosts&lt;/STRONG&gt;, don't tamper with the first line is always going to be for localhost with the loopback IP address.The second line is where you change the hostname&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;127.0.0.1 localhost 
127.0.0.1 your_new_hostname &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;If you want to reference the hostname with the server public IP address and not the loopback, you can add a third line with server public IP and hostname. &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;127.0.0.1 localhost 
127.0.0.1 your_new_hostname 
10.56.100.30 your_new_hostname    # server IP and hostname  &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;That should resolve your problem. Please revert&lt;/EM&gt;&lt;BR /&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 02 Aug 2018 05:53:04 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2018-08-02T05:53:04Z</dc:date>
  </channel>
</rss>

