美文网首页
脚本打包

脚本打包

作者: 码农GG | 来源:发表于2019-12-15 08:48 被阅读0次

使用opt格式的文件打包sqoop命令,然后执行

  1. 创建一个.opt文件
$ touch job_HDFS2RDBMS.opt
  1. 编写sqoop脚本
$ vi ./job_HDFS2RDBMS.opt

以下命令是从staff_hive中追加导入到mysql的aca表中

export
--connect
jdbc:mysql://bigdata111:3306/Andy
--username
root
--password
000000
--table
aca
--num-mappers
1
--export-dir
/user/hive/warehouse/staff_hive
--input-fields-terminated-by
"\t"
  1. 执行该脚本
$ bin/sqoop --options-file job_HDFS2RDBMS.opt

相关文章

  • gradlew和gradle的区别

    1. Android Studio打包和直接用gradlew脚本打包用的脚本不同,Android Studio打包...

  • 持续集成

    手动打包存在的问题 操作繁琐 时间慢 不够逼格 自动化打包 shell脚本打包shell脚本打包之前最好先buli...

  • iOS自动打包ipa(shell脚本)

    系列 iOS自动打包ipa(shell脚本)iOS自动打包ipa(Python脚本) 安装xctool shell...

  • 闲来无事的懒人-打包ipa

    gym 打包 cd项目根目录, 创建自动打包脚本: 提升脚本权限 chmod +x gym.sh 执行脚本 ./g...

  • Xcode自动打包

    [iOS]从零开始写个自动打包IPA脚本 【iOS打ipa包】:使用终端实现自动打包 iOS自动打包并发布脚本

  • iOS自动打包ipa(Python脚本)

    系列 iOS自动打包ipa(shell脚本)iOS自动打包ipa(Python脚本) 安装Python库 Pyth...

  • pyinstaller的使用

    pyinstaller简介 pyinstaller是一个常用的python脚本打包工具,可以将python脚本打包...

  • jenkins自动部署

    服务端自动打包脚本 自动部署脚本

  • 持续集成

    打包配置 httpclient测试代码打包: springboot集成代码打包: Jenkins--shell脚本...

  • GO打包部署脚本

    GO打包部署脚本 $ Linux 打包 build_linux.bat $ Windows exe 打包 bu...

网友评论

      本文标题:脚本打包

      本文链接:https://www.haomeiwen.com/subject/gmaggctx.html