
脚本
各种shell提交脚本
wm_43827516
这个作者很懒,什么都没留下…
展开
-
spark脚本
spark-submit脚本#!/bin/shsource ExitCodeCheck.shexitCodeCheck(){if [ $1 -ne 0 ]; then echo 'shell execute return value is' $1 'is not 0' exit $1else echo 'shell execute success'fi}opts=$@ getparam(){arg=$1echo $opts |xargs -n1 |cut -b 2-转载 2021-05-12 10:27:55 · 2549 阅读 · 0 评论 -
sqoop脚本
sqoop导出脚本(不同库)#!/bin/shsource ExitCodeCheck.sh opts=$@ getparam(){arg=$1echo $opts |xargs -n1 |cut -b 2- |awk -F'=' '{if($1=="'"$arg"'") print $2}'} IncStart=`getparam inc_start`IncEnd=`getparam inc_end`oracle_connection=`getparam jdbc_s转载 2021-05-12 10:24:39 · 1239 阅读 · 0 评论