You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ji...@apache.org on 2026/10/10 09:24:53 UTC
(ambari-mpacks) 09/35: AMBARI-26663: Add persistent DolphinScheduler 3.1.9 management
This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ambari-mpacks.git
commit 27646a0b96b1d6b539976c82521caf7536682116
Author: jialiang <ji...@gmail.com>
AuthorDate: Mon Sep 28 12:11:22 2026 +0800
AMBARI-26663: Add persistent DolphinScheduler 3.1.9 management
---
mpacks/dolphinscheduler/LICENSE | 933 +++++++++++++++++++++
mpacks/dolphinscheduler/NOTICE | 2 +
mpacks/dolphinscheduler/README.md | 45 +
.../extensions/DOLPHINSCHEDULER/1.0/metainfo.xml | 16 +
.../configuration/dolphinscheduler-env.xml | 29 +
.../1.0/services/DOLPHINSCHEDULER/metainfo.xml | 24 +
.../DOLPHINSCHEDULER/package/scripts/launcher.py | 49 ++
.../DOLPHINSCHEDULER/package/scripts/runtime.py | 307 +++++++
.../DOLPHINSCHEDULER/package/scripts/server.py | 26 +
.../package/scripts/service_check.py | 26 +
.../DOLPHINSCHEDULER/quicklinks/quicklinks.json | 10 +
mpacks/dolphinscheduler/mpack.json | 10 +
mpacks/dolphinscheduler/shared-files.json | 12 +
mpacks/dolphinscheduler/source.json | 13 +
tests/test_dolphinscheduler.py | 143 ++++
15 files changed, 1645 insertions(+)
diff --git a/mpacks/dolphinscheduler/LICENSE b/mpacks/dolphinscheduler/LICENSE
new file mode 100644
index 0000000..c43caf4
--- /dev/null
+++ b/mpacks/dolphinscheduler/LICENSE
@@ -0,0 +1,933 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+APACHE AMBARI SUBCOMPONENTS:
+
+The Apache Ambari project contains subcomponents with separate copyright
+notices and license terms. Your use of the source code for the these
+subcomponents is subject to the terms and conditions of the following
+licenses.
+
+This product bundles VictoriaMetrics (https://victoriametrics.com/),
+which is available under the Apache License, Version 2.0.
+
+and some parts:
+
+Copyright (C) 2011 Krzysztof Wilczynski
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+For Kokki, resource management library derived from:
+
+Copyright (c) 2009 Samuel Stauffer <sa...@descolada.com>
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of Samuel Stauffer nor the names of its contributors may be used
+ to endorse or promote products derived from this software without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+For Jinja2, used by resource management library as a templating engine:
+
+Copyright 2007 Pallets
+
+For MarkupSafe, used by Jinja2:
+
+Copyright 2010 Pallets
+
+For pycparser, used by cffi:
+
+pycparser -- A C parser in Python
+Copyright (c) 2008-2022, Eli Bendersky
+All rights reserved.
+
+The above three components are available under the BSD 3-Clause License:
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+For jQuery 1.9.1 (ambari-web/vendor/scripts.jquery-1.9.1.js):
+
+jQuery JavaScript Library v1.9.1
+http://jquery.com/
+
+Copyright 2011, John Resig
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+Includes Sizzle.js
+http://sizzlejs.com/
+Copyright 2011, The Dojo Foundation
+Released under the MIT, BSD, and GPL Licenses.
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Timepicker Addon (ambari-web/vendor/scripts/jquery-ui-timepicker-addon.js):
+
+jQuery timepicker addon
+By: Trent Richardson [http://trentrichardson.com]
+Version 1.0.5
+
+Copyright 2012 Trent Richardson
+You may use this project under MIT or GPL licenses.
+http://trentrichardson.com/Impromptu/GPL-LICENSE.txt
+http://trentrichardson.com/Impromptu/MIT-LICENSE.txt
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery Periodic Plugin (ambari-web/vendor/scripts/jquery.periodic.js):
+
+jQuery periodic plugin
+
+Copyright 2010, Tom Anderson
+Dual licensed under the MIT or GPL Version 2 licenses.
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI 1.8.23 (ambari-web/vendor/scripts/jquery.ui.core.js,
+contrib/views/slider/src/main/resources/ui/vendor/scripts/common/jquery.ui.core.js):
+
+jQuery UI 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Autocomplete 1.8.23 (ambari-web/vendor/scripts/jquery.ui.autocomplete.js):
+
+jQuery UI Autocomplete 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Autocomplete
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Position 1.8.23 (ambari-web/vendor/scripts/jquery.ui.position.js):
+
+jQuery UI Position 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Position
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Datepicker 1.8.23 (ambari-web/vendor/scripts/jquery.ui.datepicker.js):
+
+jQuery UI Datepicker 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Datepicker
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Mouse 1.8.23 (ambari-web/vendor/scripts/jquery.ui.mouse.js,
+contrib/views/slider/src/main/resources/ui/vendor/scripts/common/jquery.ui.mouse.js):
+
+jQuery UI Mouse 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Mouse
+
+Depends:
+jquery.ui.widget.js
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Slider 1.8.23 (ambari-web/vendor/scripts/jquery.ui.slider.js):
+
+jQuery UI Slider 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Slider
+
+Depends:
+jquery.ui.core.js
+jquery.ui.mouse.js
+jquery.ui.widget.js
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Widget 1.8.23 (ambari/ambari-web/vendor/scripts/jquery.ui.widget.js,
+contrib/views/slider/src/main/resources/ui/vendor/scripts/common/jquery.ui.widget.js):
+
+jQuery UI Widget 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Widget
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For Backbone.js 1.1.0 (ambari/ambari-web/vendor/scripts/backbone.js,
+
+Backbone.js 1.1.0
+(c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc.
+(c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+Backbone may be freely distributed under the MIT license.
+For all details and documentation:
+http://backbonejs.org
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For Underscore.js 1.5.2 (ambari/ambari-web/vendor/scripts/underscore.js,
+
+Underscore.js 1.5.2
+http://underscorejs.org
+(c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+Underscore may be freely distributed under the MIT license.
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For clipboard.js 1.5.10 (ambari/ambari-web/vendor/scripts/clipboard.min.js):
+
+clipboard.js v1.5.10
+https://clipboardjs.com/
+Copyright 2016 Zeno Rocha <hi...@zenorocha.com>
+Clipboard may be freely distributed under the MIT license.
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For MockJax 1.6.0 (contrib/views/slider/src/main/resources/ui/app/assets/javascripts/jquery.mockjax.js,
+/contrib/views/files/src/main/resources/ui/app/assets/javascripts/jquery.mockjax.js):
+
+MockJax - jQuery Plugin to Mock Ajax requests
+
+Version: 1.6.0
+Released:
+Home: https://github.com/jakerella/jquery-mockjax
+Author: Jonathan Sharp (http://jdsharp.com)
+License: MIT,GPL
+
+Copyright (c) 2014 appendTo, Jordan Kasper
+NOTE: This repository was taken over by Jordan Kasper (@jakerella) October, 2014
+
+Dual licensed under the MIT or GPL licenses.
+http://opensource.org/licenses/MIT OR http://www.gnu.org/licenses/gpl-2.0.html
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For ember-qunit (contrib/views/slider/src/main/resources/ui/app/assets/javascripts/ember-qunit.js)
+
+Home: https://github.com/rwjblue/ember-qunit
+Author: Ryan Florence and contributors
+License: MIT
+
+Copyright 2014 Ryan Florence and contributors. MIT License.
+
+The MIT License (MIT)
+
+Copyright (c) 2014 Ryan Florence
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+For swagger-ui (ambari-web/api-docs/*):
+Home: https://github.com/jensoleg/swagger-ui
+License: Apache License, Version 2.0
+
+Copyright 2015 Reverb Technologies, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
+The following bundled Python runtime dependencies are available under the
+Apache License, Version 2.0 reproduced at the start of this file:
+
+* cryptography 50.0.1 (Apache-2.0 option selected)
+* distro 1.9.0
+* stomp.py 8.2.0
+* websocket-client 1.9.0
+* OpenSSL bundled in cryptography binary wheels
+
+For APScheduler:
+
+Copyright (c) Alex Grönholm
+
+For docopt:
+
+Copyright (c) 2012 Vladimir Keleshev, <vl...@keleshev.com>
+
+For tzlocal:
+
+Copyright 2011-2017 Lennart Regebro
+
+For javaproperties:
+
+Copyright (c) 2016-2024 John Thorvald Wodder II
+
+For PyYAML:
+
+Copyright (c) 2017-2021 Ingy döt Net
+Copyright (c) 2006-2016 Kirill Simonov
+
+The above five components are available under the MIT License:
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+For cffi:
+
+Except when otherwise stated in individual source files, cffi software and
+documentation is available under the MIT No Attribution license:
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+For typing_extensions:
+
+Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022,
+2023 Python Software Foundation. All Rights Reserved.
+
+PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
+
+1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"),
+and the Individual or Organization ("Licensee") accessing and otherwise using
+this software ("Python") in source or binary form and its associated
+documentation.
+
+2. Subject to the terms and conditions of this License Agreement, PSF hereby
+grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
+analyze, test, perform and/or display publicly, prepare derivative works,
+distribute, and otherwise use Python alone or in any derivative version,
+provided, however, that PSF's License Agreement and PSF's notice of copyright
+are retained in Python alone or in any derivative version prepared by
+Licensee.
+
+3. In the event Licensee prepares a derivative work that is based on or
+incorporates Python or any part thereof, and wants to make the derivative work
+available to others as provided herein, then Licensee hereby agrees to include
+in any such work a brief summary of the changes made to Python.
+
+4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES
+NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT
+NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF
+MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
+PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
+
+5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY
+INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
+MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF,
+EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+
+6. This License Agreement will automatically terminate upon a material breach
+of its terms and conditions.
+
+7. Nothing in this License Agreement shall be deemed to create any
+relationship of agency, partnership, or joint venture between PSF and
+Licensee. This License Agreement does not grant permission to use PSF
+trademarks or trade name in a trademark sense to endorse or promote products
+or services of Licensee, or any third party.
+
+8. By copying, installing or otherwise using Python, Licensee agrees to be
+bound by the terms and conditions of this License Agreement.
+
+This product uses software based on SIL Open Font License (OFL)
+* Font-Awesome (SIL OFL 1.1) [http://fortawesome.github.io/Font-Awesome/]
+* Image clippy.svg from Octicon project (SIL OFL 1.1) [https://octicons.github.com/]
diff --git a/mpacks/dolphinscheduler/NOTICE b/mpacks/dolphinscheduler/NOTICE
new file mode 100644
index 0000000..d9d6638
--- /dev/null
+++ b/mpacks/dolphinscheduler/NOTICE
@@ -0,0 +1,2 @@
+Apache Ambari Apache DolphinScheduler Management Pack
+Copyright The Apache Software Foundation
diff --git a/mpacks/dolphinscheduler/README.md b/mpacks/dolphinscheduler/README.md
new file mode 100644
index 0000000..dbdb434
--- /dev/null
+++ b/mpacks/dolphinscheduler/README.md
@@ -0,0 +1,45 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+# DolphinScheduler 3.1.9 Basic Package
+
+This pack adds a single-host pseudo-cluster to BIGTOP/3.3.0. One Ambari
+component supervises DolphinScheduler's master, worker, API and alert servers
+as four separate foreground systemd processes. It requires an empty dedicated
+PostgreSQL 14-18 database, external ZooKeeper, and Java 11 or 17. The upstream
+standalone mode is deliberately not used: its default in-memory H2 metadata
+database is cleared on restart, and it starts a testing ZooKeeper server.
+
+INSTALL downloads the official 3.1.9 binary or reads an operator-preloaded
+`/var/cache/ambari-mpacks/dolphinscheduler-3.1.9.tar.gz`. Both paths enforce
+the official SHA-512. An empty metadata schema is initialized once and marked
+as owned; a nonempty foreign schema or unexpected version is rejected. A failed
+owned initialization can be retried without deleting the database. The
+upstream default `admin/dolphinscheduler123` credential is replaced before
+START, then verified through a typed PostgreSQL row observation. Later runs
+verify that administrator identity instead of resetting a changed account.
+
+The API, master and worker are checked through DolphinScheduler's JSON login
+and registry APIs, with exact assigned host identity; the four systemd units
+must also be active. The first release does not run a real scheduled workflow
+as part of SERVICE_CHECK. Worker auto-creation of Linux tenants and passwordless
+sudo are disabled; only workflows compatible with the dedicated service user
+are in scope. No HA, schema upgrade, or external task dependency installation
+is implied by this management definition.
+
+DolphinScheduler 3.1.9 itself stores user passwords as unsalted MD5. Keep the
+initial HTTP UI on a trusted network and assess this upstream security limit
+before production use. Runtime acceptance is pending. Stopping or retiring the
+pack does not delete PostgreSQL metadata or workflow files.
diff --git a/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/metainfo.xml b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/metainfo.xml
new file mode 100644
index 0000000..cd2a27f
--- /dev/null
+++ b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/metainfo.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<metainfo><versions><active>true</active></versions><prerequisites><min-stack-versions><stack><name>BIGTOP</name><version>3.3.0</version></stack></min-stack-versions></prerequisites><auto-link>false</auto-link></metainfo>
diff --git a/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/configuration/dolphinscheduler-env.xml b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/configuration/dolphinscheduler-env.xml
new file mode 100644
index 0000000..b8efea2
--- /dev/null
+++ b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/configuration/dolphinscheduler-env.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<configuration>
+ <property><name>server_host</name><value></value><description>Derived from the assigned DolphinScheduler Server.</description><value-attributes><empty-value-valid>true</empty-value-valid></value-attributes><on-ambari-upgrade add="true"/></property>
+ <property><name>api_port</name><value>12345</value><description>DolphinScheduler API and UI port.</description><on-ambari-upgrade add="true"/></property>
+ <property><name>database_host</name><value></value><description>External dedicated PostgreSQL 14-18 host.</description><on-ambari-upgrade add="true"/></property>
+ <property><name>database_port</name><value>5432</value><description>PostgreSQL port.</description><on-ambari-upgrade add="true"/></property>
+ <property><name>database_name</name><value>dolphinscheduler</value><description>Dedicated empty metadata database owned by the configured user.</description><on-ambari-upgrade add="true"/></property>
+ <property><name>database_user</name><value>dolphinscheduler</value><description>Metadata database owner.</description><on-ambari-upgrade add="true"/></property>
+ <property><name>database_password</name><value></value><description>Explicit database password, at least twelve characters.</description><property-type>PASSWORD</property-type><value-attributes><type>password</type></value-attributes><on-ambari-upgrade add="true"/></property>
+ <property><name>zookeeper_host</name><value></value><description>External ZooKeeper host; test-mode embedded ZooKeeper is not used.</description><on-ambari-upgrade add="true"/></property>
+ <property><name>zookeeper_port</name><value>2181</value><description>External ZooKeeper port.</description><on-ambari-upgrade add="true"/></property>
+ <property><name>admin_password</name><value></value><description>Explicit administrator password, 12-20 characters. Replaces the upstream default at first initialization.</description><property-type>PASSWORD</property-type><value-attributes><type>password</type></value-attributes><on-ambari-upgrade add="true"/></property>
+ <property><name>java_home</name><value>/usr/lib/jvm/java-17-openjdk</value><description>Java 11 or 17 runtime used by the four supervised processes.</description><on-ambari-upgrade add="true"/></property>
+ <property><name>binary_url</name><value></value><description>Optional HTTPS mirror of the pinned official binary archive. The SHA-512 must match.</description><value-attributes><empty-value-valid>true</empty-value-valid></value-attributes><on-ambari-upgrade add="true"/></property>
+</configuration>
diff --git a/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/metainfo.xml b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/metainfo.xml
new file mode 100644
index 0000000..655c286
--- /dev/null
+++ b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/metainfo.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<metainfo><schemaVersion>2.0</schemaVersion><services><service>
+ <name>DOLPHINSCHEDULER</name><displayName>Apache DolphinScheduler</displayName><version>3.1.9</version>
+ <comment>Persistent single-host master, worker, API and alert servers. External PostgreSQL 14-18 and ZooKeeper are required; in-memory standalone mode is not used.</comment>
+ <components><component><name>DOLPHINSCHEDULER_SERVER</name><displayName>DolphinScheduler Server</displayName><category>MASTER</category><cardinality>1</cardinality><versionAdvertised>false</versionAdvertised><commandScript><script>scripts/server.py</script><scriptType>PYTHON</scriptType><timeout>7200</timeout></commandScript><customCommands><customCommand><name>VERSION_CHECK</name><commandScript><script>scripts/server.py</script><scriptType>PYTHON</scriptType><timeout>7200</timeout></c [...]
+ <osSpecifics><osSpecific><osFamily>redhat8</osFamily><packages><package><name>java-17-openjdk-headless</name></package><package><name>python3-psycopg2</name></package><package><name>python3-dbus</name></package><package><name>python3-gobject-base</name></package></packages></osSpecific></osSpecifics>
+ <commandScript><script>scripts/service_check.py</script><scriptType>PYTHON</scriptType><timeout>900</timeout></commandScript>
+ <configuration-dependencies><config-type>dolphinscheduler-env</config-type></configuration-dependencies>
+ <quickLinksConfigurations><quickLinksConfiguration><fileName>quicklinks.json</fileName><default>true</default></quickLinksConfiguration></quickLinksConfigurations>
+</service></services></metainfo>
diff --git a/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/launcher.py b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/launcher.py
new file mode 100644
index 0000000..c2b5ebe
--- /dev/null
+++ b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/launcher.py
@@ -0,0 +1,49 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+"""
+
+import json
+import os
+import sys
+from pathlib import Path
+
+ROLES = {"master-server", "worker-server", "api-server", "alert-server"}
+
+
+def main():
+ if len(sys.argv) != 2 or sys.argv[1] not in ROLES:
+ raise ValueError("Invalid DolphinScheduler role")
+ role = sys.argv[1]
+ values = json.loads(Path("/etc/dolphinscheduler/ambari/runtime.json").read_text())
+ if set(values) != {"home", "java_home", "database_url", "database_user", "database_password",
+ "zookeeper", "api_port"}:
+ raise ValueError("Invalid protected DolphinScheduler configuration")
+ home = Path(values["home"])
+ environment = dict(os.environ, JAVA_HOME=values["java_home"], DATABASE="postgresql",
+ SPRING_PROFILES_ACTIVE="postgresql", SPRING_DATASOURCE_URL=values["database_url"],
+ SPRING_DATASOURCE_USERNAME=values["database_user"],
+ SPRING_DATASOURCE_PASSWORD=values["database_password"],
+ REGISTRY_TYPE="zookeeper", REGISTRY_ZOOKEEPER_CONNECT_STRING=values["zookeeper"],
+ DOLPHINSCHEDULER_HOME=str(Path("/etc/dolphinscheduler/ambari") / role),
+ WORKER_TENANT_AUTO_CREATE="false",
+ JAVA_OPTS="-server -Duser.timezone=UTC -Xms256m -Xmx1g -XX:+ExitOnOutOfMemoryError")
+ environment.pop("SERVER_PORT", None)
+ if role == "api-server":
+ environment["SERVER_PORT"] = str(values["api_port"])
+ script = str(home / role / "bin/start.sh")
+ os.execve("/bin/bash", ["/bin/bash", script], environment)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/runtime.py b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/runtime.py
new file mode 100644
index 0000000..847ca42
--- /dev/null
+++ b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/runtime.py
@@ -0,0 +1,307 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+"""
+
+import hashlib
+import json
+import os
+import re
+import socket
+import subprocess
+import time
+import urllib.error
+import urllib.parse
+import urllib.request
+from pathlib import Path
+
+from managed_runtime import directory, host_value, main, no_links, owned_file, path_value, port_value, reload_units, unit
+from observations import atomic_json, unit_observation
+from verified_archive import install_archive, verify_install
+
+VERSION = "3.1.9"
+SHA512 = "b09e7a11245dc9db8be8c0600857f077c4287380a676577bf3157e98ef2940ab5164d954e30596503dd0a52ab5866d5a7cd4edc88b2f04bdc3407ca441fbd764"
+URL = "https://archive.apache.org/dist/dolphinscheduler/3.1.9/apache-dolphinscheduler-3.1.9-bin.tar.gz"
+ROLES = ("master-server", "worker-server", "api-server", "alert-server")
+REQUIRED = [role + "/bin/start.sh" for role in ROLES] + [
+ "tools/bin/upgrade-schema.sh", "bin/env/dolphinscheduler_env.sh"]
+HOME = Path("/opt/ambari-mpacks/dolphinscheduler/3.1.9")
+CONF = Path("/etc/dolphinscheduler/ambari")
+DATA = Path("/var/lib/dolphinscheduler")
+DEFAULT_ADMIN_HASH = "7ad2410b2f4c074479a8937a28a22b8f"
+
+
+def settings(parameters):
+ role = parameters["component"]
+ if role not in {"server", "check"}:
+ raise ValueError("Unknown DolphinScheduler component")
+ host = host_value(parameters["server_host"])
+ assigned = host_value(parameters["hostname"])
+ if role == "server" and host != assigned:
+ raise ValueError("DolphinScheduler placement differs from the assigned host")
+ db_host = host_value(parameters["database_host"])
+ zk_host = host_value(parameters["zookeeper_host"])
+ db_port = port_value(parameters["database_port"])
+ zk_port = port_value(parameters["zookeeper_port"])
+ api_port = port_value(parameters["api_port"])
+ name, user = parameters["database_name"], parameters["database_user"]
+ if not isinstance(name, str) or not re.fullmatch(r"[a-z][a-z0-9_]{0,62}", name):
+ raise ValueError("Invalid dedicated DolphinScheduler database")
+ if not isinstance(user, str) or not re.fullmatch(r"[a-z][a-z0-9_]{0,62}", user):
+ raise ValueError("Invalid DolphinScheduler database user")
+ password, admin = parameters["database_password"], parameters["admin_password"]
+ if not isinstance(password, str) or len(password) < 12 or "\x00" in password:
+ raise ValueError("An explicit database password is required")
+ if not isinstance(admin, str) or not 12 <= len(admin) <= 20 or "\x00" in admin:
+ raise ValueError("DolphinScheduler 3.1.9 requires an explicit 12-20 character administrator password")
+ java = path_value(parameters["java_home"], ("/usr/lib/jvm/",))
+ java = path_value(str(java.resolve()), ("/usr/lib/jvm/",))
+ no_links(java)
+ release = java / "release"
+ if not release.is_file() or not (java / "bin/java").is_file():
+ raise ValueError("A supported Java runtime is required")
+ versions = re.findall(r'^JAVA_VERSION="(11|17)\.[0-9.]+"$', release.read_text(), re.MULTILINE)
+ if len(versions) != 1:
+ raise ValueError("This DolphinScheduler package supports Java 11 or 17")
+ return role, host, db_host, db_port, name, user, password, zk_host, zk_port, api_port, admin, java
+
+
+def installed():
+ return verify_install(HOME, "dolphinscheduler", VERSION, SHA512, REQUIRED)
+
+
+def database(parameters):
+ import psycopg2
+ role, host, db_host, db_port, name, user, password, zk_host, zk_port, api_port, admin, java = settings(parameters)
+ return psycopg2.connect(host=db_host, port=db_port, dbname=name, user=user,
+ password=password, connect_timeout=10)
+
+
+def schema(parameters):
+ role, host, db_host, db_port, name, user, password, zk_host, zk_port, api_port, admin, java = settings(parameters)
+ identity = {"schema_version": 1, "database_host": db_host, "database_name": name, "version": VERSION}
+ marker = DATA / "database-init.json"
+ no_links(marker)
+ connection = database(parameters)
+ try:
+ if not 140000 <= connection.server_version < 190000:
+ raise ValueError("DolphinScheduler requires PostgreSQL 14-18")
+ connection.autocommit = True
+ with connection.cursor() as cursor:
+ cursor.execute("SELECT pg_try_advisory_lock(3171909)")
+ if cursor.fetchone()[0] is not True:
+ raise RuntimeError("DolphinScheduler database initialization is already active")
+ cursor.execute("SELECT count(*) FROM information_schema.tables WHERE table_schema = current_schema()")
+ empty = cursor.fetchone()[0] == 0
+ if empty:
+ if marker.exists() and json.loads(marker.read_text()) != dict(identity, phase="PENDING"):
+ raise ValueError("Existing initialization marker belongs to another database")
+ if not marker.exists():
+ atomic_json(marker, dict(identity, phase="PENDING"))
+ environment = {key: value for key, value in os.environ.items() if key not in {"PYTHONPATH", "PYTHONHOME"}}
+ environment.update(JAVA_HOME=str(java), DATABASE="postgresql", SPRING_PROFILES_ACTIVE="postgresql",
+ SPRING_DATASOURCE_URL="jdbc:postgresql://" + db_host + ":" + str(db_port) + "/" + name,
+ SPRING_DATASOURCE_USERNAME=user, SPRING_DATASOURCE_PASSWORD=password,
+ JAVA_OPTS="-server -Duser.timezone=UTC -Xms256m -Xmx1g")
+ process = subprocess.run(["/usr/sbin/runuser", "-m", "-u", "dolphinscheduler", "--", "/bin/bash",
+ str(HOME / "tools/bin/upgrade-schema.sh")], cwd=str(DATA), env=environment,
+ stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=1800, check=False)
+ if process.returncode != 0:
+ raise RuntimeError("DolphinScheduler schema initialization failed")
+ elif not marker.exists() or any(json.loads(marker.read_text()).get(key) != value
+ for key, value in identity.items()):
+ raise ValueError("Nonempty database has no matching owned initialization marker")
+ with connection.cursor() as cursor:
+ cursor.execute("SELECT version FROM t_ds_version ORDER BY id DESC LIMIT 1")
+ version = cursor.fetchone()
+ if version != (VERSION,):
+ raise ValueError("DolphinScheduler schema version differs from the pinned release")
+ cursor.execute("SELECT id, user_password FROM t_ds_user WHERE user_name = %s", ("admin",))
+ users = cursor.fetchall()
+ if len(users) != 1 or type(users[0][0]) is not int:
+ raise ValueError("DolphinScheduler administrator identity is ambiguous")
+ desired = hashlib.md5(admin.encode("utf-8")).hexdigest()
+ if users[0][1] == DEFAULT_ADMIN_HASH:
+ cursor.execute("UPDATE t_ds_user SET user_password = %s WHERE id = %s AND user_password = %s",
+ (desired, users[0][0], DEFAULT_ADMIN_HASH))
+ if cursor.rowcount != 1:
+ raise RuntimeError("DolphinScheduler administrator password update was not observed")
+ elif users[0][1] != desired:
+ raise ValueError("Existing administrator password differs; refusing to reset it")
+ cursor.execute("SELECT user_password FROM t_ds_user WHERE id = %s", (users[0][0],))
+ if cursor.fetchone() != (desired,):
+ raise RuntimeError("DolphinScheduler administrator password was not verified")
+ atomic_json(marker, dict(identity, phase="COMPLETE"))
+ return {"database": name, "postgresql_major": connection.server_version // 10000,
+ "schema_version": VERSION, "administrator_id": users[0][0]}
+ finally:
+ connection.close()
+
+
+def install(parameters):
+ settings(parameters)
+ source = install_archive("dolphinscheduler", VERSION, parameters.get("binary_url") or URL,
+ SHA512, "apache-dolphinscheduler-3.1.9-bin", REQUIRED, maximum_archive=1024 ** 3)
+ directory(DATA, "dolphinscheduler")
+ return {"software": source, "initialization": schema(parameters)}
+
+
+def configure(parameters):
+ role, host, db_host, db_port, name, user, password, zk_host, zk_port, api_port, admin, java = settings(parameters)
+ if role != "server":
+ raise ValueError("A service check cannot configure DolphinScheduler")
+ installed()
+ for path in (CONF, DATA, DATA / "logs", DATA / "workspace"):
+ directory(path, "dolphinscheduler")
+ for component in ROLES:
+ custom = CONF / component
+ config = directory(custom / "conf", "dolphinscheduler")
+ source = HOME / component / "conf"
+ for item in source.rglob("*"):
+ relative = item.relative_to(source)
+ destination = config / relative
+ if item.is_symlink():
+ raise ValueError("Unexpected DolphinScheduler configuration link")
+ if item.is_dir():
+ directory(destination, "dolphinscheduler")
+ elif item.is_file():
+ owned_file(destination, item.read_text(), "dolphinscheduler")
+ else:
+ raise ValueError("Unsupported DolphinScheduler configuration member")
+ libraries = custom / "libs"
+ expected = HOME / component / "libs"
+ if libraries.is_symlink():
+ if libraries.resolve() != expected.resolve():
+ raise ValueError("DolphinScheduler classpath differs from its pinned archive")
+ elif libraries.exists():
+ raise ValueError("Unowned DolphinScheduler classpath exists")
+ else:
+ libraries.symlink_to(expected)
+ if component == "api-server":
+ interface = custom / "ui"
+ expected_ui = HOME / component / "ui"
+ if interface.is_symlink():
+ if interface.resolve() != expected_ui.resolve():
+ raise ValueError("DolphinScheduler UI differs from its pinned archive")
+ elif interface.exists():
+ raise ValueError("Unowned DolphinScheduler UI exists")
+ else:
+ interface.symlink_to(expected_ui)
+ runtime = {"home": str(HOME), "java_home": str(java),
+ "database_url": "jdbc:postgresql://" + db_host + ":" + str(db_port) + "/" + name,
+ "database_user": user, "database_password": password,
+ "zookeeper": zk_host + ":" + str(zk_port), "api_port": api_port}
+ owned_file(CONF / "runtime.json", json.dumps(runtime, sort_keys=True), "dolphinscheduler", 0o600)
+ owned_file(CONF / "launcher.py", Path(__file__).with_name("launcher.py").read_text(),
+ "dolphinscheduler", 0o500)
+ for component in ROLES:
+ unit("ambari-dolphinscheduler-" + component + ".service", "dolphinscheduler",
+ Path("/usr/libexec/platform-python"), {"PYTHONDONTWRITEBYTECODE": "1"}, DATA,
+ str(CONF / "launcher.py") + " " + component)
+ reload_units()
+ return {"server": host, "api_port": api_port, "database": name, "zookeeper": zk_host}
+
+
+def api(url, data=None, session=None):
+ headers = {"Accept": "application/json"}
+ if data is not None:
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
+ if session is not None:
+ headers["Cookie"] = "sessionId=" + session
+ class NoRedirect(urllib.request.HTTPRedirectHandler):
+ def redirect_request(self, *args):
+ return None
+ payload = None if data is None else urllib.parse.urlencode(data).encode()
+ request = urllib.request.Request(url, data=payload, headers=headers)
+ with urllib.request.build_opener(NoRedirect()).open(request, timeout=15) as response:
+ body = response.read(1024 * 1024 + 1)
+ if response.status != 200 or len(body) > 1024 * 1024:
+ raise ValueError("Invalid bounded DolphinScheduler API response")
+ value = json.loads(body)
+ if not isinstance(value, dict) or type(value.get("code")) is not int or value["code"] != 0:
+ raise ValueError("DolphinScheduler API operation did not succeed")
+ return value.get("data")
+
+
+def registry_rows(value, expected):
+ if not isinstance(value, list) or len(value) != 1 or not isinstance(value[0], dict):
+ raise ValueError("DolphinScheduler registry role is missing or ambiguous")
+ host = value[0].get("host")
+ addresses = {expected}
+ addresses.update(item[4][0] for item in socket.getaddrinfo(expected, None, family=socket.AF_INET))
+ if host not in addresses or type(value[0].get("port")) is not int or value[0]["port"] <= 0:
+ raise ValueError("DolphinScheduler registry identity differs from the assigned host")
+ return {"host": host, "port": value[0]["port"]}
+
+
+def check(parameters):
+ role, host, db_host, db_port, name, user, password, zk_host, zk_port, api_port, admin, java = settings(parameters)
+ installed()
+ for component in ROLES:
+ observed = unit_observation("ambari-dolphinscheduler-" + component + ".service")
+ if observed["active_state"] != "active":
+ raise RuntimeError("A DolphinScheduler subsystem is not active")
+ base = "http://" + host + ":" + str(api_port) + "/dolphinscheduler"
+ deadline = time.monotonic() + 120
+ while True:
+ try:
+ login = api(base + "/login", {"userName": "admin", "userPassword": admin})
+ if not isinstance(login, dict) or not isinstance(login.get("sessionId"), str) or not login["sessionId"]:
+ raise ValueError("DolphinScheduler login has no session identity")
+ session = login["sessionId"]
+ if not re.fullmatch(r"[A-Za-z0-9_-]{16,128}", session):
+ raise ValueError("DolphinScheduler returned an invalid session identity")
+ master_rows = api(base + "/monitor/masters", session=session)
+ worker_rows = api(base + "/monitor/workers", session=session)
+ if master_rows and worker_rows:
+ masters = registry_rows(master_rows, host)
+ workers = registry_rows(worker_rows, host)
+ return {"api_host": host, "api_port": api_port, "masters": [masters],
+ "workers": [workers], "database": name}
+ if master_rows != [] and worker_rows != []:
+ raise ValueError("DolphinScheduler registry response is invalid")
+ except urllib.error.HTTPError:
+ raise
+ except urllib.error.URLError:
+ pass
+ if time.monotonic() >= deadline:
+ raise RuntimeError("DolphinScheduler API or registry remains unresolved")
+ time.sleep(3)
+
+
+def execute(request):
+ parameters, action = request["parameters"], request["action"]
+ role, host, db_host, db_port, name, user, password, zk_host, zk_port, api_port, admin, java = settings(parameters)
+ if action == "install":
+ return install(parameters)
+ if action == "version":
+ return {"software": installed()}
+ if action == "configure":
+ return {"configuration": configure(parameters)}
+ if action == "check":
+ return {"cluster": check(parameters)}
+ if role != "server" or action not in {"start", "stop", "status"}:
+ raise ValueError("Unsupported DolphinScheduler action")
+ sequence = ROLES if action != "stop" else tuple(reversed(ROLES))
+ observations = []
+ for component in sequence:
+ observed = unit_observation("ambari-dolphinscheduler-" + component + ".service",
+ None if action == "status" else action)
+ if action == "status" and observed["active_state"] != "active":
+ raise RuntimeError("DolphinScheduler component is not active")
+ observations.append(observed)
+ return {"systemd": observations}
+
+
+if __name__ == "__main__":
+ main(execute)
diff --git a/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/server.py b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/server.py
new file mode 100644
index 0000000..eaf91b3
--- /dev/null
+++ b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/server.py
@@ -0,0 +1,26 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+"""
+
+from managed_service_v2 import ManagedServiceV2
+
+
+class Server(ManagedServiceV2):
+ service = "dolphinscheduler"
+ component = "server"
+ topology_fields = {"server_host": ("dolphinscheduler_server_hosts", True, False)}
+
+
+if __name__ == "__main__":
+ Server().execute()
diff --git a/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/service_check.py b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/service_check.py
new file mode 100644
index 0000000..ef4a5ce
--- /dev/null
+++ b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/service_check.py
@@ -0,0 +1,26 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+"""
+
+from managed_service_v2 import ManagedServiceV2
+
+
+class Check(ManagedServiceV2):
+ service = "dolphinscheduler"
+ component = "check"
+ topology_fields = {"server_host": ("dolphinscheduler_server_hosts", True, False)}
+
+
+if __name__ == "__main__":
+ Check().execute()
diff --git a/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/quicklinks/quicklinks.json b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/quicklinks/quicklinks.json
new file mode 100644
index 0000000..3e72224
--- /dev/null
+++ b/mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/quicklinks/quicklinks.json
@@ -0,0 +1,10 @@
+{
+ "$comment": "Licensed to the Apache Software Foundation (ASF) under one or more\ncontributor license agreements. See the NOTICE file distributed with\nthis work for additional information regarding copyright ownership.\nThe ASF licenses this file to You under the Apache License, Version 2.0\n(the \"License\"); you may not use this file except in compliance with\nthe License. You may obtain a copy of the License at\nhttp://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicab [...]
+ "name": "default", "description": "DolphinScheduler user interface",
+ "configuration": {"protocol": {"type": "http"},
+ "links": [{"name": "dolphinscheduler", "label": "DolphinScheduler UI",
+ "requires_user_name": "false", "component_name": "DOLPHINSCHEDULER_SERVER",
+ "url": "%@://%@:%@/dolphinscheduler/ui",
+ "port": {"http_property": "api_port", "http_default_port": "12345",
+ "regex": "^(\\d+)$", "site": "dolphinscheduler-env"}}]}
+}
diff --git a/mpacks/dolphinscheduler/mpack.json b/mpacks/dolphinscheduler/mpack.json
new file mode 100644
index 0000000..1dc69ea
--- /dev/null
+++ b/mpacks/dolphinscheduler/mpack.json
@@ -0,0 +1,10 @@
+{
+ "$comment": "Licensed to the Apache Software Foundation (ASF) under one or more\ncontributor license agreements. See the NOTICE file distributed with\nthis work for additional information regarding copyright ownership.\nThe ASF licenses this file to You under the Apache License, Version 2.0\n(the \"License\"); you may not use this file except in compliance with\nthe License. You may obtain a copy of the License at\nhttp://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicab [...]
+ "schema_version": 1,
+ "type": "full-release",
+ "name": "dolphinscheduler",
+ "version": "1.0.0.3",
+ "description": "DolphinScheduler 3.1.9 persistent pseudo-cluster on BIGTOP",
+ "artifacts": [{"name": "dolphinscheduler-definitions", "type": "extension-definitions", "source_dir": "extensions"}],
+ "dependencies": []
+}
diff --git a/mpacks/dolphinscheduler/shared-files.json b/mpacks/dolphinscheduler/shared-files.json
new file mode 100644
index 0000000..135a6cc
--- /dev/null
+++ b/mpacks/dolphinscheduler/shared-files.json
@@ -0,0 +1,12 @@
+{
+ "$comment": "Licensed to the Apache Software Foundation (ASF) under one or more\ncontributor license agreements. See the NOTICE file distributed with\nthis work for additional information regarding copyright ownership.\nThe ASF licenses this file to You under the Apache License, Version 2.0\n(the \"License\"); you may not use this file except in compliance with\nthe License. You may obtain a copy of the License at\nhttp://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicab [...]
+ "schema_version": 1,
+ "files": [
+ {"source": "shared/observations.py", "target": "extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/observations.py", "digest": "8fb22532d4012faf25c2f38a56bbd713738016716fa6c0606fb56b46ce194a99"},
+ {"source": "shared/managed_runtime.py", "target": "extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/managed_runtime.py", "digest": "542098b830a0580c4f699c80be9ce1133017edfd0620d629f1691c988fdfaab0"},
+ {"source": "shared/managed_service.py", "target": "extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/managed_service.py", "digest": "8b3338e0b6a895cfb3205e2053aa05e9f7e7e2a56f559417e8a9873ad132ff41"},
+ {"source": "shared/managed_service_v2.py", "target": "extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/managed_service_v2.py", "digest": "b561538a70028de8c83d1ced93e4dc6f006ed99c1b4cd28a603aa610a971c5eb"},
+ {"source": "shared/managed_topology.py", "target": "extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/managed_topology.py", "digest": "cd9ca507841e3b4c6f6e623f866e79e2fce83e818b1edecb0f8cc6c4a8185f43"},
+ {"source": "shared/verified_archive.py", "target": "extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/verified_archive.py", "digest": "f02828b595e5b4614be24f88d102ee0f02f7563a65fe8c79e7fa13c9ff2ea2ab"}
+ ]
+}
diff --git a/mpacks/dolphinscheduler/source.json b/mpacks/dolphinscheduler/source.json
new file mode 100644
index 0000000..3a90edf
--- /dev/null
+++ b/mpacks/dolphinscheduler/source.json
@@ -0,0 +1,13 @@
+{
+ "$comment": "Licensed to the Apache Software Foundation (ASF) under one or more\ncontributor license agreements. See the NOTICE file distributed with\nthis work for additional information regarding copyright ownership.\nThe ASF licenses this file to You under the Apache License, Version 2.0\n(the \"License\"); you may not use this file except in compliance with\nthe License. You may obtain a copy of the License at\nhttp://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicab [...]
+ "schema_version": 1,
+ "software_version": "3.1.9",
+ "source_tag": "3.1.9",
+ "source_commit": "400ed9147a3fd89c361e1c2bd53c94cb1e5c9b65",
+ "binary": {
+ "url": "https://archive.apache.org/dist/dolphinscheduler/3.1.9/apache-dolphinscheduler-3.1.9-bin.tar.gz",
+ "sha512": "b09e7a11245dc9db8be8c0600857f077c4287380a676577bf3157e98ef2940ab5164d954e30596503dd0a52ab5866d5a7cd4edc88b2f04bdc3407ca441fbd764"
+ },
+ "topology": "SINGLE_HOST_EXTERNAL_POSTGRESQL_ZOOKEEPER",
+ "validation_status": "IMPLEMENTED_PENDING_ACCEPTANCE"
+}
diff --git a/tests/test_dolphinscheduler.py b/tests/test_dolphinscheduler.py
new file mode 100644
index 0000000..72e89ef
--- /dev/null
+++ b/tests/test_dolphinscheduler.py
@@ -0,0 +1,143 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+"""
+
+import hashlib
+import importlib.util
+import json
+import sys
+import tempfile
+import unittest
+import urllib.error
+from pathlib import Path
+from types import SimpleNamespace
+from unittest.mock import MagicMock, patch
+
+ROOT = Path(__file__).resolve().parents[1]
+sys.path.insert(0, str(ROOT / "shared"))
+PATH = ROOT / "mpacks/dolphinscheduler/extensions/DOLPHINSCHEDULER/1.0/services/DOLPHINSCHEDULER/package/scripts/runtime.py"
+spec = importlib.util.spec_from_file_location("dolphinscheduler_runtime_test", str(PATH))
+ds = importlib.util.module_from_spec(spec)
+spec.loader.exec_module(ds)
+
+
+def parameters():
+ return {"component": "server", "hostname": "scheduler.test", "server_host": "scheduler.test",
+ "api_port": "12345", "database_host": "database.test", "database_port": "5432",
+ "database_name": "dolphinscheduler", "database_user": "scheduler",
+ "database_password": "private-db-test-secret", "zookeeper_host": "zookeeper.test",
+ "zookeeper_port": "2181", "admin_password": "admin-test-secret", "java_home": "/usr/lib/jvm/test"}
+
+
+class DolphinSchedulerTests(unittest.TestCase):
+ def test_launcher_overrides_only_the_api_http_port(self):
+ launcher_path = PATH.with_name("launcher.py")
+ launcher_spec = importlib.util.spec_from_file_location("ds_launcher_test", str(launcher_path))
+ launcher = importlib.util.module_from_spec(launcher_spec)
+ launcher_spec.loader.exec_module(launcher)
+ runtime = {"home": "/opt/dolphinscheduler", "java_home": "/usr/lib/jvm/java-17-openjdk",
+ "database_url": "jdbc:postgresql://db.test/ds", "database_user": "ds",
+ "database_password": "private-test-secret", "zookeeper": "zk.test:2181", "api_port": 12345}
+ for role in launcher.ROLES:
+ with self.subTest(role=role), patch.object(launcher.sys, "argv", ["launcher.py", role]), patch.object(
+ launcher.Path, "read_text", return_value=json.dumps(runtime)), patch.dict(
+ launcher.os.environ, {"SERVER_PORT": "9999"}), patch.object(launcher.os, "execve") as execute:
+ launcher.main()
+ environment = execute.call_args.args[2]
+ if role == "api-server":
+ self.assertEqual(environment["SERVER_PORT"], "12345")
+ else:
+ self.assertNotIn("SERVER_PORT", environment)
+
+ def test_settings_rejects_default_or_ambiguous_inputs(self):
+ with tempfile.TemporaryDirectory() as temporary:
+ java = Path(temporary).resolve()
+ (java / "bin").mkdir()
+ (java / "bin/java").touch()
+ (java / "release").write_text('JAVA_VERSION="11.0.24"\n')
+ with patch.object(ds, "path_value", return_value=java):
+ self.assertEqual(ds.settings(parameters())[1], "scheduler.test")
+ for change in ({"admin_password": "short"}, {"database_password": "short"},
+ {"server_host": "foreign.test"}, {"api_port": "0"},
+ {"database_name": "other;drop"}):
+ with self.subTest(change=change), self.assertRaises(ValueError):
+ ds.settings(dict(parameters(), **change))
+
+ def test_registry_requires_one_exact_host_and_typed_port(self):
+ with patch.object(ds.socket, "getaddrinfo", return_value=[(None, None, None, None, ("192.0.2.10", 0))]):
+ self.assertEqual(ds.registry_rows([{"host": "192.0.2.10", "port": 1234}], "scheduler.test")["port"], 1234)
+ for rows in ([], [{"host": "foreign.test", "port": 1234}],
+ [{"host": "scheduler.test", "port": True}],
+ [{"host": "scheduler.test", "port": 1234}] * 2):
+ with self.subTest(rows=rows), self.assertRaises(ValueError):
+ ds.registry_rows(rows, "scheduler.test")
+
+ def test_fresh_database_initialization_requires_schema_and_admin_row(self):
+ with tempfile.TemporaryDirectory() as temporary:
+ root = Path(temporary).resolve()
+ connection = MagicMock(server_version=180000)
+ cursor = connection.cursor.return_value.__enter__.return_value
+ desired = hashlib.md5(parameters()["admin_password"].encode()).hexdigest()
+ cursor.fetchone.side_effect = [(True,), (0,), (ds.VERSION,), (desired,)]
+ cursor.fetchall.return_value = [(1, ds.DEFAULT_ADMIN_HASH)]
+ cursor.rowcount = 1
+ with patch.object(ds, "DATA", root), patch.object(ds, "settings", return_value=(
+ "server", "scheduler.test", "database.test", 5432, "dolphinscheduler", "scheduler",
+ "private-db-test-secret", "zookeeper.test", 2181, 12345, "admin-test-secret",
+ Path("/usr/lib/jvm/java-11-openjdk"))), patch.dict(
+ sys.modules, {"psycopg2": SimpleNamespace(connect=lambda **_: connection)}), patch.object(
+ ds.subprocess, "run", return_value=SimpleNamespace(returncode=0)):
+ observed = ds.schema(parameters())
+ self.assertEqual(observed["schema_version"], "3.1.9")
+ self.assertEqual(json.loads((root / "database-init.json").read_text())["phase"], "COMPLETE")
+ self.assertEqual(cursor.execute.call_count, 6)
+ connection.close.assert_called_once()
+
+ def test_nonempty_foreign_database_is_not_adopted(self):
+ with tempfile.TemporaryDirectory() as temporary:
+ connection = MagicMock(server_version=180000)
+ connection.cursor.return_value.__enter__.return_value.fetchone.side_effect = [(True,), (1,)]
+ with patch.object(ds, "DATA", Path(temporary).resolve()), patch.object(ds, "database", return_value=connection), patch.object(
+ ds, "settings", return_value=("server", "scheduler.test", "database.test", 5432,
+ "dolphinscheduler", "scheduler", "private-db-test-secret", "zookeeper.test", 2181,
+ 12345, "admin-test-secret", Path("/usr/lib/jvm/java-11-openjdk"))), patch.object(
+ ds.subprocess, "run") as run, self.assertRaises(ValueError):
+ ds.schema(parameters())
+ run.assert_not_called()
+
+ def test_check_waits_for_registration_but_not_denied_login(self):
+ settings = ("check", "scheduler.test", "database.test", 5432, "dolphinscheduler", "scheduler",
+ "private-db-test-secret", "zookeeper.test", 2181, 12345, "admin-test-secret",
+ Path("/usr/lib/jvm/java-11-openjdk"))
+ session = {"sessionId": "12345678123442348234123456789abc"}
+ with patch.object(ds, "settings", return_value=settings), patch.object(ds, "installed"), patch.object(
+ ds, "unit_observation", return_value={"active_state": "active"}), patch.object(
+ ds, "api", side_effect=[urllib.error.URLError("not listening"), session, [], [], session,
+ [{"host": "scheduler.test", "port": 5678}],
+ [{"host": "scheduler.test", "port": 1234}]]), patch.object(
+ ds, "registry_rows", side_effect=[{"host": "scheduler.test", "port": 5678},
+ {"host": "scheduler.test", "port": 1234}]), patch.object(
+ ds.time, "sleep"):
+ self.assertEqual(ds.check(parameters())["workers"][0]["port"], 1234)
+ denied = urllib.error.HTTPError("http://scheduler.test/login", 401, "Denied", {}, None)
+ with patch.object(ds, "settings", return_value=settings), patch.object(ds, "installed"), patch.object(
+ ds, "unit_observation", return_value={"active_state": "active"}), patch.object(
+ ds, "api", side_effect=denied), patch.object(ds.time, "sleep") as sleep, self.assertRaises(
+ urllib.error.HTTPError):
+ ds.check(parameters())
+ sleep.assert_not_called()
+
+
+if __name__ == "__main__":
+ unittest.main()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org