<?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: Spark dataframe returning no data from hive in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-dataframe-returning-no-data-from-hive/m-p/179490#M75889</link>
    <description>&lt;P&gt;May be silly, but do you have any data at all in ngmss.company? Are you able to see it via Hive?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2018 00:48:38 GMT</pubDate>
    <dc:creator>RahulSoni</dc:creator>
    <dc:date>2018-03-16T00:48:38Z</dc:date>
    <item>
      <title>Spark dataframe returning no data from hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-dataframe-returning-no-data-from-hive/m-p/179489#M75888</link>
      <description>&lt;P&gt;We have several tables ingested into hive via nifi. The tables show up and are query-able from hive directly. Though when attempting to query some of the tables in spark only the column names are returned.&lt;/P&gt;&lt;P&gt;Not Working bits:&lt;/P&gt;&lt;PRE&gt;CREATE TABLE IF NOT EXISTS ngmss.company(  OPERATING_COMPANY_NUMBER VARCHAR(4),  OPERATING_COMPANY_NAME VARCHAR(50),  LAST_MODIFIED_USERID VARCHAR(8),  LAST_MODIFIED_DATE TIMESTAMP,  TASK_FOR_ORD_COMP_PROC VARCHAR(8),  TBS_OWNER_IND CHAR(1),  PARTY_ID INT,  PARTY_ROLE_SEQ INT)CLUSTERED BY (OPERATING_COMPANY_NUMBER) INTO 2 BUCKETS STORED AS ORCTBLPROPERTIES ("transactional"="true");&lt;/PRE&gt;&lt;PRE&gt;spark.sql("select * from ngmss.company").show()&lt;/PRE&gt;&lt;PRE&gt;+------------------------+----------------------+--------------------+------------------+----------------------+-------------+--------+--------------+|operating_company_number|operating_company_name|last_modified_userid|last_modified_date|task_for_ord_comp_proc|tbs_owner_ind|party_id|party_role_seq|+------------------------+----------------------+--------------------+------------------+----------------------+-------------+--------+--------------++------------------------+----------------------+--------------------+------------------+----------------------+-------------+--------+--------------+&lt;/PRE&gt;&lt;P&gt;Working bits:&lt;/P&gt;&lt;PRE&gt;CREATE TABLE IF NOT EXISTS ngmss.circuit_position(  CIRCUIT_DESIGN_ID INT,  CIRCUIT_POSITION_NUMBER INT,  REMARKS VARCHAR(60),  CIRCUIT_NODE_STATUS CHAR(1),  LAST_MODIFIED_USERID VARCHAR(8),  LAST_MODIFIED_DATE TIMESTAMP,  RATE_CODE VARCHAR(10),  CIRCUIT_DESIGN_ID_3 INT,  DOCUMENT_NUMBER INT,  PENDING_DT TIMESTAMP,  CIRCUIT_DESIGN_ID_PREV INT,  STS_CHAN_NBR INT,  VTG_CHAN_NBR INT,  VT_CHAN_NBR INT,  EQUIV_CHAN INT,  ADDITIONAL_ASSIGNMENT_SEQ_NBR INT,  NS_COMP_ID INT,  NS_ID INT,  PROTECTED_PATH_TRI CHAR(1))CLUSTERED BY (CIRCUIT_DESIGN_ID) INTO 2 BUCKETS STORED AS ORCTBLPROPERTIES ("transactional"="true");&lt;/PRE&gt;&lt;PRE&gt;spark.sql("select * from ngmss.circuit_position").show()&lt;/PRE&gt;&lt;PRE&gt;Cant really share the return but it's there&lt;/PRE&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Mar 2018 19:18:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-dataframe-returning-no-data-from-hive/m-p/179489#M75888</guid>
      <dc:creator>moddfox</dc:creator>
      <dc:date>2018-03-15T19:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Spark dataframe returning no data from hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-dataframe-returning-no-data-from-hive/m-p/179490#M75889</link>
      <description>&lt;P&gt;May be silly, but do you have any data at all in ngmss.company? Are you able to see it via Hive?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 00:48:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-dataframe-returning-no-data-from-hive/m-p/179490#M75889</guid>
      <dc:creator>RahulSoni</dc:creator>
      <dc:date>2018-03-16T00:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Spark dataframe returning no data from hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-dataframe-returning-no-data-from-hive/m-p/179491#M75890</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/70406/roycelwhetstine.html" nodeid="70406"&gt;@Royce Whetstine&lt;/A&gt;&lt;P&gt;Spark currently fully doesn't support Hive's transactional tables. Here are the reference jira's : SPARK-16996  &amp;amp; SPARK-15348&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 12:01:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-dataframe-returning-no-data-from-hive/m-p/179491#M75890</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2018-03-16T12:01:36Z</dc:date>
    </item>
  </channel>
</rss>

