<?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 queries in Ambari stay in 'running'-status in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108464#M16021</link>
    <description>&lt;P&gt;It might be due to missing home directories in HDFS. Depending on how you run the queries, you can try running the below:&lt;/P&gt;&lt;PRE&gt;#needed to run queries from Hive view in Ambari
sudo -u hdfs hdfs dfs -mkdir /user/admin
sudo -u hdfs hdfs dfs -chown admin /user/admin

#needed to run hive from CLI, when logged in as root
sudo -u hdfs hdfs dfs -mkdir /user/root
sudo -u hdfs hdfs dfs -chown root /user/root

#needed to run beeline from CLI
sudo -u hdfs hdfs dfs -mkdir /user/anonymous
sudo -u hdfs hdfs dfs -chown anonymous /user/anonymous&lt;/PRE&gt;</description>
    <pubDate>Sat, 23 Jan 2016 07:59:56 GMT</pubDate>
    <dc:creator>abajwa</dc:creator>
    <dc:date>2016-01-23T07:59:56Z</dc:date>
    <item>
      <title>Hive queries in Ambari stay in 'running'-status</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108462#M16019</link>
      <description>&lt;P&gt;Hi, I've installed a local HDP 2.3.2 Sandbox using VirtualBox. When I execute any query in Hive via Ambari (currently following Hello World tutorial) it most of the time keeps 'running' without results. Yarn job scheduler does not show any running jobs. I already saw a similar issue on this forum where it was solved by an Ambari restart, but in my case restarting does not solve it. What could be the problem?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 23:52:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108462#M16019</guid>
      <dc:creator>michel_meulpold</dc:creator>
      <dc:date>2016-01-22T23:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hive queries in Ambari stay in 'running'-status</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108463#M16020</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2334/michelmeulpolder.html" nodeid="2334"&gt;@Michel Meulpolder&lt;/A&gt;&lt;P&gt; VM configuration matters a lot. Hope you have enough memory and resources. &lt;/P&gt;&lt;P&gt;Try running the same query using hive cli&lt;/P&gt;&lt;P&gt;login to vm using ssh as root&lt;/P&gt;&lt;P&gt;su - hdfs&lt;/P&gt;&lt;P&gt;hive&lt;/P&gt;&lt;P&gt;run query from hive cli and see if its working or not. &lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 03:53:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108463#M16020</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-01-23T03:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hive queries in Ambari stay in 'running'-status</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108464#M16021</link>
      <description>&lt;P&gt;It might be due to missing home directories in HDFS. Depending on how you run the queries, you can try running the below:&lt;/P&gt;&lt;PRE&gt;#needed to run queries from Hive view in Ambari
sudo -u hdfs hdfs dfs -mkdir /user/admin
sudo -u hdfs hdfs dfs -chown admin /user/admin

#needed to run hive from CLI, when logged in as root
sudo -u hdfs hdfs dfs -mkdir /user/root
sudo -u hdfs hdfs dfs -chown root /user/root

#needed to run beeline from CLI
sudo -u hdfs hdfs dfs -mkdir /user/anonymous
sudo -u hdfs hdfs dfs -chown anonymous /user/anonymous&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Jan 2016 07:59:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108464#M16021</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2016-01-23T07:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hive queries in Ambari stay in 'running'-status</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108465#M16022</link>
      <description>&lt;P&gt;Thanks Neeraj. I did some more testing with my VM resources and also created another HDP Sandbox on Azure (A5 2 cores 14GB). It seems that the problem is browser-dependent since with all VM instances the problem randomly occurs while using Internet Explorer but not using Firefox. Anyhow, at least for now I can proceed, thanks again.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 16:14:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108465#M16022</guid>
      <dc:creator>michel_meulpold</dc:creator>
      <dc:date>2016-01-23T16:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hive queries in Ambari stay in 'running'-status</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108466#M16023</link>
      <description>&lt;P&gt;Thanks Ali. I checked the directories and the above did not exist, but this does not seem to be the problem. When I use another browser it seems the queries run succesfully (see comment below).&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 16:16:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108466#M16023</guid>
      <dc:creator>michel_meulpold</dc:creator>
      <dc:date>2016-01-23T16:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hive queries in Ambari stay in 'running'-status</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108467#M16024</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2334/michelmeulpolder.html" nodeid="2334"&gt;@Michel Meulpolder&lt;/A&gt;&lt;P&gt;I have accepted this as best answer because you were able to proceed by changing the browser. Hope it's ok&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 19:52:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108467#M16024</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-01-23T19:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hive queries in Ambari stay in 'running'-status</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108468#M16025</link>
      <description>&lt;P&gt;Thanks Neeraj&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 20:06:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-queries-in-Ambari-stay-in-running-status/m-p/108468#M16025</guid>
      <dc:creator>michel_meulpold</dc:creator>
      <dc:date>2016-01-23T20:06:20Z</dc:date>
    </item>
  </channel>
</rss>

