Support Questions
Find answers, ask questions, and share your expertise

Zeppelin strange start problem

Zeppelin strange start problem

Explorer

Hello,

After the first restart of zeppelin from a new installation of a hdp 2.6.1 cluster. Zeppelin can't start (seem that there is an encoding problem).

I drop this zeppelin installation and I install zeppelin in another node. I have exactely the same problem when I start zeppelin server by ambari service.

Bellow the trace of the error :

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py", line 448, in <module>
    Master().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 329, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py", line 215, in start
    self.create_zeppelin_dir(params)
  File "/var/lib/ambari-agent/cache/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py", line 73, in create_zeppelin_dir
    recursive_chmod=True
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 555, in action_create_on_execute
    self.action_delayed("create")
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 552, in action_delayed
    self.get_hdfs_resource_executor().action_delayed(action_name, self)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 289, in action_delayed
    self._set_owner(self.target_status)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 452, in _set_owner
    self.util.run_command(path, 'SETOWNER', method='PUT', owner=owner, group=group, assertable_result=False)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 186, in run_command
    _, out, err = get_user_call_output(cmd, user=self.run_user, logoutput=self.logoutput, quiet=False)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/get_user_call_output.py", line 50, in get_user_call_output
    code, _ = shell.call(shell.as_user(command_string, user), quiet=quiet, **call_kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 337, in as_user
    return "{0} su {1} -l -s /bin/bash -c {2}".format(_get_sudo_binary(), user, quote_bash_args(export_env + command))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 155: ordinal not in range(128)

Any idea to resolve this error ?

Thank you in advance.

3 REPLIES 3

Re: Zeppelin strange start problem

Expert Contributor

@A. Karray

Isn't by any chance an 'é' in your user name?

Re: Zeppelin strange start problem

Contributor
@A. Karray

The unicode string for \xe9 is an accented e - é

Your error "UnicodeEncodeError:'ascii' codec can't encode character u'\xe9' in position 155: ordinal not in range(128)" indicates you have special char in your username.

Re: Zeppelin strange start problem

Explorer

Thank for your help. I never use accent character in user name.

I find the problem, it was a file path using an accent char.