zoukankan      html  css  js  c++  java
  • Hive Hadoop数据迁移工具配置

    squirrel Config

    Add Driver
    NAME:Hive1.2
    Example URL:jdbc:hive2://132.228.24.35:8901/cwdsjdb
    Website URL:[不填]
    Class Name:org.apache.hive.jdbc.HiveDriver

    Add Alias
    NAME:[随意]
    Driver:Hive1.2
    URL:[选好Driver会自动填上]
    User Name:infa
    Password:infa

    进入目录后(cd /home/infa/sqoop/bin)LINUX指令: 
    ./sqoop import --connect jdbc:oracle:thin:@132.228.209.7:1521:TMSDB3 --username MSS_CWDT --password 'msscw_411' --hive-import --hive-database cwdsjdb --table P_V_FI_ASSET_LIST --null-string '\N' --null-non-string '\N' --hive-drop-import-delims --m 1
    ./sqoop export --connect jdbc:oracle:thin:@132.228.26.169:1621:cwgldb2 --username CWDSJ --password '!cwdsj16' --export-dir /user/hive/warehouse/cwdsjdb.db/mss_dsjzc_mxhz1 --table MSS_DSJZC_MXHZ1 --input-fields-terminated-by '01' --input-lines-terminated-by ' ' --input-null-string '\N' --input-null-non-string '\N';
    ./sqoop export --connect jdbc:oracle:thin:@132.228.26.169:1621:cwgldb2 --username CWDSJ --password '!cwdsj16' --export-dir /user/hive/warehouse/cwdsjdb.db/mss_dsjzc_khhz1 --table MSS_DSJZC_KHHZ1 --input-fields-terminated-by '01' --input-lines-terminated-by ' ' --input-null-string '\N' --input-null-non-string '\N';
    ./sqoop export --connect jdbc:oracle:thin:@132.228.26.169:1621:cwgldb2 --username CWDSJ --password '!cwdsj16' --export-dir /user/hive/warehouse/cwdsjdb.db/mss_dsjzc_xzhz1 --table MSS_DSJZC_XZHZ1 --input-fields-terminated-by '01' --input-lines-terminated-by ' ' --input-null-string '\N' --input-null-non-string '\N';
    ./sqoop export --connect jdbc:oracle:thin:@132.228.26.169:1621:cwgldb2 --username CWDSJ --password '!cwdsj16' --export-dir /user/hive/warehouse/cwdsjdb.db/mss_dsjzc_cxlhz --table MSS_DSJZC_CXLHZ --input-fields-terminated-by '01' --input-lines-terminated-by ' ' --input-null-string '\N' --input-null-non-string '\N';

  • 相关阅读:
    Starlink星链计划能与5G抗衡?看一下马斯克吹过的牛逼
    代码安全性和健壮性:如何在if和assert中做选择?
    都说软件架构要分层、分模块,具体应该怎么做(一)
    物联网网关开发:基于MQTT消息总线的设计过程(上)
    Linq 集成化查询(1)
    给自己定位的技术总监
    lucene.net初接触
    人生就像一系统软件
    用Microsoft.Practices.Unity实现简单的依赖注入
    flv播放器参数
  • 原文地址:https://www.cnblogs.com/Dream-Lasting/p/8991089.html
Copyright © 2011-2022 走看看