datax-hive-import-starter.sh 375 B

12345678910
  1. #!/bin/bash
  2. # DataX hive-import 入口 bash 壳:初始化 env(含 workers.ini 展开)后 exec 到 Python 主入口。
  3. # 参数集见 bin/datax-hive-import-starter.py。
  4. CURRENT_DIR=$(pwd)
  5. BASE_DIR=$(
  6. cd "$(dirname "$(realpath "$0")")/.." || exit
  7. pwd
  8. )
  9. . "${BASE_DIR}"/bin/common/init.sh
  10. exec "${PYTHON3_PATH}" -u "${BASE_DIR}"/bin/datax-hive-import-starter.py "$@"