You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2015/05/15 16:02:59 UTC

[jira] [Commented] (SLIDER-876) slider destroy instance fail UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 0

    [ https://issues.apache.org/jira/browse/SLIDER-876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14545540#comment-14545540 ] 

Steve Loughran commented on SLIDER-876:
---------------------------------------

This is interesting, looks like >1 problem is arising. 

1. the unicode message looks related to [this|http://stackoverflow.com/questions/24475393/unicodedecodeerror-ascii-codec-cant-decode-byte-0xc3-in-position-23-ordinal]; it implies that something isn't working with the slider.py script on your system.

can you do an {{echo $LANG}} to tell us what language your system thinks it is?

2. The last Log4J report was zookeeper-related; it says it was trying to reconnect but failing. I wonder if something is up with ZK.

If you try this again and it hangs, can you do a {{kill -QUIT}} against the slider process (which {{jps -v}} will help you find), so we can get a stack trace of where the client is hanging.

3. Finally, if you look at [our exit codes doc|http://slider.incubator.apache.org/docs/exitcodes.html] you can see our list of errors. #73 is "application in use". Have a look at the YARN Resource manager web UI —is it still listed as running?


> slider destroy instance fail UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 0
> --------------------------------------------------------------------------------------------------
>
>                 Key: SLIDER-876
>                 URL: https://issues.apache.org/jira/browse/SLIDER-876
>             Project: Slider
>          Issue Type: Bug
>          Components: process
>    Affects Versions: Slider 0.61, Slider 0.70
>         Environment: ubuntu 14.04, hadoop 2.6.0, python 2.7,  slider 0.6.1, zookeeper 3.4.6
>            Reporter: JP Bordenave
>            Priority: Critical
>              Labels: patch
>
> Hello,
> i install 0.61.0 slider
> after install application MEMCACHED for test slider under hadoop 2.6.0
> on hdfs
> i can create instance  cl1 on hdfs
> i can start
> i can stop
> but when i destroy 
> ./bin/slider destroy cl1
> i get exception python on utf8 (i have 2.7) and i must break destroy because it is hanging for ever. check log below
> after this fail, the cl1 instance is removed from cluster, if try to launch again, i get exit code  73 application in use on start/stop/destroy . i dont see any process actif.
> i test also with the version 0.70.1 slider, i get same error. i saw  pyhton 2.6
> seem required by slider, but i use about 10 component in my ecosystem under my cluster all are working. hadoop 2.6.0 seem support python 2.7.
> Thanks for information and solution if possible, i consider slider interessing.
> for application deployment with hdfs
> i dont see any jira about this issue
> log below
> hduser@stargate:/usr/local/slider$ ./bin/slider destroy cl1
> 2015-05-15 01:33:08,218 [main] INFO  client.RMProxy - Connecting to ResourceManager at stargate/192.168.0.11:8032
> 2015-05-15 01:33:08,603 [main] INFO  zk.BlockingZKWatcher - waiting for ZK event
> 2015-05-15 01:33:08,607 [main-SendThread(stargate:2180)] WARN  zookeeper.ClientCnxn - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
> Exception in thread Thread-2:
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
>     self.run()
>   File "/usr/lib/python2.7/threading.py", line 763, in run
>     self.__target(*self.__args, **self.__kwargs)
>   File "/usr/local/slider-0.61.0-incubating/bin/slider.py", line 168, in print_output
>     (line, done) = read(src, line)
>   File "/usr/local/slider-0.61.0-incubating/bin/slider.py", line 146, in read
>     o = c.decode('utf-8')
>   File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
>     return codecs.utf_8_decode(input, errors, True)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 0: unexpected end of data



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)