当前位置:网站首页>CDH6的Hue打开出现‘ascii‘ codec can‘t encode characters
CDH6的Hue打开出现‘ascii‘ codec can‘t encode characters
2022-08-01 23:26:00 【我要用代码向我喜欢的女孩表白】
'ascii' codec can't encode characters in position 8-15: ordinal not in range(128)

他说ascii(美国的编码),不能编译某个 ,他不认识的编码
所以说,我们改成utf-8编码就行
cd /opt/cloudera/parcels/CDH/lib/hue/build/env/lib/python2.7/site-packages/
添加一个配置文件
vi sitecustomize.py
内容如下
#encoding=utf8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
重启hue

不报错了

边栏推荐
- [LeetCode304周赛] 两道关于基环树的题 6134. 找到离给定两个节点最近的节点,6135. 图中的最长环
- JAX-based activation function, softmax function and cross entropy function
- 怎样做才能让这条SQL变成一条危险的SQL?
- 基于JAX的激活函数、softmax函数和交叉熵函数
- 6132. All the elements in the array is equal to zero - quick sort method
- From 0 to 1: Design and R&D Notes of Graphic Voting Mini Program
- TCP 可靠吗?为什么?
- Check if point is inside rectangle
- Building a cloud-native DevOps environment
- Codeforces CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) A-D 题解
猜你喜欢

从0到100:招生报名小程序开发笔记
![[Camp Experience Post] 2022 Cybersecurity Summer Camp](/img/1e/716bafc679dc67d3d54bcc21a3b670.png)
[Camp Experience Post] 2022 Cybersecurity Summer Camp

研发团队数字化转型实践

Building a cloud-native DevOps environment
![[LeetCode304 Weekly Competition] Two questions about the base ring tree 6134. Find the closest node to the given two nodes, 6135. The longest cycle in the graph](/img/63/16de443caf28644d79dc6e6889e5dd.png)
[LeetCode304 Weekly Competition] Two questions about the base ring tree 6134. Find the closest node to the given two nodes, 6135. The longest cycle in the graph

Data Organization --- Chapter 5 Trees and Binary Trees --- The Concept of Binary Trees --- Application Questions

伸展树的特性及实现

请问什么是 CICD

Is TCP reliable?Why?

TCP 可靠吗?为什么?
随机推荐
颜色透明参数
计算两点之间的距离
System availability: 3 9s, 4 9s in SRE's mouth... What is it?
CF1703G Good Key, Bad Key
excel remove all carriage return from a cell
路径压缩、、
numpy.isclose
Background project Express-Mysql-Vue3-TS-Pinia page layout-sidebar menu
对于在新标签页中打开的链接,始终使用“noopener”或“noreferrer”
Is TCP reliable?Why?
Calculate the distance between two points
[Recommended books] The first self-driving technology book
6134. 找到离给定两个节点最近的节点-力扣双百代码
Data Organization --- Chapter 5 Trees and Binary Trees --- The Concept of Binary Trees --- Application Questions
Department project source code sharing
LocalDateTime转为Date类型
解决yolov5训练时出现:“AssertionError: train: No labels in VOCData/dataSet_path/train.cache. Can not train ”
D - Linear Probing- 并查集
When solving yolov5 training: "AssertionError: train: No labels in VOCData/dataSet_path/train.cache. Can not train"
Dynamic Scene Deblurring with Parameter Selective Sharing and Nested Skip Connections