<?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 Hive Query error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123413#M86157</link>
    <description>&lt;P&gt;create table IF NOT EXISTS tweets_sentiment stored as orc as select
  tweet_id, &lt;/P&gt;&lt;P&gt;  case
    when sum( polarity ) &amp;gt; 0 then 'positive' when sum( polarity ) &amp;lt; 0 then 'negative' else 'neutral' end as sentiment from l3 group by tweet_id;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tihs query gives following error :-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9796-screenshot-3.png" style="width: 1366px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22757i86E168BB672CDEA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9796-screenshot-3.png" alt="9796-screenshot-3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 10:18:59 GMT</pubDate>
    <dc:creator>rjrishabh34</dc:creator>
    <dc:date>2019-08-19T10:18:59Z</dc:date>
    <item>
      <title>Hive Query error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123413#M86157</link>
      <description>&lt;P&gt;create table IF NOT EXISTS tweets_sentiment stored as orc as select
  tweet_id, &lt;/P&gt;&lt;P&gt;  case
    when sum( polarity ) &amp;gt; 0 then 'positive' when sum( polarity ) &amp;lt; 0 then 'negative' else 'neutral' end as sentiment from l3 group by tweet_id;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tihs query gives following error :-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9796-screenshot-3.png" style="width: 1366px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22757i86E168BB672CDEA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9796-screenshot-3.png" alt="9796-screenshot-3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:18:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123413#M86157</guid>
      <dc:creator>rjrishabh34</dc:creator>
      <dc:date>2019-08-19T10:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Query error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123414#M86158</link>
      <description>&lt;P&gt;plz help &lt;A rel="user" href="https://community.cloudera.com/users/10331/mrizvi.html" nodeid="10331"&gt;@Mushtaq Rizvi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 05:48:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123414#M86158</guid>
      <dc:creator>rjrishabh34</dc:creator>
      <dc:date>2016-11-27T05:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Query error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123415#M86159</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14500/rjrishabh34.html" nodeid="14500"&gt;@rishabh jain&lt;/A&gt; , the error shows invalid JSON object. Can you have a look at /tmp/tweets_staging folder in HDFS and check whether the files you are getting are valid JSON files. I am getting these kind of records:&lt;/P&gt;&lt;PRE&gt;{"tweet_id":802654182859632640,"created_unixtime":1480202644444,"created_time":"Sat Nov 26 23:24:04 +0000 2016","lang":"it","displayname":"ivrivs","time_zone":"Pacific Time (US &amp;amp; Canada)","msg":"RT sunshinehems 130 Con lansia non si scherza ?? inutile che vi fate tutte ansiose solo per stare al centro dellattenzione Lansia ?????"}
{"tweet_id":802654205374828544,"created_unixtime":1480202649812,"created_time":"Sat Nov 26 23:24:09 +0000 2016","lang":"it","displayname":"concettaconsoli","time_zone":"Greenland","msg":"RT DiegoFusaro Populista ?? nella neolingua chiunque difenda interessi   che non siamo quelli dell??lite dominante finanziaria"}&lt;/PRE&gt;&lt;P&gt;and so on. Further, when you follow the tutorial and create different tables and views, try to do select * after every table you create, so that you are aware of how data is transforming.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 08:13:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123415#M86159</guid>
      <dc:creator>mrizvi</dc:creator>
      <dc:date>2016-11-27T08:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Query error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123416#M86160</link>
      <description>&lt;P&gt;ok i am trying to delete all docs from solr to restart fresh downloads but can not find a working solution for that. &lt;A rel="user" href="https://community.cloudera.com/users/10331/mrizvi.html" nodeid="10331"&gt;@Mushtaq Rizvi&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 08:17:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123416#M86160</guid>
      <dc:creator>rjrishabh34</dc:creator>
      <dc:date>2016-11-27T08:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Query error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123417#M86161</link>
      <description>&lt;P&gt;you don't have to delete anything in Solr. You are accessing data from HDFS, not Solr. Delete your HDFS folder /tmp/tweets_staging and then run Nifi workflow.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 08:19:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123417#M86161</guid>
      <dc:creator>mrizvi</dc:creator>
      <dc:date>2016-11-27T08:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Query error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123418#M86162</link>
      <description>&lt;P&gt;I deleted all files from tweets_staging but solr still showing num docs the same number as before. &lt;A rel="user" href="https://community.cloudera.com/users/10331/mrizvi.html" nodeid="10331"&gt;@Mushtaq Rizvi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 08:25:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123418#M86162</guid>
      <dc:creator>rjrishabh34</dc:creator>
      <dc:date>2016-11-27T08:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Query error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123419#M86163</link>
      <description>&lt;P&gt;Solr is not dependent on HDFS directory /tmp/tweets-staging, its getting data from Nifi and storing it in /etc/solr/data_dir, not HDFS directory. &lt;/P&gt;&lt;P&gt;You are getting confused between the usage of all the tools here.&lt;/P&gt;&lt;P&gt;Nifi is fetching data from Twitter API, sending it to Solr to view the streamed data in real-time to gather information. Nifi is also storing the data in HDFS in JSON format, we are creating tables in Hive referencing this new HDFS data to analyze the social sentiment. Lastly, we are using Zeppelin to visualize our dataset&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 08:33:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123419#M86163</guid>
      <dc:creator>mrizvi</dc:creator>
      <dc:date>2016-11-27T08:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Query error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123420#M86164</link>
      <description>&lt;P&gt;Use of solr is not mandatory here right? as its only for search and perform queries on tweets in json format? &lt;A rel="user" href="https://community.cloudera.com/users/10331/mrizvi.html" nodeid="10331"&gt;@Mushtaq Rizvi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 08:54:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123420#M86164</guid>
      <dc:creator>rjrishabh34</dc:creator>
      <dc:date>2016-11-27T08:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Query error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123421#M86165</link>
      <description>&lt;P&gt;yes, you are right.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 08:55:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123421#M86165</guid>
      <dc:creator>mrizvi</dc:creator>
      <dc:date>2016-11-27T08:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Query error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123422#M86166</link>
      <description>&lt;P&gt;When i reload ambari web page then i have to run this query always before running any query -&lt;/P&gt;&lt;P&gt;ADDJAR/usr/hdp/2.5.0.0-1245/hive2/lib/json-serde-1.3.8-SNAPSHOT-jar-with-dependencies.jar;&lt;/P&gt;&lt;P&gt;Or i get the following error for query &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10331/mrizvi.html" nodeid="10331" target="_blank"&gt;@Mushtaq Rizvi&lt;/A&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9798-screenshot-5.png" style="width: 1366px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22756i2C2FE5A4C90745E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9798-screenshot-5.png" alt="9798-screenshot-5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;select * from tweets_clean;&lt;/P&gt;&lt;P&gt;what is the cause for that ?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:18:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123422#M86166</guid>
      <dc:creator>rjrishabh34</dc:creator>
      <dc:date>2019-08-19T10:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Query error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123423#M86167</link>
      <description>&lt;P&gt;Navigate to Resource Manager UI on 127.0.0.1:8088. Click on Running applications and then kill them. You will see a button to Kill the application. After this, run the same query again.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 09:08:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123423#M86167</guid>
      <dc:creator>mrizvi</dc:creator>
      <dc:date>2016-11-27T09:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Query error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123424#M86168</link>
      <description>&lt;P&gt;still showing the same error. &lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 09:20:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123424#M86168</guid>
      <dc:creator>rjrishabh34</dc:creator>
      <dc:date>2016-11-27T09:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Query error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123425#M86169</link>
      <description>&lt;P&gt;problem is when i reload the page i have to run  &lt;A rel="user" href="https://community.cloudera.com/users/10331/mrizvi.html" nodeid="10331"&gt;@Mushtaq Rizvi&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ADDJAR/usr/hdp/2.5.0.0-1245/hive2/lib/json-serde-1.3.8-SNAPSHOT-jar-with-dependencies.jar;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;or i gets that same error&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Nov 2016 09:23:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123425#M86169</guid>
      <dc:creator>rjrishabh34</dc:creator>
      <dc:date>2016-11-27T09:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Query error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123426#M86170</link>
      <description>&lt;P&gt;Well Thank you very much Sir for Your Kind Assistance. &lt;A rel="user" href="https://community.cloudera.com/users/10331/mrizvi.html" nodeid="10331"&gt;@Mushtaq Rizvi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 09:42:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-error/m-p/123426#M86170</guid>
      <dc:creator>rjrishabh34</dc:creator>
      <dc:date>2016-11-27T09:42:10Z</dc:date>
    </item>
  </channel>
</rss>

