首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从头开始dml-to-hive

从头开始dml-to-hive
EN

Stack Overflow用户
提问于 2020-04-21 04:38:43
回答 1查看 1.6K关注 0票数 1

我正在使用AbInitio,并尝试将输入表中的查询结果填充到hdfs中。我想要拼花地板的格式。我尝试使用dml来隐藏文本,但以下是我的结果,我不确定这意味着什么。

代码语言:javascript
复制
$ dml-to-hive text $AI_DML/myprojectdml.dml
Usage: dml-to-avro <record_format> <output_file>

   or: dml-to-avro help

  <record-format> is one of:
       <filename>           Read record format from file
       -string <string>     Read record format from string

  <output_file> is one of:
       <filename>           Output Avro schema to file
       -                    Output Avro schema to standard output

我还尝试使用Write Hive Table组件,但收到以下错误:

代码语言:javascript
复制
[B276]
The internal charset "XXcharset_NONE" was encountered when a valid character set data
structure was expected.   One possible cause of this error is that you specified a 
character set to the Co>Operating System that is misspelled or otherwise incorrect.
If you cannot resolve the error please contact Customer Support.

任何帮助都将是伟大的,我正在尝试有我的输出到hdfs在拼花。

谢谢,克里斯·理查森

EN

回答 1

Stack Overflow用户

发布于 2020-07-09 00:45:08

我知道这是一个迟来的回复,但如果你还在做这件事,或者其他人像我一样偶然发现了这件事,我想我已经找到了解决方案。

我使用dml- to -hive为拼接格式创建了一个DML,并将其写入一个文件。

代码语言:javascript
复制
dml-to-hive parquet current.dml > parquet.dml

一旦创建了这个dml,您就可以在"Write HDFS“组件的输入端口上使用它。双击该组件,转到端口选项卡,单击单选按钮“使用文件”,然后将其指向parquet.dml

然后,只需将WRITE_FORMAT选项设置为拼花并试一试。我能够使用上面的过程创建拼花、orc和avro文件。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61331639

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档