<?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 HdfsBridge::recordReaderFillBuffer - Unexpected error encountered filling record reader buffer: BlockMissingException: Could not obtain block in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HdfsBridge-recordReaderFillBuffer-Unexpected-error/m-p/287913#M213319</link>
    <description>&lt;P&gt;I have downloaded and configured HDP_2.6.5_virtualbox_180626, I am able to connect&amp;nbsp; and&amp;nbsp; upload files to HDFS and can access the files data using Hive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To access the data from HDFS files using SQL Server (PolyBase), i have configured the External table and File Table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CREATE DATABASE SCOPED CREDENTIAL Hadoop_Cred WITH IDENTITY = 'raj_ops', Secret = 'raj_ops';&lt;BR /&gt;GO&lt;BR /&gt;CREATE EXTERNAL DATA SOURCE MyHadoopCluster WITH (&lt;BR /&gt;TYPE = HADOOP,&lt;BR /&gt;LOCATION ='hdfs://192.168.0.107:8020',&lt;BR /&gt;CREDENTIAL = Hadoop_Cred&lt;BR /&gt;);&lt;/P&gt;
&lt;P&gt;DROP EXTERNAL FILE FORMAT Hadoop_file_format&lt;BR /&gt;CREATE EXTERNAL FILE FORMAT Hadoop_file_format WITH&lt;BR /&gt;(&lt;BR /&gt;FORMAT_TYPE = DELIMITEDTEXT,&lt;BR /&gt;FORMAT_OPTIONS&lt;BR /&gt;(&lt;BR /&gt;FIELD_TERMINATOR =',',&lt;BR /&gt;USE_TYPE_DEFAULT = TRUE&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CREATE EXTERNAL TABLE [dbo].HDFS_File&lt;BR /&gt;(&lt;BR /&gt;street varchar(100),&lt;BR /&gt;city varchar(100),&lt;BR /&gt;zip varchar(100),&lt;BR /&gt;[state] varchar(100),&lt;BR /&gt;beds int,&lt;BR /&gt;baths int,&lt;BR /&gt;sq__ft varchar(100),&lt;BR /&gt;[type] varchar(100),&lt;BR /&gt;sale_date varchar(100),&lt;BR /&gt;price varchar(100),&lt;BR /&gt;latitude varchar(100),&lt;BR /&gt;longitude varchar(100)&lt;BR /&gt;)&lt;BR /&gt;WITH (&lt;BR /&gt;LOCATION = N'/user/raj_ops/TP/',&lt;BR /&gt;DATA_SOURCE =MyHadoopCluster,&lt;BR /&gt;FILE_FORMAT =Hadoop_file_format,&lt;BR /&gt;REJECT_TYPE = VALUE,&lt;BR /&gt;REJECT_VALUE = 0&lt;BR /&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On accessing the table , i am getting the following error&lt;/P&gt;
&lt;P&gt;Msg 7320, Level 16, State 110, Line 33&lt;/P&gt;
&lt;P&gt;Cannot execute the query "Remote Query" against OLE DB provider "SQLNCLI11" for linked server "(null)".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;HdfsBridge::recordReaderFillBuffer - Unexpected error encountered filling record reader buffer: BlockMissingException: Could not obtain block: BP-243674277-172.17.0.2-1529333510191:blk_1073743046_2226 file=/user/raj_ops/TP/Sacramentorealestatetransactions.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 19 Jan 2020 13:42:51 GMT</pubDate>
    <dc:creator>sufian</dc:creator>
    <dc:date>2020-01-19T13:42:51Z</dc:date>
  </channel>
</rss>

