<?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: Hive View Not Populating Database Explorer in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95604#M8901</link>
    <description>&lt;P&gt;Could you share some log and configurations? I'd be interested in the log that is produced when you open that view or press the refresh button of the database explorer&lt;/P&gt;</description>
    <pubDate>Fri, 16 Oct 2015 21:28:49 GMT</pubDate>
    <dc:creator>jstraub</dc:creator>
    <dc:date>2015-10-16T21:28:49Z</dc:date>
    <item>
      <title>Hive View Not Populating Database Explorer</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95602#M8899</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="252-2015-10-16-09-29-17.png" style="width: 1240px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24042i66129F3764BC16AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="252-2015-10-16-09-29-17.png" alt="252-2015-10-16-09-29-17.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've downloaded the latest sandbox and I'm running through a tutorial. It seems that the Hive view in Ambari can execute commands, but the Database Explorer will not show any of the tables that are present. &lt;/P&gt;&lt;P&gt;However I can still execute statements and receive the results. I just can't see the list of tables. It's not throwing any errors up on the screen so I'm not sure what's wrong.&lt;/P&gt;&lt;P&gt;Is there any way to fix this?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:57:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95602#M8899</guid>
      <dc:creator>zblanco</dc:creator>
      <dc:date>2019-08-19T12:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Not Populating Database Explorer</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95603#M8900</link>
      <description>&lt;P&gt;@&lt;A href="http://community.hortonworks.com/users/416/zblanco.html"&gt;zblanco@hortonworks.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please launch mysql cli and check for databases ? Just want to make sure that you have privilege to see show databases; &lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 20:45:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95603#M8900</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-10-16T20:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Not Populating Database Explorer</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95604#M8901</link>
      <description>&lt;P&gt;Could you share some log and configurations? I'd be interested in the log that is produced when you open that view or press the refresh button of the database explorer&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 21:28:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95604#M8901</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2015-10-16T21:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Not Populating Database Explorer</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95605#M8902</link>
      <description>&lt;P&gt;The tables that you are expecting, were they created from the Hive View? I ran into issues with the tables getting refreshed. Can you kill session and launch new?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 23:43:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95605#M8902</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2015-10-16T23:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Not Populating Database Explorer</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95606#M8903</link>
      <description>&lt;P&gt;It showed all of the databases when I ran the mysql command&lt;/P&gt;&lt;P&gt;It could possibly be an issue with user permissions - and the 'admin' user that the view is using does not have access to the hive databases or tables.&lt;/P&gt;&lt;P&gt;I found this out by ssh'ing into the sandbox and I tried immediately running hive&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# hive &lt;/PRE&gt;&lt;P&gt;gave me the error&lt;/P&gt;&lt;PRE&gt;org.apache.hadoop.security.AccessControlException: Permission denied: user=root, access=WRITE, inode="/user/root":hdfs:hdfs:drwxr-xr-x&lt;/PRE&gt;&lt;P&gt;However if I did a "su hdfs" or "su hive", it would allow me to run hive and see the tables. &lt;/P&gt;&lt;P&gt;Where I'm stumped is why I could run &lt;/P&gt;&lt;PRE&gt;select * from table_name;&lt;/PRE&gt;&lt;P&gt;and still have all the results returned.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 23:44:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95606#M8903</guid>
      <dc:creator>zblanco</dc:creator>
      <dc:date>2015-10-16T23:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Not Populating Database Explorer</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95607#M8904</link>
      <description>&lt;P&gt;I think it's an issue with user permissions, but I don't know why I can still run commands like &lt;/P&gt;&lt;PRE&gt;select * from table_name;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Oct 2015 23:45:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95607#M8904</guid>
      <dc:creator>zblanco</dc:creator>
      <dc:date>2015-10-16T23:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Not Populating Database Explorer</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95608#M8905</link>
      <description>&lt;P&gt;Could table_name be an external table with location that is readable by admin?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 23:55:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95608#M8905</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2015-10-16T23:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Not Populating Database Explorer</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95609#M8906</link>
      <description>&lt;P&gt;I suppose so? I was really just using it as a place holder. See screenshot in original question. That "trucks_stage" table, I was able to read and load from.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 23:58:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95609#M8906</guid>
      <dc:creator>zblanco</dc:creator>
      <dc:date>2015-10-16T23:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Not Populating Database Explorer</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95610#M8907</link>
      <description>&lt;P&gt;Have you followed the instructions from &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.0.0/bk_ambari_views_guide/content/_configuring_your_cluster_for_hive_view.html"&gt;Ambari documentation for configuring Hive view&lt;/A&gt;. It states there:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Ambari views use the doAs option for commands. This option enables the Ambari process user to impersonate the Ambari logged-in user. To avoid receiving permissions errors for job submissions and file save operations, you must create HDFS users for all Ambari users that use the views.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The HDFS permission error that you are showing above:&lt;/P&gt;&lt;PRE&gt;org.apache.hadoop.security.AccessControlException: Permission denied: user=root, access=WRITE, inode="/user/root":hdfs:hdfs:drwxr-xr-x&lt;/PRE&gt;&lt;P&gt;It clearly shows that the /user/root which is the default user home of root user on HDFS is not owned by root, that's a problem. Can you make sure that /user/root is created with ownership of root user. Also if the authorization mode in Hive is StorageBased then /apps/hive/warehouse should be writable by root. This is usually accomplished by having the executing user in the same group as the one that has write permissions on /apps/hive/warehouse.&lt;/P&gt;&lt;P&gt;I would also guess that in your current setup any query that requires a job to be run will fail. Simple metadata queries would succeed.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2015 01:46:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95610#M8907</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2015-10-17T01:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Not Populating Database Explorer</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95611#M8908</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/416/zblanco.html" nodeid="416"&gt;@zblanco&lt;/A&gt; are you still having issues with this? Can you accept best answer or provide your own solution?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 03:44:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95611#M8908</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T03:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Not Populating Database Explorer</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95612#M8909</link>
      <description>&lt;P&gt;I ended up restarting the Sandbox and my problem was eventually fixed.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 22:37:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95612#M8909</guid>
      <dc:creator>zblanco</dc:creator>
      <dc:date>2016-02-03T22:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Not Populating Database Explorer</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95613#M8910</link>
      <description>&lt;P&gt;Anyone has idea of this issue. Having the same issue. Below is what i have tried so far:&lt;/P&gt;&lt;P&gt;a.) Rebooted the machine&lt;/P&gt;&lt;P&gt;b.) I can see all the databases HDFS fole browser /apps/hive/warehouse&lt;/P&gt;&lt;P&gt;c.) Can list all databases using HIVE console&lt;/P&gt;&lt;P&gt;d.) Can also list tables using Hive console&lt;/P&gt;&lt;P&gt;e.) The only weird thing I notices is that it takes a very long time to get to hive prompt..&lt;/P&gt;&lt;PRE&gt;[hdfs@hdp-m ~]$ hive
WARNING: Use "yarn jar" to launch YARN applications.


Logging initialized using configuration in file:/etc/hive/2.3.4.0-3485/0/hive-log4j.properties
hive&amp;gt; show databases;
OK
arvindtest
dbforall
default
guestdatabase
kemr_fst
kemrfst
punj
punjtest
Time taken: 1.923 seconds, Fetched: 8 row(s)
hive&amp;gt;


&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Feb 2016 12:25:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Not-Populating-Database-Explorer/m-p/95613#M8910</guid>
      <dc:creator>prakashpunj</dc:creator>
      <dc:date>2016-02-29T12:25:48Z</dc:date>
    </item>
  </channel>
</rss>

