永发信息网

hive语句和oracle一样吗

答案:2  悬赏:50  手机版
解决时间 2021-02-18 19:31
  • 提问者网友:萌卜娃娃
  • 2021-02-18 05:28
hive语句和oracle一样吗
最佳答案
  • 五星知识达人网友:由着我着迷
  • 2021-02-18 06:43
目前我知道的方法是把你希望添加的数据写入到文本中,然后从文本导入到你的表格中。 但是,hive不知道oracle的insert into , update。 load data [local] inpath 'yourfile_location' [overwrite] into your_table;
全部回答
  • 1楼网友:舊物识亽
  • 2021-02-18 07:09
[steps] 1. install oracle 11g for 32bit on a windows 32bit vm (windows server 2003) see <在windows server 2003 32bit 中安装oracle 11g 32bit>: http://blog.csdn.net/mozart_cai/article/details/8596352 2. configure local listener(本地监听服务) in oracle net manager, add a listener see <通过net manager 配置oracle 11g本地监听服务(listener service)>: http://blog.csdn.net/mozart_cai/article/details/8596504 3. load oracle table to hive table via sqoop in oracle sql plus, check all tables owned by current user sql> select unique tname from col; we choose table "dept" to migrate. in cluster node $ hive $ show tables; $ quit; $ sqoop import --connect jdbc:oracle:thin:@ipaddressofnodeinstalloracle:1521:orcl --username scott --password 123456 --table dept -m 1 --hive-import --hive-table "hivetest" notice: ipaddressofnodeinstalloracle is for windows run oracle(ex: 172.16.3.4); username and password are configured in oracle;tablename and username should be upper case $ show tables; $ select * from hivetest;
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯