当前位置:网站首页>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 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
- PostgreSQL Basics--Common Commands
- 深度学习基础-基于Numpy的循环神经网络(RNN)实现和反向传播训练
- LocalDateTime转为Date类型
- B. Difference Array--Codeforces Round #808 (Div. 1)
- 研发团队数字化转型实践
- YOLO等目标检测模型的非极大值抑制NMS和评价指标(Acc, Precision, Recall, AP, mAP, RoI)、YOLOv5中[email protected]与
- Chapter 12 End-User Task As Shell Scripts
- 软技能之UML图
- 数据库表设计规则
猜你喜欢
From 0 to 100: Notes on the Development of Enrollment Registration Mini Programs
nodejs--process
The monthly salary of the test post is 5-9k, how to increase the salary to 25k?
美赞臣EDI 940仓库装运订单详解
[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
drf生成序列化类代码
Building a cloud-native DevOps environment
ROS2初级知识(8):Launching启动多节点
云原生DevOps环境搭建
When solving yolov5 training: "AssertionError: train: No labels in VOCData/dataSet_path/train.cache. Can not train"
随机推荐
SQL Server(设计数据库--存储过程--触发器)
Making a Simple 3D Renderer
云原生DevOps环境搭建
【C语言进阶】文件操作(二)
对于在新标签页中打开的链接,始终使用“noopener”或“noreferrer”
Additional Features for Scripting
Calculate the distance between two points
[Recommended books] The first self-driving technology book
[Camp Experience Post] 2022 Cybersecurity Summer Camp
excel cell contian two words, seperated by a slash
How do programmers solve online problems gracefully?
Building a cloud-native DevOps environment
Jmeter是什么
基于JAX的激活函数、softmax函数和交叉熵函数
numpy.hstack
CF1705D Mark and Lightbulbs
[C language advanced] file operation (2)
数据增强--学习笔记(图像类,cnn)
Three, mysql storage engine - building database and table operation
TCP 可靠吗?为什么?