当前位置:网站首页>sqoop 从mysql 导入json格式中文乱码
sqoop 从mysql 导入json格式中文乱码
2022-07-16 08:38:00 【Antg】
问题描述
使用sqoop 脚本导入mysql 的json格式数据的时候发生了中文乱码
问题分析
百度呗,谷歌呗,还能咋整
https://www.freesion.com/article/8365585970/
这篇就是说的是jar包冲突了,我按照方法去改了但是没有成功
其他地方也没找到相关的描述
问题解决
最后用了一种最简单的方法解决了这个问题
在query这个参数后面将对应json格式的字段使用cast转换成char类型就可以啦
cast(column_name as char)
边栏推荐
- Web page making (II)
- bbox center-size representation and corners representation
- 社交网络的充分去中心化
- Example of declarative transaction management
- LCA problem topic
- Uniapp code scanning native plug-ins (Google mlkit, zxing; support scanning multiple codes at the same time)
- leetcode刷题记录17
- VR(一)ATW ASW
- Analysis on the necessity and key functions of the construction of video monitoring platform for comprehensive building
- AcWing 133. earthworm
猜你喜欢

基于GPU加速的Opencv库 & 利用cmake和vs2019重新配置并生成Opencv-cuda版本

Solution to slow running card of VMware virtual machine

Do you know the meaning of call concurrency in okcc?

中关村e谷·苏高新承办2022苏州中日韩高层次人才项目路演大赛
C language training address book (static and dynamic versions)

osgEarth的Rex引擎原理分析(一二八)rex的引擎和图层投影及其关系

From it R & D staff turnover thought

【直播报名】OceanBase深入浅出第七期

How to protect the copyright of Digital Collections

VMware 虚拟机运行卡慢的解决办法
随机推荐
APISIX 如何与 Hydra 集成,搭建集中认证网关助力企业安全
二分(二分答案)问题合集
The pits encountered using arcpy (3)
数据库系统原理与应用教程(020)—— 登录 MySQL
Kubedm install kubernetes 1.15 best practices
Defi中的关键 智能合约是什么?
ELK集群部署(四)之部署Logstash
What is the basic task of MRP
Which is the most suitable price system for the three cloud rendering platforms (I)
JS calculation accuracy and data format
How to protect the copyright of Digital Collections
中关村e谷·苏高新承办2022苏州中日韩高层次人才项目路演大赛
uniapp扫码原生插件(Google MLKit、zxing;支持同时扫多个码)
使用IDEA搭建WebService服务
Sword finger offer 46: Translate numbers into strings
cpu由什么组成
bbox center-size representation and corners representation
LCA问题专题
MRP的基本任务是什么
redis实现浏览历史模块