<?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 Cannot read data using  Spark - Hive Warehouse Connector in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Cannot-read-data-using-Spark-Hive-Warehouse-Connector/m-p/237989#M199800</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;i am using spark-shell ( spark-shell --master yarn --jars /usr/hdp/current/hive-warehouse-connector/hive-warehouse-connector_&lt;STRONG&gt;2.11-1.0.0.3.1.2.0-4.jar&lt;/STRONG&gt; --conf spark.security.credentials.hiveserver2.enabled=false)&lt;/P&gt;&lt;P&gt;to read hive tables using spark, i am able to execute commands like create table, create database, show tables, show databases, but i am not able to read data from tables,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;my code is as below&lt;/P&gt;&lt;TABLE style="width:100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width:100%"&gt;import com.hortonworks.hwc.HiveWarehouseSession&lt;BR /&gt;val hive = HiveWarehouseSession.session(spark).build()&lt;BR /&gt;hive.createDatabase("spark_llap01",false)&lt;BR /&gt;hive.setDatabase("spark_llap01")&lt;BR /&gt;hive.createTable("hwx_table").column("value", "string").create()&lt;BR /&gt;hive.executeUpdate("insert into hwx_table values('1')")&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;hive.executeQuery("select * from hwx_table").show&lt;/STRONG&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;i get this error, whenever i try to fetch data&lt;/P&gt;&lt;TABLE style="width:100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width:100%"&gt;java.lang.AbstractMethodError: Method &lt;STRONG&gt;com/hortonworks/spark/sql/hive/llap/HiveWarehouseDataSourceReader.createBatchDataReaderFactories()Ljava/util/List; is abstract&lt;/STRONG&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;i used beeline to check whether the data has been written, and i found the database exists along with the table, also when i queried the table i found the data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2019 16:13:16 GMT</pubDate>
    <dc:creator>tarekabouzeid91</dc:creator>
    <dc:date>2019-04-08T16:13:16Z</dc:date>
    <item>
      <title>Cannot read data using  Spark - Hive Warehouse Connector</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-read-data-using-Spark-Hive-Warehouse-Connector/m-p/237989#M199800</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;i am using spark-shell ( spark-shell --master yarn --jars /usr/hdp/current/hive-warehouse-connector/hive-warehouse-connector_&lt;STRONG&gt;2.11-1.0.0.3.1.2.0-4.jar&lt;/STRONG&gt; --conf spark.security.credentials.hiveserver2.enabled=false)&lt;/P&gt;&lt;P&gt;to read hive tables using spark, i am able to execute commands like create table, create database, show tables, show databases, but i am not able to read data from tables,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;my code is as below&lt;/P&gt;&lt;TABLE style="width:100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width:100%"&gt;import com.hortonworks.hwc.HiveWarehouseSession&lt;BR /&gt;val hive = HiveWarehouseSession.session(spark).build()&lt;BR /&gt;hive.createDatabase("spark_llap01",false)&lt;BR /&gt;hive.setDatabase("spark_llap01")&lt;BR /&gt;hive.createTable("hwx_table").column("value", "string").create()&lt;BR /&gt;hive.executeUpdate("insert into hwx_table values('1')")&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;hive.executeQuery("select * from hwx_table").show&lt;/STRONG&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;i get this error, whenever i try to fetch data&lt;/P&gt;&lt;TABLE style="width:100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width:100%"&gt;java.lang.AbstractMethodError: Method &lt;STRONG&gt;com/hortonworks/spark/sql/hive/llap/HiveWarehouseDataSourceReader.createBatchDataReaderFactories()Ljava/util/List; is abstract&lt;/STRONG&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;i used beeline to check whether the data has been written, and i found the database exists along with the table, also when i queried the table i found the data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 16:13:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-read-data-using-Spark-Hive-Warehouse-Connector/m-p/237989#M199800</guid>
      <dc:creator>tarekabouzeid91</dc:creator>
      <dc:date>2019-04-08T16:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read data using  Spark - Hive Warehouse Connector</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-read-data-using-Spark-Hive-Warehouse-Connector/m-p/237990#M199801</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;had to use another version of the connector hive-warehouse-connector-assembly-&lt;STRONG&gt;1.0.0.3.0.1.0-187&lt;/STRONG&gt;.jar&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 20:00:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-read-data-using-Spark-Hive-Warehouse-Connector/m-p/237990#M199801</guid>
      <dc:creator>tarekabouzeid91</dc:creator>
      <dc:date>2019-04-08T20:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read data using  Spark - Hive Warehouse Connector</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-read-data-using-Spark-Hive-Warehouse-Connector/m-p/360074#M238276</link>
      <description>&lt;P&gt;where can i get that jar ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 07:59:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-read-data-using-Spark-Hive-Warehouse-Connector/m-p/360074#M238276</guid>
      <dc:creator>myzard</dc:creator>
      <dc:date>2022-12-23T07:59:45Z</dc:date>
    </item>
  </channel>
</rss>

