remote-submit.rst 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. .. Licensed to the Apache Software Foundation (ASF) under one
  2. or more contributor license agreements. See the NOTICE file
  3. distributed with this work for additional information
  4. regarding copyright ownership. The ASF licenses this file
  5. to you under the Apache License, Version 2.0 (the
  6. "License"); you may not use this file except in compliance
  7. with the License. You may obtain a copy of the License at
  8. .. http://www.apache.org/licenses/LICENSE-2.0
  9. .. Unless required by applicable law or agreed to in writing,
  10. software distributed under the License is distributed on an
  11. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  12. KIND, either express or implied. See the License for the
  13. specific language governing permissions and limitations
  14. under the License.
  15. Submit Your Code from Different machine
  16. =======================================
  17. Generally, we use pydolphinscheduler as a client to DolphinScheduler, and consider we may change our workflow
  18. code frequently, the best practice is running :ref:`python gateway service <start:start python gateway service>`
  19. in your server machine and submit the workflow code from your development machine, like a laptop or PC. This behavior
  20. is supported by pydolphinscheduler out of box with one or two single command lines.
  21. Export Configuration File
  22. -------------------------
  23. .. code-block:: bash
  24. $ pydolphinscheduler config --init
  25. your could find more detail in :ref:`configuration exporting <config:export configuration file>`
  26. Run API Server in Other Host
  27. ----------------------------
  28. .. code-block:: bash
  29. $ pydolphinscheduler config --set java_gateway.address <your-api-server-ip-or-hostname>
  30. your could find more detail in :ref:`configuration setting <config:change configuration>`
  31. Run API Server in Other Port
  32. ----------------------------
  33. .. code-block:: bash
  34. $ pydolphinscheduler config --set java_gateway.port <your-python-gateway-service-port>
  35. your could find more detail in :ref:`configuration setting <config:change configuration>`