Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mysqltable=$(echo "$table" | sed 's/[][]//g;s/'"'"'//g')
- hive_table=$(echo -n $mysqltable | tr -c '[:alnum:]' _)
- validateTable=$(hive --database "${hivedb}" -e "SHOW TABLES LIKE '$hive_table'")
- if [[ -z $validateTable ]]; then
- sh -x /home/"$USER"/"${hivedb}"/import.sh "${mysqltable}"
- else
- sh -x /home/"$USER"/"${hivedb}"/append.sh "${mysqltable}"
- fi
Add Comment
Please, Sign In to add comment