<?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 SAS Studio to hadoop UTF-8 Error in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-to-hadoop-UTF-8-Error/m-p/274609#M579</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the libname to assign a schema on hadoop. I already tested writing data via SAS Studio to hadoop and it works fine except for one table called "table1" with a string column called 'content'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myhive 	hadoop subprotocol=hive2 
				port=10000 
				host= "myhost" 
				schema= "default"
				; 

data myhive.test;
	merge myhive.table1 (in=a)
		   myhive.table2 (in=b)
		;
	by id;
	if a*b;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the following error log:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; ERROR: Data from column 'content' in row 1435 of the result set is not in Hadoop UTF-8 format. The length of this data is 86 bytes, 
        and the first 13 characters are 'home/Finanzen'. The data should be corrected to UTF-8 format.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tested which session encoding my SAS Studio uses via:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=encoding;    
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and it says:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;     SAS (r) Proprietary Software Release 9.4  TS1M3
 
  ENCODING=LATIN1   Specifies the default character-set encoding for the SAS session.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Maybe this triggers the error above. I found, however, no way to change my session encoding.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2016 11:18:06 GMT</pubDate>
    <dc:creator>JanVanHeyden</dc:creator>
    <dc:date>2016-06-02T11:18:06Z</dc:date>
    <item>
      <title>SAS Studio to hadoop UTF-8 Error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-to-hadoop-UTF-8-Error/m-p/274609#M579</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the libname to assign a schema on hadoop. I already tested writing data via SAS Studio to hadoop and it works fine except for one table called "table1" with a string column called 'content'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myhive 	hadoop subprotocol=hive2 
				port=10000 
				host= "myhost" 
				schema= "default"
				; 

data myhive.test;
	merge myhive.table1 (in=a)
		   myhive.table2 (in=b)
		;
	by id;
	if a*b;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the following error log:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; ERROR: Data from column 'content' in row 1435 of the result set is not in Hadoop UTF-8 format. The length of this data is 86 bytes, 
        and the first 13 characters are 'home/Finanzen'. The data should be corrected to UTF-8 format.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tested which session encoding my SAS Studio uses via:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=encoding;    
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and it says:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;     SAS (r) Proprietary Software Release 9.4  TS1M3
 
  ENCODING=LATIN1   Specifies the default character-set encoding for the SAS session.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Maybe this triggers the error above. I found, however, no way to change my session encoding.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 11:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-to-hadoop-UTF-8-Error/m-p/274609#M579</guid>
      <dc:creator>JanVanHeyden</dc:creator>
      <dc:date>2016-06-02T11:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio to hadoop UTF-8 Error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-to-hadoop-UTF-8-Error/m-p/274616#M581</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested some more. Even if I try to write on my work libary I get an Error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.test;
	set myhive.table1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here I get a little bit more Information for the Error:&lt;/P&gt;&lt;PRE&gt; HADOOP_70: Prepared: on connection 6
 SELECT * FROM `table1`
  
 59         run;
 
 INFO: Data file WORK.TEST.DATA is in a format that is native to another host, or the file encoding does not match the 
 session encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might reduce 
 performance.
 ERROR: Data from column 'content' in row 297906 of the result set is not in Hadoop UTF-8 format. The length of this data is 94 
        bytes, and the first 12 characters are 'inteligentne'. The data should be corrected to UTF-8 format.
 NOTE: The DATA step has been abnormally terminated.
 NOTE: The SAS System stopped processing this step because of errors.&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Jun 2016 11:40:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-to-hadoop-UTF-8-Error/m-p/274616#M581</guid>
      <dc:creator>JanVanHeyden</dc:creator>
      <dc:date>2016-06-02T11:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio to hadoop UTF-8 Error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-to-hadoop-UTF-8-Error/m-p/287223#M861</link>
      <description>&lt;P&gt;Did you get solution for the same, or anybody can help with this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is really critical, and I assume many people facing the similar sort of issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any one from SAS company Please contribute to this.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:53:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-to-hadoop-UTF-8-Error/m-p/287223#M861</guid>
      <dc:creator>ApoorvM</dc:creator>
      <dc:date>2016-07-26T14:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio to hadoop UTF-8 Error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-to-hadoop-UTF-8-Error/m-p/287415#M864</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I finally found a solution that works for me. Basically the problem seems to be that within hadoop everything is formated in utf-8 while most SAS Studio Sessions run in latin1 (or something else country specific). While I found no way of changing the SAS Studio Session there is a command that suppresses these kind of errors and still writes the data from hadoop to temporary SAS Files:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to my example above the change to the code would be to add behind the hive table this command &lt;STRONG&gt;(transcode_fail=silent)&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data work.test;
	set myhive.table1 (transcode_fail=silent);
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 06:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-to-hadoop-UTF-8-Error/m-p/287415#M864</guid>
      <dc:creator>JanVanHeyden</dc:creator>
      <dc:date>2016-07-27T06:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio to hadoop UTF-8 Error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-to-hadoop-UTF-8-Error/m-p/287726#M869</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/86533" target="_self"&gt;JanVanHeyden&lt;/A&gt;&amp;nbsp;!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;This is really helpful, I tried the same and it works for me as well!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks again!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;ApoorvM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:39:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-to-hadoop-UTF-8-Error/m-p/287726#M869</guid>
      <dc:creator>ApoorvM</dc:creator>
      <dc:date>2016-07-28T07:39:31Z</dc:date>
    </item>
  </channel>
</rss>

