SMALL
> 에러 내용
File "/usr/lib/python2.6/site-packages/resource_management/core/logger.py", line 101, in filter_text
text = text.replace(unprotected_string, protected_string)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xea in position 117: ordinal not in range(128)
> Python Default Encoding 수정
[root@peaceful ~]# vi /usr/lib/python2.6/site-packages/site.py
def __boot():
import sys, imp, os, os.path
sys.setdefaultencoding("utf-8")
PYTHONPATH = os.environ.get('PYTHONPATH')
if PYTHONPATH is None or (sys.platform=='win32' and not PYTHONPATH):
PYTHONPATH = []
else:
PYTHONPATH = PYTHONPATH.split(os.pathsep)
def __boot():
import sys, imp, os, os.path
sys.setdefaultencoding("utf-8")
PYTHONPATH = os.environ.get('PYTHONPATH')
if PYTHONPATH is None or (sys.platform=='win32' and not PYTHONPATH):
PYTHONPATH = []
else:
PYTHONPATH = PYTHONPATH.split(os.pathsep)
LIST
'빅데이터(bigData)' 카테고리의 다른 글
HDFS - Hive 실행시 System Time 오류 (0) | 2018.09.20 |
---|