Giter VIP home page Giter VIP logo

Comments (4)

oluies avatar oluies commented on August 11, 2024

Tried upgrading all python stuff/packages to no avail:

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.4/services/NIFI/package/scripts/master.py", line 201, in <module>
    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)

from ambari-nifi-service.

oluies avatar oluies commented on August 11, 2024

Environment does not contain any strangeness

>>> print b
{'LANG': 'en_US.UTF-8', 'TERM': 'screen', 'AMBARI_CONF_DIR': '/etc/ambari-server/conf:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'PYTHONPATH': '/usr/lib/python2.6/site-packages:/usr/lib/python2.6/site-packages/ambari_commons:/usr/lib/python2.6/site-packages::/usr/lib/python2.6/site-packages', 'OLDPWD': '/', 'SHLVL': '5', 'PWD': '/var/lib/ambari-agent/tmp', 'PYTHON': '/usr/bin/python2', 'PATH': '/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/ambari-agent', 'AMBARI_PASSPHRASE': 'DEV', '_': '/usr/bin/nohup'}
>>> s1 = b.decode('utf-8')
>>> print s1
{'LANG': 'en_US.UTF-8', 'TERM': 'screen', 'AMBARI_CONF_DIR': '/etc/ambari-server/conf:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'PYTHONPATH': '/usr/lib/python2.6/site-packages:/usr/lib/python2.6/site-packages/ambari_commons:/usr/lib/python2.6/site-packages::/usr/lib/python2.6/site-packages', 'OLDPWD': '/', 'SHLVL': '5', 'PWD': '/var/lib/ambari-agent/tmp', 'PYTHON': '/usr/bin/python2', 'PATH': '/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/ambari-agent', 'AMBARI_PASSPHRASE': 'DEV', '_': '/usr/bin/nohup'}
>>>

from ambari-nifi-service.

abajwa-hw avatar abajwa-hw commented on August 11, 2024

On Ubuntu we needed to make below additions to master.py in the Zeppelin service.

encoding=utf8

reload(sys)
sys.setdefaultencoding

Might be the same issue here on the Nifi service. Can you try and let me know if that fixes the issue?

See this commit for more details

https://github.com/hortonworks-gallery/ambari-zeppelin-service/commits/f86483318e54c5f4136d939d5c48e9e1341cdf0f/package/scripts/master.py

On Mar 22, 2016, at 7:49 AM, ?rjan Lundberg <[email protected]mailto:[email protected]> wrote:

Environment does not contain any strangeness

print b
{'LANG': 'en_US.UTF-8', 'TERM': 'screen', 'AMBARI_CONF_DIR': '/etc/ambari-server/conf:/usr/sbin:/sbin:/usr/lib/ambari-server/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'PYTHONPATH': '/usr/lib/python2.6/site-packages:/usr/lib/python2.6/site-packages/ambari_commons:/usr/lib/python2.6/site-packages::/usr/lib/python2.6/site-packages', 'OLDPWD': '/', 'SHLVL': '5', 'PWD': '/var/lib/ambari-agent/tmp', 'PYTHON': '/usr/bin/python2', 'PATH': '/usr/sbin:/sbin:/usr/lib/ambari-server/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/ambari-agent', 'AMBARI_PASSPHRASE': 'DEV', '': '/usr/bin/nohup'}
s1 = b.decode('utf-8')
print s1
{'LANG': 'en_US.UTF-8', 'TERM': 'screen', 'AMBARI_CONF_DIR': '/etc/ambari-server/conf:/usr/sbin:/sbin:/usr/lib/ambari-server/
:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'PYTHONPATH': '/usr/lib/python2.6/site-packages:/usr/lib/python2.6/site-packages/ambari_commons:/usr/lib/python2.6/site-packages::/usr/lib/python2.6/site-packages', 'OLDPWD': '/', 'SHLVL': '5', 'PWD': '/var/lib/ambari-agent/tmp', 'PYTHON': '/usr/bin/python2', 'PATH': '/usr/sbin:/sbin:/usr/lib/ambari-server/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/ambari-agent', 'AMBARI_PASSPHRASE': 'DEV', '': '/usr/bin/nohup'}

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-199849813

from ambari-nifi-service.

oluies avatar oluies commented on August 11, 2024

Thanks now install and start works

from ambari-nifi-service.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.