如何使用色相将Teradata表导入蜂巢?

发布于 2025-01-28 18:18:48 字数 90 浏览 1 评论 0原文

我需要帮助使用Hue接口将Teradata表(带有LDAP凭据)导入Hive。我是蜂巢的新手,知识很少。另外,进口需要是新的负载,而不是附加的。

谢谢。

I need help importing a Teradata table (with LDAP credentials) into HIVE using HUE interface. I'm new to HIVE and has very little knowledge. Also, the import needs to be a fresh load and not append.

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜未央樱花落 2025-02-04 18:18:48

询问您的管理员访问SQOOP。

首先,创建一个表mytable就像源表一样。

当您使用SQL提取数据时,请使用以下命令。我以Oracle为例。 则可以在SQL下面使用一些JDBC驱动程序

sqoop import --connect jdbc:oracle:thin:@host:port/service_name --username xx --password yy --target-dir  'hdfs://your/table1/ --query "select * from scott.mytable where emp_id =1 AND \$CONDITIONS" --hive-import --hive-drop-import-delims  --hive-database mydb --hive-table mytable1 --hive-overwrite --delete-target-dir --m 1 

对于Teradata,如果您想在没有任何过滤器的情况下提取完整的表格,

sqoop import --connect jdbc:oracle:thin:@host:port/service_name --username xx --password yy --target-dir  'hdfs://your/table1/ --hcatalog-database mydb --hcatalog-table mytable1 --table mytable --hive-import --hive-drop-import-delims --hive-overwrite --delete-target-dir --m 1 

。请注意,SQOOOP可能有很多选择,您需要添加或删除参数。

Ask your admin for access to sqoop.

First of all create a table mytable just like source table.

Use below command when you are using a SQL to extract data. i used oracle as example. for teradata you will get some jdbc driver

sqoop import --connect jdbc:oracle:thin:@host:port/service_name --username xx --password yy --target-dir  'hdfs://your/table1/ --query "select * from scott.mytable where emp_id =1 AND \$CONDITIONS" --hive-import --hive-drop-import-delims  --hive-database mydb --hive-table mytable1 --hive-overwrite --delete-target-dir --m 1 

Use below SQL if you want to extract complete table without any filter.

sqoop import --connect jdbc:oracle:thin:@host:port/service_name --username xx --password yy --target-dir  'hdfs://your/table1/ --hcatalog-database mydb --hcatalog-table mytable1 --table mytable --hive-import --hive-drop-import-delims --hive-overwrite --delete-target-dir --m 1 

Pls note, there can be many options to sqooop, you need to add or remove parameters.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文