<?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>topic Re: Error in Reading from Hadoop Database in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Reading-from-Hadoop-Database/m-p/310609#M8896</link>
    <description>&lt;P&gt;You can't add it to the code, you assign at SAS invocation:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/67929/HTML/default/viewer.htm#p1e05jrt9fhl7tn17oormmfzayfx.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostunx/67929/HTML/default/viewer.htm#p1e05jrt9fhl7tn17oormmfzayfx.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2016 10:01:53 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-11-10T10:01:53Z</dc:date>
    <item>
      <title>Error in Reading from Hadoop Database</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Reading-from-Hadoop-Database/m-p/310543#M8895</link>
      <description>&lt;P&gt;On SAS 9.3, I'm trying to read in a dataset from a Hadoop database into my work library. The code I'm using is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to hadoop(subprotocol=hive2 server='&amp;amp;servername' port=10000 schema=&amp;amp;schema_name);&lt;BR /&gt;create table work.my_data as&lt;BR /&gt;select * from connection to hadoop (&lt;BR /&gt;select *&lt;BR /&gt;from &amp;amp;table_name&lt;BR /&gt;where valuation_date = '2008-01-01'&lt;BR /&gt;);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error (see below) indicating that some of the values are not in Hadoop UTF-8 format and that therefore, the data cannot be read in as a SAS data set:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: Data from column 'make' in row 707 of the result set was not presented in Hadoop UTF-8 format. The length of this data is 21 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;bytes, and the first 7 characters are 'RENAULT'. Adding -JREOPTIONS (-Dfile.encoding=UTF-8) to the SAS invocation may &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;circumvent the issue. Otherwise the data should be corrected to UTF-8 format.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I tried searching for how to add -JREOPTIONS to the code, but was unable to find anything useful. Can anyone advise on the error and how to correct it?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thank you.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Dhrumil Patel&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 23:58:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Reading-from-Hadoop-Database/m-p/310543#M8895</guid>
      <dc:creator>dhrumil_patel</dc:creator>
      <dc:date>2016-11-09T23:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Reading from Hadoop Database</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Reading-from-Hadoop-Database/m-p/310609#M8896</link>
      <description>&lt;P&gt;You can't add it to the code, you assign at SAS invocation:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/67929/HTML/default/viewer.htm#p1e05jrt9fhl7tn17oormmfzayfx.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostunx/67929/HTML/default/viewer.htm#p1e05jrt9fhl7tn17oormmfzayfx.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 10:01:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Reading-from-Hadoop-Database/m-p/310609#M8896</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-11-10T10:01:53Z</dc:date>
    </item>
  </channel>
</rss>

