utils.py 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. class ConfigOnline(object):
  2. test_url = "http://aihub-dag-test.digitalyili.com/jpt/datasource/test"
  3. add_job_url = "http://aihub-dag-test.digitalyili.com/jpt/jobinfo/"
  4. update_url = "http://aihub-dag-test.digitalyili.com/jpt/jobinfo/update_trigger_status/"
  5. execute_url = "http://aihub-dag-test.digitalyili.com/jpt/jobinfo/execute"
  6. add_datasource_url = "http://aihub-dag-test.digitalyili.com/jpt/datasource/"
  7. datasource = "hive"
  8. database_name = "ailab"
  9. jdbc_url = "10.254.20.22:7001"
  10. use_ssl = 0
  11. kerberos = 1
  12. keytab = "test/kerberos/1667353194_user.keytab"
  13. krb5config = "test/kerberos/1667353194_krb5.conf"
  14. kerberos_service_name = "hadoop"
  15. principal = "ailab@EMR-5XJSY31F"
  16. class ConfigOffline(object):
  17. test_url = "http://192.168.199.107:18082/jpt/datasource/test"
  18. add_job_url = "http://192.168.199.107:18082/jpt/jobinfo/"
  19. update_url = "http://192.168.199.107:18082/jpt/jobinfo/update_trigger_status/"
  20. execute_url = "http://192.168.199.107:18082/jpt/jobinfo/execute"
  21. add_datasource_url = "http://192.168.199.107:18082/jpt/datasource/"
  22. datasource = "mysql"
  23. jdbc_username = "root"
  24. jdbc_password = "aGFwcHlsYXk="
  25. database_name = "test-db"
  26. jdbc_url = "192.168.199.107:10086"
  27. use_ssl = 0
  28. kerberos = 0