您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

sqoop导入时删除string类型字段的特殊字符

2026/1/6 12:27:09发布34次查看
如果你指定了\n为sqoop导入的换行符,mysql的某个string字段的值如果包含了\n, 则会导致sqoop导入多出一行记录。 有一个选项 -hive-drop-import-delims drops \n, \r, and \01 from string fields when importing to hive.
如果你指定了\n为sqoop导入的换行符,mysql的某个string字段的值如果包含了\n, 则会导致sqoop导入多出一行记录。
有一个选项
-hive-drop-import-delims drops \n, \r, and \01 from string fields when importing to hive.
这样\n \r 和\01都被自动删除,不会捣乱了。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product