<i id='xSYjE'><tr id='xSYjE'><dt id='xSYjE'><q id='xSYjE'><span id='xSYjE'><b id='xSYjE'><form id='xSYjE'><ins id='xSYjE'></ins><ul id='xSYjE'></ul><sub id='xSYjE'></sub></form><legend id='xSYjE'></legend><bdo id='xSYjE'><pre id='xSYjE'><center id='xSYjE'></center></pre></bdo></b><th id='xSYjE'></th></span></q></dt></tr></i><div id='xSYjE'><tfoot id='xSYjE'></tfoot><dl id='xSYjE'><fieldset id='xSYjE'></fieldset></dl></div>

    <legend id='xSYjE'><style id='xSYjE'><dir id='xSYjE'><q id='xSYjE'></q></dir></style></legend>

  • <small id='xSYjE'></small><noframes id='xSYjE'>

  • <tfoot id='xSYjE'></tfoot>

        <bdo id='xSYjE'></bdo><ul id='xSYjE'></ul>

        将 BLOB(图像)从 oracle 导入到 hive

        Import BLOB (Image) from oracle to hive(将 BLOB(图像)从 oracle 导入到 hive)
        <legend id='tDXV8'><style id='tDXV8'><dir id='tDXV8'><q id='tDXV8'></q></dir></style></legend>

          <i id='tDXV8'><tr id='tDXV8'><dt id='tDXV8'><q id='tDXV8'><span id='tDXV8'><b id='tDXV8'><form id='tDXV8'><ins id='tDXV8'></ins><ul id='tDXV8'></ul><sub id='tDXV8'></sub></form><legend id='tDXV8'></legend><bdo id='tDXV8'><pre id='tDXV8'><center id='tDXV8'></center></pre></bdo></b><th id='tDXV8'></th></span></q></dt></tr></i><div id='tDXV8'><tfoot id='tDXV8'></tfoot><dl id='tDXV8'><fieldset id='tDXV8'></fieldset></dl></div>

            <tbody id='tDXV8'></tbody>

          1. <small id='tDXV8'></small><noframes id='tDXV8'>

              1. <tfoot id='tDXV8'></tfoot>
                  <bdo id='tDXV8'></bdo><ul id='tDXV8'></ul>
                • 本文介绍了将 BLOB(图像)从 oracle 导入到 hive的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试使用以下 Sqoop 命令将 BLOB(图像)数据表单 oracle 导入 Hive.

                  I am trying to import BLOB(Image)data form oracle to Hive using below Sqoop command.

                  sqoop import --connect jdbc:oracle:thin:@host --username --password  --m 3 --table tablename  --hive-drop-import-delims  --hive-table tablename --target-dir '' --split-by id;
                  

                  但是没有成功.请记住,BLOB 数据以十六进制形式存储在 oracle 数据库中,我们需要将其以文本或二进制形式存储到 Hive 表中.

                  But unsuccessful. Remember, BLOB Data stored in oracle database as Hexadecimal and we need to store this to Hive table as text or bianary.

                  有哪些可能的方法来做到这一点?

                  What are the possible way to do that?

                  推荐答案

                  Sqoop 不知道如何将 oracle 中的 blob 数据类型映射到 Hive.所以你需要指定 --map-column-hive COLUMN_BLOB=binary

                  Sqoop does not know how to map blob datatype in oracle into Hive. So You need to specify --map-column-hive COLUMN_BLOB=binary

                  sqoop import --connect 'jdbc:oracle:thin:@host' --username $USER --password $Password  --table $TABLE  --hive-import --hive-table $HiveTable  --map-column-hive COL_BLOB=binary --delete-target-dir --target-dir $TargetDir  -m 1 -verbose
                  

                  这篇关于将 BLOB(图像)从 oracle 导入到 hive的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)
                  Creating a flattened table/view of a hierarchically-defined set of data(创建分层定义的数据集的扁平表/视图)
                  MySQL: how to do row-level security (like Oracle#39;s Virtual Private Database)?(MySQL:如何做到行级安全(如 Oracle 的 Virtual Private Database)?)
                  What is the best way to enforce a #39;subset#39; relationship with integrity constraints(强制执行具有完整性约束的“子集关系的最佳方法是什么)
                  Split String by delimiter position using oracle SQL(使用 oracle SQL 按分隔符位置拆分字符串)
                  How to unfold the results of an Oracle query based on the value of a column(如何根据列的值展开Oracle查询的结果)

                    <legend id='aCygs'><style id='aCygs'><dir id='aCygs'><q id='aCygs'></q></dir></style></legend>
                      <tbody id='aCygs'></tbody>

                        <bdo id='aCygs'></bdo><ul id='aCygs'></ul>
                          • <i id='aCygs'><tr id='aCygs'><dt id='aCygs'><q id='aCygs'><span id='aCygs'><b id='aCygs'><form id='aCygs'><ins id='aCygs'></ins><ul id='aCygs'></ul><sub id='aCygs'></sub></form><legend id='aCygs'></legend><bdo id='aCygs'><pre id='aCygs'><center id='aCygs'></center></pre></bdo></b><th id='aCygs'></th></span></q></dt></tr></i><div id='aCygs'><tfoot id='aCygs'></tfoot><dl id='aCygs'><fieldset id='aCygs'></fieldset></dl></div>

                            <tfoot id='aCygs'></tfoot>

                            <small id='aCygs'></small><noframes id='aCygs'>