Sqoop-import 从 HANA 使用表名中的特殊字符导入到 hive [英] Sqoop-import to hive from HANA with special characters in table name

查看:46
本文介绍了Sqoop-import 从 HANA 使用表名中的特殊字符导入到 hive的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从 SAP HANA 数据库进行 SQOOP,我的目的是进行直接配置单元导入,我根据需要使用了该命令(适用于大多数表)但在某些情况下导入不起作用是 SAP 表名中的特殊字符,例如表名是/BIC/AS100/"由于表名中有/".

I am trying to SQOOP from SAP HANA database, My purpose is to do a direct hive import, I used the command as required (which works for most of the tables) but in some cases the import doesn't work as there are special characters in the SAP table name for e.g table name is "/BIC/AS100/" Due to the "/" in the table name.

我无法直接导入 hive.有什么方法可以导入表并创建一个具有适当名称的新配置单元表.

I am unable to do a direct hive import. Is there any way I can import the table and create a new hive table with a proper name.

推荐答案

谢谢 , Sathiyan ,

Thanks , Sathiyan ,

问题已解决.我做了一个直接配置单元导入,指定了一个新的选择表名.仍然使用特殊字符导入列名,但我们可以在 hive 中处理它.例如

the issue is resolved . I did a direct hive import specifying a new table name of choice . still the columns names are imported with the special character but we can handle that in hive . for e.g

从表名中选择`/bic/xyz`;(反引号转义特殊字符)

Select `/bic/xyz` from tablename ; ( the back tick escapes the special character )

这篇关于Sqoop-import 从 HANA 使用表名中的特殊字符导入到 hive的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆