๋ฐ์ํ
๐ซ ERROR
- hue์์ hive ์ฌ์ฉํ ๋ ํ๊ธ์ insert ํ๋ ค๋ฉด ์ธ์ฝ๋ฉ ๊ด๋ จ ์๋ฌ๊ฐ ๋ฐ์ํ๋๋ฐ์.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xed in position 80: ordinal not in range(128)
๐ก SOLVED
- hue์์ ์ฟผ๋ฆฌ๋ฅผ ์ฒ๋ฆฌํ ๋ ์คํ๋๋ python ์ธ์ฝ๋ฉ ํ์ ์ด ascii๋ก ์ค์ ๋์ด ์์ด์ ๊ทธ๋ ์ต๋๋ค.
- ํด๋น ํ์ด์ฌ ์คํฌ๋ฆฝํธ ์ฐพ์์ ์์ ํ Hue ์ฌ๊ธฐ๋ ํ๋ฉด ๋ฉ๋๋ค. (ascii > utf-8)
vi /opt/cloudera/parcels/CDH/lib/hue/build/env/lib/python2.7/site.py
------------------------------------------------------------------------------------------
525 def setencoding():
526 """Set the string encoding used by the Unicode implementation. The
527 default is 'ascii', but if you're willing to experiment, you can change this."""
529 encoding = "utf-8" # Default value set by _PyUnicode_Init()
------------------------------------------------------------------------------------------