当前位置:网站首页>CDH6 Hue to open a "ASCII" codec can 't encode characters
CDH6 Hue to open a "ASCII" codec can 't encode characters
2022-08-01 23:37:00 【I'm going to use code to confess to the girl I like】
'ascii' codec can't encode characters in position 8-15: ordinal not in range(128)

He said ascii (US encoding), can't compile a certain encoding, he doesn't know the encoding
So, let's change it to utf-8 encoding
cd /opt/cloudera/parcels/CDH/lib/hue/build/env/lib/python2.7/site-packages/
Add a configuration file
vi sitecustomize.py
The content is as follows
#encoding=utf8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
Restart hue

No error reported

边栏推荐
猜你喜欢

【参营经历贴】2022网安夏令营

Is TCP reliable?Why?

数据机构---第五章树与二叉树---二叉树的概念---应用题

云原生DevOps环境搭建

D - Linear Probing- 并查集

Quartus uses tcl files to quickly configure pins

GIF制作-灰常简单的一键动图工具

ICLR 2022 Best Paper: Partial Label Learning Based on Contrastive Disambiguation

使用Jenkins做持续集成,这个知识点必须要掌握

chrome copies the base64 data of an image
随机推荐
Convert LocalDateTime to Date type
cdh的hue上oozie启动报错,Cannot allocate containers as requested resource is greater than maximum allowed
Dynamic Scene Deblurring with Parameter Selective Sharing and Nested Skip Connections
一道golang中关于iota的面试题
cdh6打开oozieWeb页面,Oozie web console is disabled.
获取小猪民宿(短租)数据
Access the selected node in the console
npm npm
sys_kill system call
部门项目源码分享
使用Jenkins做持续集成,这个知识点必须要掌握
qt-faststart installation and use
PostgreSQL Basics--Common Commands
6133. 分组的最大数量
CDH6的Hue打开出现‘ascii‘ codec can‘t encode characters
GIF制作-灰常简单的一键动图工具
IDEA入门看这一篇就够了
The third chapter of the imitation cattle network project: develop the core functions of the community (detailed steps and ideas)
分享10套开源免费的高品质源码,免费源码下载平台
测试岗月薪5-9k,如何实现涨薪到25k?