<?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 shell won't do anything in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hive-shell-won-t-do-anything/m-p/124930#M87674</link>
    <description>&lt;P&gt;I restarted ambari server and it is now working again.&lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2016 22:05:08 GMT</pubDate>
    <dc:creator>michael_klybor</dc:creator>
    <dc:date>2016-05-02T22:05:08Z</dc:date>
    <item>
      <title>hive shell won't do anything</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-shell-won-t-do-anything/m-p/124925#M87669</link>
      <description>&lt;P&gt;I start the hive shell. it doesn't give me an kind of prompt. I can type away, it echoes what I type but no response:&lt;/P&gt;&lt;P&gt;[hive@sandbox root]$ hive
WARNING: Use "yarn jar" to launch YARN applications.&lt;/P&gt;&lt;P&gt;Logging initialized using configuration in file:/etc/hive/2.4.0.0-169/0/hive-log4j.properties
select * from truck_mileage;
go
^C[hive@sandbox root]$
[hive@sandbox root]$ hive
WARNING: Use "yarn jar" to launch YARN applications.&lt;/P&gt;&lt;P&gt;Logging initialized using configuration in file:/etc/hive/2.4.0.0-169/0/hive-log4j.properties
hello there
anyone home?
;
;
;
;;&lt;/P&gt;</description>
      <pubDate>Sun, 01 May 2016 09:53:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-shell-won-t-do-anything/m-p/124925#M87669</guid>
      <dc:creator>michael_klybor</dc:creator>
      <dc:date>2016-05-01T09:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: hive shell won't do anything</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-shell-won-t-do-anything/m-p/124926#M87670</link>
      <description>&lt;P&gt;hive shell tries to get one yarn container. If all your yarn containers are busy, then 'hive' can be in hang state until containers are available. Another issue could be hivemetastore not responding. &lt;/P&gt;&lt;P&gt;please paste /tmp/hive/hive.log which can give some insights. &lt;/P&gt;&lt;P&gt;If cluster is busy, &lt;/P&gt;&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;--hiveconf hive.execution.engine=mr&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; will not wait for getting a container. You can use that and then switch over to tez by setting execution engine again. &lt;/P&gt;</description>
      <pubDate>Sun, 01 May 2016 10:01:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-shell-won-t-do-anything/m-p/124926#M87670</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2016-05-01T10:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: hive shell won't do anything</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-shell-won-t-do-anything/m-p/124927#M87671</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10112/michaelklybor.html" nodeid="10112"&gt;@michael klybor&lt;/A&gt;&lt;P&gt;You can access resource manager UI to see existing jobs running. &lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;yarn application -list &lt;/P&gt;&lt;P&gt;yarn application -kill appid   --&amp;gt; apps dont' need&lt;/P&gt;&lt;P&gt;then try running hive cli&lt;/P&gt;&lt;P&gt;PS: Start using beeline instead of hive cli because of security reasons. &lt;/P&gt;&lt;P&gt;Permanent solution is to enable yarn queues. &lt;A href="https://community.hortonworks.com/articles/10912/yarn-queues-and-cs-view-queue-mapping.html" target="_blank"&gt;https://community.hortonworks.com/articles/10912/yarn-queues-and-cs-view-queue-mapping.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 May 2016 18:27:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-shell-won-t-do-anything/m-p/124927#M87671</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-05-01T18:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: hive shell won't do anything</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-shell-won-t-do-anything/m-p/124928#M87672</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/3907-hivelog.txt"&gt;hivelog.txt&lt;/A&gt;attached is the hive log. just tried this again and same thing happened. just a nuisance, but the upload refuses to accept files with extension of .log. sigh....&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 21:10:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-shell-won-t-do-anything/m-p/124928#M87672</guid>
      <dc:creator>michael_klybor</dc:creator>
      <dc:date>2016-05-02T21:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: hive shell won't do anything</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-shell-won-t-do-anything/m-p/124929#M87673</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; &lt;/P&gt;&lt;P&gt;thanks. I killed all of the yarn applications and tried again.  Both the hive CLI and the ambari hive query editor still hang up.  the initial issue (reported separately) was with the ambari hive query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE TABLE events
STORED AS ORC
AS
SELECT driverid, city, state FROM geolocation;&lt;/P&gt;&lt;P&gt;as per the tutorial.  so perhaps the issue is with creating ORC files? and that is hung and cascading back to any hive activity?&lt;/P&gt;&lt;P&gt;All I am doing is trying to follow the tutorial. very frustrating.&lt;/P&gt;&lt;P&gt;here is yarn application list:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;^C[hive@sandbox hive]$ yarn application -list
16/05/02 14:38:35 INFO impl.TimelineClientImpl: Timeline service address: &lt;A href="http://sandbox.hortonworks.com:8188/ws/v1/timeline/"&gt;http://sandbox.hortonworks.com:8188/ws/v1/timeline/&lt;/A&gt;
16/05/02 14:38:35 INFO client.RMProxy: Connecting to ResourceManager at sandbox.hortonworks.com/10.0.2.15:8050
Total number of applications (application-types: [] and states: [SUBMITTED, ACCEPTED, RUNNING]):1
  Application-Id  Application-Name  Application-Type  User  Queue  State  Final-State  Progress  Tracking-URL
application_1461958087140_0034  HIVE-c01d9d1e-b461-4770-822b-b46a7ceeecf2  TEZ  hive  default  RUNNING  UNDEFINED  0% &lt;A href="http://sandbox.hortonworks.com:44396/ui/"&gt;http://sandbox.hortonworks.com:44396/ui/&lt;/A&gt;
[hive@sandbox hive]$ yarn application -list
16/05/02 14:41:24 INFO impl.TimelineClientImpl: Timeline service address: &lt;A href="http://sandbox.hortonworks.com:8188/ws/v1/timeline/"&gt;http://sandbox.hortonworks.com:8188/ws/v1/timeline/&lt;/A&gt;
16/05/02 14:41:24 INFO client.RMProxy: Connecting to ResourceManager at sandbox.hortonworks.com/10.0.2.15:8050
Total number of applications (application-types: [] and states: [SUBMITTED, ACCEPTED, RUNNING]):2
  Application-Id  Application-Name  Application-Type  User  Queue  State  Final-State  Progress  Tracking-URL
application_1461958087140_0035  HIVE-caf7b780-54c9-436b-9c90-28bd6db769dd  TEZ  hive  default  RUNNING  UNDEFINED  0% &lt;A href="http://sandbox.hortonworks.com:51481/ui/"&gt;http://sandbox.hortonworks.com:51481/ui/&lt;/A&gt;
application_1461958087140_0034  HIVE-c01d9d1e-b461-4770-822b-b46a7ceeecf2  TEZ  hive  default  RUNNING  UNDEFINED  0% &lt;A href="http://sandbox.hortonworks.com:44396/ui/"&gt;http://sandbox.hortonworks.com:44396/ui/&lt;/A&gt;
[hive@sandbox hive]$&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 21:46:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-shell-won-t-do-anything/m-p/124929#M87673</guid>
      <dc:creator>michael_klybor</dc:creator>
      <dc:date>2016-05-02T21:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: hive shell won't do anything</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-shell-won-t-do-anything/m-p/124930#M87674</link>
      <description>&lt;P&gt;I restarted ambari server and it is now working again.&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 22:05:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-shell-won-t-do-anything/m-p/124930#M87674</guid>
      <dc:creator>michael_klybor</dc:creator>
      <dc:date>2016-05-02T22:05:08Z</dc:date>
    </item>
  </channel>
</rss>

