<?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: Install : UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 191: ordinal not in range(128) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-UnicodeDecodeError-ascii-codec-can-t-decode-byte/m-p/139343#M23496</link>
    <description>&lt;P&gt;Fixed with this &lt;A href="https://github.com/abajwa-hw/ambari-nifi-service/pull/6/files"&gt;code&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;+# encoding=utf8
 +
  import sys, os, pwd, grp, signal, time, glob  import sys, os, pwd, grp, signal, time, glob
  from resource_management import *  from resource_management import *
  from subprocess import call  from subprocess import call

 +reload(sys)
 +sys.setdefaultencoding('utf8')&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Mar 2016 13:01:41 GMT</pubDate>
    <dc:creator>orjan_lundberg</dc:creator>
    <dc:date>2016-03-24T13:01:41Z</dc:date>
    <item>
      <title>Install : UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 191: ordinal not in range(128)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-UnicodeDecodeError-ascii-codec-can-t-decode-byte/m-p/139342#M23495</link>
      <description>&lt;P&gt;
	Env: Ubuntu 14.04.1 HDP 2.4&lt;/P&gt;&lt;P&gt;	Trying to install nifi with &lt;A href="https://github.com/abajwa-hw/ambari-nifi-service" target="_blank"&gt;https://github.com/abajwa-hw/ambari-nifi-service&lt;/A&gt; but I am ending up with &lt;/P&gt;&lt;PRE&gt;
	Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.4/services/NIFI/package/scripts/master.py", line 201, in &amp;lt;module&amp;gt;
    Master().execute(
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.4/services/NIFI/package/scripts/master.py", line 109, in install
    self.configure(env, True)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.4/services/NIFI/package/scripts/master.py", line 145, in configure
    Execute(format("cd {params.conf_dir}; mv flow.xml.gz flow_$(date +%d-%m-%Y).xml.gz ;"), user=params.nifi_user, ignore_failures=True)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 163, in run
    Logger.info("Skipping failure of %s due to ignore_failures. Failure reason: %s" % (resource, str(ex)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 191: ordinal not in range(128)&lt;/PRE&gt;&lt;P&gt;More info &lt;A href="https://github.com/abajwa-hw/ambari-nifi-service/issues/5"&gt;here&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 22:30:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-UnicodeDecodeError-ascii-codec-can-t-decode-byte/m-p/139342#M23495</guid>
      <dc:creator>orjan_lundberg</dc:creator>
      <dc:date>2016-03-22T22:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Install : UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 191: ordinal not in range(128)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-UnicodeDecodeError-ascii-codec-can-t-decode-byte/m-p/139343#M23496</link>
      <description>&lt;P&gt;Fixed with this &lt;A href="https://github.com/abajwa-hw/ambari-nifi-service/pull/6/files"&gt;code&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;+# encoding=utf8
 +
  import sys, os, pwd, grp, signal, time, glob  import sys, os, pwd, grp, signal, time, glob
  from resource_management import *  from resource_management import *
  from subprocess import call  from subprocess import call

 +reload(sys)
 +sys.setdefaultencoding('utf8')&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Mar 2016 13:01:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-UnicodeDecodeError-ascii-codec-can-t-decode-byte/m-p/139343#M23496</guid>
      <dc:creator>orjan_lundberg</dc:creator>
      <dc:date>2016-03-24T13:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Install : UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 191: ordinal not in range(128)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-UnicodeDecodeError-ascii-codec-can-t-decode-byte/m-p/139344#M23497</link>
      <description>&lt;P&gt;Python's default encoding is ASCII which throws UnicodeDecodeError when trying to decode a stream/array of bytes to Unicode. Setting the default encoding to UTF-8 will fix the conversion from bytes to UTF-8 encoded string.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 02:57:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-UnicodeDecodeError-ascii-codec-can-t-decode-byte/m-p/139344#M23497</guid>
      <dc:creator>nsomasundaram</dc:creator>
      <dc:date>2016-04-19T02:57:39Z</dc:date>
    </item>
  </channel>
</rss>

