当前位置:网站首页>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

边栏推荐
- 工作5年,测试用例都设计不好?来看看大厂的用例设计总结
- numpy.unique
- Chapter 19 Tips and Traps: Common Goofs for Novices
- ELK日志采集
- Codeforces CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) A-D Solution
- CF1705D Mark and Lightbulbs
- Chapter 11 Working with Dates and Times
- When solving yolov5 training: "AssertionError: train: No labels in VOCData/dataSet_path/train.cache. Can not train"
- 浅析多服务在分布式系统下多事务通信处理机制方案
- 6132. 使数组中所有元素都等于零-快速排序法
猜你喜欢

Work for 5 years, test case design is bad?To look at the big case design summary

访问控制台中的选定节点
![[LeetCode304周赛] 两道关于基环树的题 6134. 找到离给定两个节点最近的节点,6135. 图中的最长环](/img/63/16de443caf28644d79dc6e6889e5dd.png)
[LeetCode304周赛] 两道关于基环树的题 6134. 找到离给定两个节点最近的节点,6135. 图中的最长环
![[Camp Experience Post] 2022 Cybersecurity Summer Camp](/img/1e/716bafc679dc67d3d54bcc21a3b670.png)
[Camp Experience Post] 2022 Cybersecurity Summer Camp

获取小猪民宿(短租)数据

Dynamic Scene Deblurring with Parameter Selective Sharing and Nested Skip Connections

cdh6打开oozieWeb页面,Oozie web console is disabled.

云原生DevOps环境搭建

C#大型互联网平台管理框架源码:基于ASP.NET MVC+EF6+Bootstrap开发,支持多数据库

中职网络安全竞赛B7比赛部署流程
随机推荐
技术分享 | 接口测试中如何使用Json 来进行数据交互 ?
Convert LocalDateTime to Date type
Getting started with IDEA is enough to read this article
高效工作文档产出归类
递归:方法调用自身
IDEA入门看这一篇就够了
6134. 找到离给定两个节点最近的节点-力扣双百代码
6132. All the elements in the array is equal to zero - quick sort method
What is CICD excuse me
qt-faststart 安装使用
Calculate the midpoint between two points
Check if point is inside rectangle
【参营经历贴】2022网安夏令营
研发团队数字化转型实践
cdh的hue上oozie启动报错,Cannot allocate containers as requested resource is greater than maximum allowed
The monthly salary of the test post is 5-9k, how to increase the salary to 25k?
毕业作业
Chapter 12 End-User Task As Shell Scripts
Flink学习第四天——完成第一个Flink 流批一体案例
DRF generating serialization class code