From 3271fa9462d1cf520b4bd4588acfe98b3b42cd94 Mon Sep 17 00:00:00 2001 From: zrain <2296342883@qq.com> Date: Mon, 5 Aug 2024 08:57:18 +0800 Subject: [PATCH] AMBARI-26100: Fix all python script file to python3 (#3799) * fix: python script file to python3 --- ambari-agent/conf/unix/agent-multiplier.py | 1 + ambari-agent/conf/unix/upgrade_agent_configs.py | 4 ++-- ambari-agent/conf/windows/service_wrapper.py | 1 + ambari-agent/src/main/python/ambari_agent/ActionQueue.py | 1 + ambari-agent/src/main/python/ambari_agent/AgentException.py | 1 + .../python/ambari_agent/BackgroundCommandExecutionHandle.py | 1 + ambari-agent/src/main/python/ambari_agent/ClusterCache.py | 1 - .../main/python/ambari_agent/CommandHooksOrchestrator.py | 1 + .../src/main/python/ambari_agent/ComponentStatusExecutor.py | 1 + .../main/python/ambari_agent/ComponentVersionReporter.py | 1 + ambari-agent/src/main/python/ambari_agent/ExitHelper.py | 1 - ambari-agent/src/main/python/ambari_agent/Facter.py | 1 - ambari-agent/src/main/python/ambari_agent/Grep.py | 1 + .../src/main/python/ambari_agent/HostStatusReporter.py | 1 + ambari-agent/src/main/python/ambari_agent/NetUtil.py | 1 + .../src/main/python/ambari_agent/RecoveryManager.py | 1 + .../src/main/python/ambari_agent/RemoteDebugUtils.py | 1 - .../src/main/python/ambari_agent/StaleAlertsMonitor.py | 1 - ambari-agent/src/main/python/ambari_agent/Utils.py | 1 - .../src/main/python/ambari_agent/alerts/__init__.py | 1 + .../src/main/python/ambari_agent/alerts/collector.py | 6 +----- .../src/main/python/ambari_agent/apscheduler/__init__.py | 1 + .../src/main/python/ambari_agent/apscheduler/events.py | 1 + .../src/main/python/ambari_agent/apscheduler/job.py | 1 + .../python/ambari_agent/apscheduler/jobstores/__init__.py | 1 + .../main/python/ambari_agent/apscheduler/jobstores/base.py | 1 + .../ambari_agent/apscheduler/jobstores/mongodb_store.py | 1 + .../python/ambari_agent/apscheduler/jobstores/ram_store.py | 1 + .../ambari_agent/apscheduler/jobstores/redis_store.py | 1 + .../ambari_agent/apscheduler/jobstores/shelve_store.py | 1 + .../ambari_agent/apscheduler/jobstores/sqlalchemy_store.py | 1 + .../src/main/python/ambari_agent/apscheduler/scheduler.py | 1 + .../src/main/python/ambari_agent/apscheduler/threadpool.py | 1 + .../python/ambari_agent/apscheduler/triggers/__init__.py | 1 + .../ambari_agent/apscheduler/triggers/cron/__init__.py | 1 + .../ambari_agent/apscheduler/triggers/cron/expressions.py | 1 + .../python/ambari_agent/apscheduler/triggers/cron/fields.py | 1 + .../python/ambari_agent/apscheduler/triggers/interval.py | 1 + .../main/python/ambari_agent/apscheduler/triggers/simple.py | 1 + .../src/main/python/ambari_agent/apscheduler/util.py | 1 + ambari-agent/src/main/python/ambari_agent/debug.py | 4 +--- .../python/ambari_agent/listeners/CommandsEventListener.py | 1 - .../ambari_agent/listeners/ConfigurationEventListener.py | 1 - .../ambari_agent/listeners/HostLevelParamsEventListener.py | 1 - .../python/ambari_agent/listeners/MetadataEventListener.py | 1 - .../python/ambari_agent/listeners/TopologyEventListener.py | 1 - .../src/main/python/ambari_agent/models/__init__.py | 1 + .../src/main/python/ambari_agent/models/commands.py | 1 + ambari-agent/src/main/python/ambari_agent/models/hooks.py | 1 + ambari-agent/src/main/python/setup.py | 1 + .../src/test/python/ambari_agent/BaseStompServerTestCase.py | 1 - .../python/ambari_agent/TestCommandHooksOrchestrator.py | 1 + .../src/test/python/ambari_agent/TestKerberosCommon.py | 1 - ambari-agent/src/test/python/ambari_agent/TestMain.py | 1 - .../test/python/resource_management/TestContentSources.py | 1 + .../python/resource_management/TestDataStructureUtils.py | 1 + .../test/python/resource_management/TestDatanodeHelper.py | 1 + .../python/resource_management/TestDirectoryResource.py | 1 + .../src/test/python/resource_management/TestEncryption.py | 1 + .../python/resource_management/TestExecuteHadoopResource.py | 1 + .../test/python/resource_management/TestExecuteResource.py | 1 + .../python/resource_management/TestFcntlBasedProcessLock.py | 1 + .../src/test/python/resource_management/TestFileResource.py | 1 + .../src/test/python/resource_management/TestFileSystem.py | 1 + .../test/python/resource_management/TestGetPathFromUrl.py | 1 + .../test/python/resource_management/TestGroupResource.py | 1 + .../test/python/resource_management/TestLibraryFunctions.py | 1 + .../src/test/python/resource_management/TestLinkResource.py | 1 + .../resource_management/TestMonitorWebserverResource.py | 1 + .../test/python/resource_management/TestPackageResource.py | 1 + .../python/resource_management/TestRepositoryResource.py | 1 + .../test/python/resource_management/TestSecurityCommons.py | 1 + .../test/python/resource_management/TestServiceResource.py | 1 + .../src/test/python/resource_management/TestTarArchive.py | 1 + .../resource_management/TestTemplateConfigResource.py | 1 + .../src/test/python/resource_management/TestUserResource.py | 1 + .../src/test/python/resource_management/TestUtils.py | 1 + ambari-agent/src/test/python/unitTests.py | 2 +- .../src/main/python/ambari_commons/ambari_service.py | 1 + .../src/main/python/ambari_commons/buffered_queue.py | 1 + .../main/python/ambari_commons/kerberos/kerberos_common.py | 1 + .../src/main/python/ambari_commons/kerberos/utils.py | 1 + .../src/main/python/ambari_commons/libs/__init__.py | 1 - .../src/main/python/ambari_commons/libs/ppc64le/__init__.py | 1 - .../src/main/python/ambari_commons/libs/x86_64/__init__.py | 1 - .../src/main/python/ambari_commons/os_family_impl.py | 1 + ambari-common/src/main/python/ambari_commons/os_linux.py | 1 - ambari-common/src/main/python/ambari_commons/os_utils.py | 1 - ambari-common/src/main/python/ambari_commons/os_windows.py | 3 +-- .../src/main/python/ambari_commons/parallel_processing.py | 1 - .../src/main/python/ambari_commons/repo_manager/__init__.py | 1 + .../main/python/ambari_commons/repo_manager/apt_manager.py | 1 + .../main/python/ambari_commons/repo_manager/apt_parser.py | 1 + .../python/ambari_commons/repo_manager/choco_manager.py | 1 + .../python/ambari_commons/repo_manager/generic_manager.py | 1 + .../python/ambari_commons/repo_manager/generic_parser.py | 1 + .../ambari_commons/repo_manager/repo_manager_helper.py | 1 + .../main/python/ambari_commons/repo_manager/yum_manager.py | 1 + .../main/python/ambari_commons/repo_manager/yum_parser.py | 1 + .../python/ambari_commons/repo_manager/zypper_manager.py | 1 + .../python/ambari_commons/repo_manager/zypper_parser.py | 1 + ambari-common/src/main/python/ambari_commons/shell.py | 3 +-- .../src/main/python/ambari_commons/unicode_tolerant_fs.py | 1 + ambari-common/src/main/python/ambari_commons/xml_utils.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/__init__.py | 1 + .../ambari_jinja2/ambari_jinja2/_markupsafe/__init__.py | 1 + .../ambari_jinja2/ambari_jinja2/_markupsafe/_bundle.py | 1 + .../ambari_jinja2/ambari_jinja2/_markupsafe/_constants.py | 1 + .../ambari_jinja2/ambari_jinja2/_markupsafe/_native.py | 1 + .../python/ambari_jinja2/ambari_jinja2/_markupsafe/tests.py | 1 + .../main/python/ambari_jinja2/ambari_jinja2/_stringdefs.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/bccache.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/compiler.py | 1 + .../main/python/ambari_jinja2/ambari_jinja2/constants.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/debug.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/defaults.py | 1 + .../main/python/ambari_jinja2/ambari_jinja2/environment.py | 1 + .../main/python/ambari_jinja2/ambari_jinja2/exceptions.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/ext.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/filters.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/lexer.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/loaders.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/meta.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/nodes.py | 1 + .../main/python/ambari_jinja2/ambari_jinja2/optimizer.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/parser.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/runtime.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/sandbox.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/tests.py | 1 + .../ambari_jinja2/ambari_jinja2/testsuite/__init__.py | 1 + .../python/ambari_jinja2/ambari_jinja2/testsuite/api.py | 1 + .../ambari_jinja2/ambari_jinja2/testsuite/core_tags.py | 1 + .../python/ambari_jinja2/ambari_jinja2/testsuite/debug.py | 1 + .../ambari_jinja2/ambari_jinja2/testsuite/doctests.py | 1 + .../python/ambari_jinja2/ambari_jinja2/testsuite/ext.py | 1 + .../python/ambari_jinja2/ambari_jinja2/testsuite/filters.py | 1 + .../python/ambari_jinja2/ambari_jinja2/testsuite/imports.py | 1 + .../ambari_jinja2/ambari_jinja2/testsuite/inheritance.py | 1 + .../ambari_jinja2/ambari_jinja2/testsuite/lexnparse.py | 1 + .../python/ambari_jinja2/ambari_jinja2/testsuite/loader.py | 1 + .../ambari_jinja2/ambari_jinja2/testsuite/regression.py | 1 + .../ambari_jinja2/ambari_jinja2/testsuite/security.py | 1 + .../python/ambari_jinja2/ambari_jinja2/testsuite/tests.py | 1 + .../python/ambari_jinja2/ambari_jinja2/testsuite/utils.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/utils.py | 1 + .../src/main/python/ambari_jinja2/ambari_jinja2/visitor.py | 1 + .../python/ambari_jinja2/custom_fixers/fix_alt_unicode.py | 1 + .../ambari_jinja2/custom_fixers/fix_broken_reraising.py | 1 + .../main/python/ambari_jinja2/custom_fixers/fix_xrange2.py | 1 + .../src/main/python/ambari_jinja2/docs/cache_extension.py | 1 + ambari-common/src/main/python/ambari_jinja2/docs/conf.py | 1 + .../src/main/python/ambari_jinja2/docs/jinjaext.py | 1 + .../src/main/python/ambari_jinja2/examples/basic/cycle.py | 1 + .../main/python/ambari_jinja2/examples/basic/debugger.py | 1 + .../main/python/ambari_jinja2/examples/basic/inheritance.py | 1 + .../src/main/python/ambari_jinja2/examples/basic/test.py | 1 + .../examples/basic/test_filter_and_linestatements.py | 1 + .../python/ambari_jinja2/examples/basic/test_loop_filter.py | 1 + .../main/python/ambari_jinja2/examples/basic/translate.py | 1 + .../src/main/python/ambari_jinja2/examples/bench.py | 1 + .../src/main/python/ambari_jinja2/examples/profile.py | 1 + .../main/python/ambari_jinja2/examples/rwbench/djangoext.py | 1 + .../main/python/ambari_jinja2/examples/rwbench/rwbench.py | 1 + .../python/ambari_jinja2/ext/django2jinja/django2jinja.py | 1 + .../main/python/ambari_jinja2/ext/django2jinja/example.py | 1 + .../src/main/python/ambari_jinja2/ext/djangojinja2.py | 1 + .../src/main/python/ambari_jinja2/ext/inlinegettext.py | 1 + ambari-common/src/main/python/ambari_jinja2/setup.py | 1 + ambari-common/src/main/python/ambari_pbkdf2/__init__.py | 1 + ambari-common/src/main/python/ambari_pbkdf2/pbkdf2.py | 2 +- ambari-common/src/main/python/ambari_pyaes/__init__.py | 1 + ambari-common/src/main/python/ambari_pyaes/aes.py | 1 + ambari-common/src/main/python/ambari_pyaes/blockfeeder.py | 1 + ambari-common/src/main/python/ambari_pyaes/util.py | 1 + ambari-common/src/main/python/ambari_simplejson/__init__.py | 1 + .../src/main/python/ambari_simplejson/_speedups/__init__.py | 1 + .../python/ambari_simplejson/_speedups/posix/__init__.py | 1 + .../ambari_simplejson/_speedups/posix/usc2/__init__.py | 1 + .../ambari_simplejson/_speedups/posix/usc4/__init__.py | 1 + .../main/python/ambari_simplejson/_speedups/ppc/__init__.py | 1 + .../main/python/ambari_simplejson/_speedups/win/__init__.py | 1 + .../src/main/python/ambari_simplejson/c_extension.py | 1 + ambari-common/src/main/python/ambari_simplejson/compat.py | 1 + ambari-common/src/main/python/ambari_simplejson/decoder.py | 1 + ambari-common/src/main/python/ambari_simplejson/encoder.py | 1 + ambari-common/src/main/python/ambari_simplejson/errors.py | 1 + .../src/main/python/ambari_simplejson/ordered_dict.py | 1 + ambari-common/src/main/python/ambari_simplejson/raw_json.py | 1 + ambari-common/src/main/python/ambari_simplejson/scanner.py | 1 + ambari-common/src/main/python/ambari_stomp/__init__.py | 1 + ambari-common/src/main/python/ambari_stomp/__main__.py | 1 + .../src/main/python/ambari_stomp/adapter/__init__.py | 1 + .../src/main/python/ambari_stomp/adapter/multicast.py | 1 + .../src/main/python/ambari_stomp/adapter/websocket.py | 1 + ambari-common/src/main/python/ambari_stomp/backward.py | 1 + ambari-common/src/main/python/ambari_stomp/backward2.py | 1 + ambari-common/src/main/python/ambari_stomp/backward3.py | 1 + ambari-common/src/main/python/ambari_stomp/backwardsock.py | 1 + .../src/main/python/ambari_stomp/backwardsock25.py | 1 + .../src/main/python/ambari_stomp/backwardsock26.py | 1 + ambari-common/src/main/python/ambari_stomp/colors.py | 1 + ambari-common/src/main/python/ambari_stomp/connect.py | 1 + ambari-common/src/main/python/ambari_stomp/constants.py | 1 + ambari-common/src/main/python/ambari_stomp/exception.py | 1 + ambari-common/src/main/python/ambari_stomp/listener.py | 1 + ambari-common/src/main/python/ambari_stomp/protocol.py | 1 + ambari-common/src/main/python/ambari_stomp/transport.py | 1 + ambari-common/src/main/python/ambari_stomp/utils.py | 1 + ambari-common/src/main/python/ambari_ws4py/__init__.py | 1 + .../src/main/python/ambari_ws4py/client/__init__.py | 1 + .../src/main/python/ambari_ws4py/client/geventclient.py | 1 + .../src/main/python/ambari_ws4py/client/threadedclient.py | 1 + .../src/main/python/ambari_ws4py/client/tornadoclient.py | 1 + ambari-common/src/main/python/ambari_ws4py/compat.py | 1 + ambari-common/src/main/python/ambari_ws4py/exc.py | 1 + ambari-common/src/main/python/ambari_ws4py/framing.py | 1 + ambari-common/src/main/python/ambari_ws4py/manager.py | 1 + ambari-common/src/main/python/ambari_ws4py/messaging.py | 1 + .../src/main/python/ambari_ws4py/server/__init__.py | 1 + .../src/main/python/ambari_ws4py/server/cherrypyserver.py | 1 + .../src/main/python/ambari_ws4py/server/geventserver.py | 1 + .../src/main/python/ambari_ws4py/server/wsgirefserver.py | 1 + .../src/main/python/ambari_ws4py/server/wsgiutils.py | 1 + ambari-common/src/main/python/ambari_ws4py/streaming.py | 1 + ambari-common/src/main/python/ambari_ws4py/utf8validator.py | 1 + ambari-common/src/main/python/ambari_ws4py/websocket.py | 1 + .../src/main/python/pluggable_stack_definition/__init__.py | 1 + .../python/resource_management/core/providers/packaging.py | 1 + .../resource_management/core/providers/windows/__init__.py | 1 + .../resource_management/core/providers/windows/service.py | 1 + .../resource_management/core/providers/windows/system.py | 1 + .../resource_management/core/resources/jcepolicyinfo.py | 1 + .../src/main/python/resource_management/core/sudo.py | 1 + .../resource_management/libraries/functions/constants.py | 1 - .../libraries/functions/format_jvm_option.py | 3 +-- .../libraries/functions/install_jdbc_driver.py | 1 + .../libraries/functions/install_windows_msi.py | 1 + .../libraries/functions/module_version.py | 1 + .../libraries/functions/mpack_version.py | 1 + .../libraries/functions/reload_windows_env.py | 1 + .../libraries/functions/repository_util.py | 1 + .../libraries/functions/security_commons.py | 1 + .../functions/simulate_perf_cluster_alert_behaviour.py | 1 - .../libraries/functions/solr_cloud_util.py | 1 + .../resource_management/libraries/functions/stack_tools.py | 1 - .../libraries/functions/windows_service_utils.py | 1 + .../libraries/providers/hdfs_resource.py | 1 + .../python/resource_management/libraries/providers/msi.py | 1 + .../libraries/resources/hdfs_resource.py | 2 +- .../python/resource_management/libraries/resources/msi.py | 1 + .../python/resource_management/libraries/script/dummy.py | 1 + .../python/resource_management/libraries/script/hook.py | 1 - .../src/main/python/urlinfo_processor/urlinfo_processor.py | 1 - ambari-common/src/test/python/coilmq/__init__.py | 1 + ambari-common/src/test/python/coilmq/auth/__init__.py | 1 + ambari-common/src/test/python/coilmq/auth/simple.py | 1 + ambari-common/src/test/python/coilmq/config/__init__.py | 1 + ambari-common/src/test/python/coilmq/engine.py | 6 ++---- ambari-common/src/test/python/coilmq/exception.py | 1 + ambari-common/src/test/python/coilmq/protocol/__init__.py | 1 + ambari-common/src/test/python/coilmq/queue.py | 1 + ambari-common/src/test/python/coilmq/scheduler.py | 1 + ambari-common/src/test/python/coilmq/server/__init__.py | 1 + .../src/test/python/coilmq/server/socket_server.py | 1 + ambari-common/src/test/python/coilmq/start.py | 2 +- ambari-common/src/test/python/coilmq/store/__init__.py | 1 + ambari-common/src/test/python/coilmq/store/dbm.py | 1 + ambari-common/src/test/python/coilmq/store/memory.py | 1 + ambari-common/src/test/python/coilmq/store/rds.py | 1 + ambari-common/src/test/python/coilmq/store/sa/__init__.py | 1 + ambari-common/src/test/python/coilmq/store/sa/meta.py | 1 + ambari-common/src/test/python/coilmq/store/sa/model.py | 1 + ambari-common/src/test/python/coilmq/topic.py | 1 + ambari-common/src/test/python/coilmq/util/__init__.py | 1 + ambari-common/src/test/python/coilmq/util/concurrency.py | 1 + ambari-common/src/test/python/coilmq/util/frames.py | 1 + ambari-common/src/test/python/coilmq/util/six.py | 1 + ambari-common/src/test/python/mock/__init__.py | 1 + ambari-common/src/test/python/mock/docs/conf.py | 1 + ambari-common/src/test/python/mock/extendmock.py | 1 + ambari-common/src/test/python/mock/mock.py | 1 + ambari-common/src/test/python/mock/setup.py | 3 +-- ambari-common/src/test/python/mock/tests/__init__.py | 1 + ambari-common/src/test/python/mock/tests/_testwith.py | 1 + ambari-common/src/test/python/mock/tests/support.py | 1 + ambari-common/src/test/python/mock/tests/support_with.py | 3 +-- ambari-common/src/test/python/mock/tests/testcallable.py | 1 + ambari-common/src/test/python/mock/tests/testhelpers.py | 1 + .../src/test/python/mock/tests/testmagicmethods.py | 1 + ambari-common/src/test/python/mock/tests/testmock.py | 1 + ambari-common/src/test/python/mock/tests/testpatch.py | 1 + ambari-common/src/test/python/mock/tests/testsentinel.py | 1 + ambari-common/src/test/python/mock/tests/testwith.py | 1 + ambari-common/src/test/python/only_for_platform.py | 1 + .../test/resources/stacks/HDP/2.0.6.1/hooks/dummy-script.py | 1 + .../test/resources/stacks/HDP/2.0.6/hooks/dummy-script.py | 1 + .../stacks/HDP/2.0.7/services/HBASE/package/dummy-script.py | 1 + .../stacks/HDP/2.0.7/services/HDFS/package/dummy-script.py | 1 + .../test/resources/stacks/HDP/2.0.8/hooks/dummy-script.py | 1 + .../stacks/HDP/2.0.8/services/HDFS/package/dummy-script.py | 1 + .../stacks/OTHER/1.0/services/HDFS/package/dummy-script.py | 1 + .../src/main/python/ambari-server-state/Configurator.py | 1 + .../src/main/python/ambari-server-state/Entities.py | 1 + ambari-server/src/main/python/ambari-server-state/Main.py | 1 + ambari-server/src/main/python/ambari-server.py | 1 - .../src/main/python/ambari_server/BackupRestore.py | 1 - ambari-server/src/main/python/ambari_server/ambariPath.py | 4 +--- ambari-server/src/main/python/ambari_server/serverUtils.py | 1 - ambari-server/src/main/python/ambari_server/setupMpacks.py | 1 - .../src/main/python/ambari_server/setupSecurity.py | 1 - .../src/main/python/ambari_server/setupTrustedProxy.py | 1 - ambari-server/src/main/python/ambari_server/userInput.py | 1 - ambari-server/src/main/python/azuredb_create_generator.py | 1 - ambari-server/src/main/python/bootstrap.py | 1 - ambari-server/src/main/python/os_check_type.py | 3 +-- ambari-server/src/main/python/setupAgent.py | 1 - .../AMBARI_INFRA_SOLR/3.0.0/package/scripts/collection.py | 1 + .../3.0.0/package/scripts/command_commons.py | 1 + .../AMBARI_INFRA_SOLR/3.0.0/package/scripts/infra_solr.py | 1 + .../3.0.0/package/scripts/infra_solr_client.py | 1 + .../AMBARI_INFRA_SOLR/3.0.0/package/scripts/migrate.py | 1 + .../AMBARI_INFRA_SOLR/3.0.0/package/scripts/params.py | 1 + .../3.0.0/package/scripts/service_check.py | 1 + .../3.0.0/package/scripts/setup_infra_solr.py | 1 + .../3.0.0/package/scripts/status_params.py | 1 - .../AMBARI_METRICS/3.0.0/package/scripts/ams_service.py | 2 +- .../AMBARI_METRICS/3.0.0/package/scripts/split_points.py | 2 +- .../AMBARI_METRICS/3.0.0/package/scripts/status.py | 1 + .../common-services/AMBARI_METRICS/3.0.0/service_advisor.py | 2 +- ambari-server/src/main/resources/scripts/stack_advisor.py | 1 - .../resources/stack-hooks/after-INSTALL/scripts/hook.py | 1 + .../resources/stack-hooks/after-INSTALL/scripts/params.py | 1 + .../after-INSTALL/scripts/shared_initialization.py | 1 + .../main/resources/stack-hooks/before-ANY/scripts/hook.py | 1 + .../main/resources/stack-hooks/before-ANY/scripts/params.py | 1 + .../stack-hooks/before-ANY/scripts/shared_initialization.py | 1 + .../resources/stack-hooks/before-INSTALL/scripts/hook.py | 1 + .../resources/stack-hooks/before-INSTALL/scripts/params.py | 1 + .../before-INSTALL/scripts/repo_initialization.py | 1 + .../before-INSTALL/scripts/shared_initialization.py | 1 + .../resources/stack-hooks/before-RESTART/scripts/hook.py | 1 + .../resources/stack-hooks/before-SET_KEYTAB/scripts/hook.py | 1 + .../stack-hooks/before-START/scripts/custom_extensions.py | 1 + .../main/resources/stack-hooks/before-START/scripts/hook.py | 1 + .../resources/stack-hooks/before-START/scripts/params.py | 1 + .../before-START/scripts/shared_initialization.py | 1 + .../3.2.0/services/FLINK/package/scripts/flink_client.py | 1 + .../services/FLINK/package/scripts/flink_history_server.py | 2 +- .../3.2.0/services/FLINK/package/scripts/flink_service.py | 1 - .../3.2.0/services/FLINK/package/scripts/setup_flink.py | 1 + .../BIGTOP/3.2.0/services/HBASE/package/scripts/upgrade.py | 1 - .../package/alerts/alert_datanode_unmounted_data_dir.py | 1 - .../BIGTOP/3.2.0/services/HDFS/package/scripts/__init__.py | 1 + .../HDFS/package/scripts/balancer-emulator/hdfs-command.py | 1 - .../BIGTOP/3.2.0/services/HDFS/package/scripts/datanode.py | 1 + .../3.2.0/services/HDFS/package/scripts/datanode_upgrade.py | 1 + .../BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs.py | 1 + .../3.2.0/services/HDFS/package/scripts/hdfs_client.py | 1 + .../3.2.0/services/HDFS/package/scripts/hdfs_datanode.py | 1 + .../3.2.0/services/HDFS/package/scripts/hdfs_namenode.py | 1 + .../3.2.0/services/HDFS/package/scripts/hdfs_nfsgateway.py | 1 + .../3.2.0/services/HDFS/package/scripts/hdfs_snamenode.py | 1 + .../3.2.0/services/HDFS/package/scripts/install_params.py | 1 + .../3.2.0/services/HDFS/package/scripts/journalnode.py | 1 + .../services/HDFS/package/scripts/journalnode_upgrade.py | 1 + .../BIGTOP/3.2.0/services/HDFS/package/scripts/namenode.py | 1 + .../services/HDFS/package/scripts/namenode_ha_state.py | 1 + .../3.2.0/services/HDFS/package/scripts/namenode_upgrade.py | 1 + .../3.2.0/services/HDFS/package/scripts/nfsgateway.py | 1 + .../BIGTOP/3.2.0/services/HDFS/package/scripts/params.py | 1 + .../3.2.0/services/HDFS/package/scripts/params_linux.py | 1 + .../3.2.0/services/HDFS/package/scripts/params_windows.py | 1 + .../3.2.0/services/HDFS/package/scripts/service_check.py | 1 + .../BIGTOP/3.2.0/services/HDFS/package/scripts/snamenode.py | 1 + .../3.2.0/services/HDFS/package/scripts/status_params.py | 1 + .../BIGTOP/3.2.0/services/HDFS/package/scripts/utils.py | 1 + .../3.2.0/services/HDFS/package/scripts/zkfc_slave.py | 1 + .../package/alerts/alert_hive_interactive_thrift_port.py | 1 - .../services/HIVE/package/scripts/hive_server_upgrade.py | 1 + .../3.2.0/services/HIVE/package/scripts/mysql_utils.py | 3 +-- .../BIGTOP/3.2.0/services/HIVE/package/scripts/webhcat.py | 1 + .../3.2.0/services/HIVE/package/scripts/webhcat_server.py | 1 + .../3.2.0/services/HIVE/package/scripts/webhcat_service.py | 1 + .../3.2.0/services/KAFKA/package/scripts/kafka_broker.py | 1 + .../stacks/BIGTOP/3.2.0/services/KAFKA/service_advisor.py | 2 +- .../services/KERBEROS/package/scripts/kerberos_client.py | 1 + .../3.2.0/services/KERBEROS/package/scripts/params.py | 1 + .../services/KERBEROS/package/scripts/service_check.py | 1 + .../services/KERBEROS/package/scripts/status_params.py | 1 + .../BIGTOP/3.2.0/services/SOLR/package/scripts/params.py | 1 + .../3.2.0/services/SOLR/package/scripts/service_check.py | 1 + .../3.2.0/services/SOLR/package/scripts/setup_solr.py | 1 + .../BIGTOP/3.2.0/services/SOLR/package/scripts/solr.py | 1 + .../SPARK/package/scripts/alerts/alert_spark_thrift_port.py | 1 + .../services/SPARK/package/scripts/job_history_server.py | 2 +- .../BIGTOP/3.2.0/services/SPARK/package/scripts/params.py | 2 +- .../3.2.0/services/SPARK/package/scripts/service_check.py | 1 + .../3.2.0/services/SPARK/package/scripts/setup_spark.py | 2 +- .../3.2.0/services/SPARK/package/scripts/spark_client.py | 2 +- .../services/SPARK/package/scripts/spark_thrift_server.py | 2 +- .../3.2.0/services/TEZ/package/scripts/params_windows.py | 1 + .../3.2.0/services/TEZ/package/scripts/pre_upgrade.py | 1 + .../3.2.0/services/TEZ/package/scripts/service_check.py | 1 + .../stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/tez.py | 1 + .../BIGTOP/3.2.0/services/TEZ/package/scripts/tez_client.py | 1 + .../YARN/package/alerts/alert_nodemanagers_summary.py | 1 - .../BIGTOP/3.2.0/services/YARN/package/scripts/__init__.py | 1 + .../YARN/package/scripts/application_timeline_server.py | 1 + .../3.2.0/services/YARN/package/scripts/historyserver.py | 1 + .../services/YARN/package/scripts/mapred_service_check.py | 1 + .../services/YARN/package/scripts/mapreduce2_client.py | 1 + .../3.2.0/services/YARN/package/scripts/nodemanager.py | 1 + .../services/YARN/package/scripts/nodemanager_upgrade.py | 1 + .../3.2.0/services/YARN/package/scripts/params_linux.py | 1 + .../3.2.0/services/YARN/package/scripts/params_windows.py | 1 + .../3.2.0/services/YARN/package/scripts/resourcemanager.py | 1 + .../BIGTOP/3.2.0/services/YARN/package/scripts/service.py | 1 + .../3.2.0/services/YARN/package/scripts/service_check.py | 1 + .../BIGTOP/3.2.0/services/YARN/package/scripts/yarn.py | 1 + .../3.2.0/services/YARN/package/scripts/yarn_client.py | 1 + .../ZEPPELIN/package/scripts/alerts/alert_check_zeppelin.py | 1 + .../services/ZEPPELIN/package/scripts/service_check.py | 1 + .../services/ZEPPELIN/package/scripts/status_params.py | 1 + .../3.2.0/services/ZOOKEEPER/package/scripts/__init__.py | 1 + .../3.2.0/services/ZOOKEEPER/package/scripts/params.py | 1 + .../services/ZOOKEEPER/package/scripts/params_linux.py | 1 + .../services/ZOOKEEPER/package/scripts/params_windows.py | 1 + .../services/ZOOKEEPER/package/scripts/service_check.py | 1 + .../3.2.0/services/ZOOKEEPER/package/scripts/zookeeper.py | 1 + .../services/ZOOKEEPER/package/scripts/zookeeper_client.py | 1 + .../services/ZOOKEEPER/package/scripts/zookeeper_server.py | 1 + .../services/ZOOKEEPER/package/scripts/zookeeper_service.py | 1 + .../package/alerts/alert_ranger_admin_passwd_check.py | 1 - .../stacks/BIGTOP/3.3.0/services/RANGER/service_advisor.py | 2 +- ambari-server/src/test/python/TestAmbariConfiguration.py | 1 + ambari-server/src/test/python/TestAmbariServer.py | 1 + ambari-server/src/test/python/TestBackupRestore.py | 1 + ambari-server/src/test/python/TestBootstrap.py | 1 + ambari-server/src/test/python/TestClusterBlueprint.py | 1 + .../src/test/python/TestComponentVersionMapping.py | 3 +-- ambari-server/src/test/python/TestConfigs.py | 1 + ambari-server/src/test/python/TestExecutionCommand.py | 1 + ambari-server/src/test/python/TestGlobalLock.py | 3 +-- ambari-server/src/test/python/TestMpacks.py | 1 + ambari-server/src/test/python/TestOSCheck.py | 3 +-- ambari-server/src/test/python/TestResourceFilesKeeper.py | 1 + .../src/test/python/TestSensitiveDataEncryption.py | 1 + ambari-server/src/test/python/TestServerClassPath.py | 1 + ambari-server/src/test/python/TestServerUpgrade.py | 1 + ambari-server/src/test/python/TestServerUtils.py | 1 + ambari-server/src/test/python/TestServiceAdvisor.py | 1 + ambari-server/src/test/python/TestSetupAgent.py | 1 + ambari-server/src/test/python/TestSetupSso.py | 1 + ambari-server/src/test/python/TestSetupTrustedProxy.py | 1 + ambari-server/src/test/python/TestStackAdvisor.py | 1 + ambari-server/src/test/python/TestStackFeature.py | 3 +-- ambari-server/src/test/python/TestStackSelect.py | 3 +-- ambari-server/src/test/python/TestUpgradeSummary.py | 3 +-- ambari-server/src/test/python/TestUtils.py | 1 + ambari-server/src/test/python/TestValidateConfigs.py | 1 + ambari-server/src/test/python/TestVersion.py | 1 + ambari-server/src/test/python/TestVersionSelectUtil.py | 1 + .../src/test/python/custom_actions/TestCheckHost.py | 3 +-- .../src/test/python/custom_actions/TestInstallPackages.py | 1 - .../src/test/python/custom_actions/TestRemoveBits.py | 1 - .../test/python/custom_actions/TestRemoveStackVersion.py | 3 +-- .../src/test/python/custom_actions/test_ru_execute_tasks.py | 3 +-- .../test/python/custom_actions/test_stack_select_set_all.py | 3 +-- .../src/test/python/host_scripts/TestAlertUlimit.py | 1 - .../mystack-ambari-mpack-1.0.0.0/hooks/after_install.py | 1 - .../mystack-ambari-mpack-1.0.0.0/hooks/before_install.py | 1 - .../mystack-ambari-mpack-1.0.0.1/hooks/after_install.py | 1 - .../mystack-ambari-mpack-1.0.0.1/hooks/after_upgrade.py | 1 - .../mystack-ambari-mpack-1.0.0.1/hooks/before_install.py | 1 - .../mystack-ambari-mpack-1.0.0.1/hooks/before_upgrade.py | 1 - ambari-server/src/test/python/stacks/__init__.py | 1 - .../stack-hooks/before-SET_KEYTAB/test_before_set_keytab.py | 1 - ambari-server/src/test/python/stacks/test_stack_adviser.py | 1 + ambari-server/src/test/python/stacks/utils/__init__.py | 1 - ambari-server/src/test/python/unitTests.py | 1 + .../common-services/HDFS/1.0/package/dummy-script.py | 1 + .../EXT/0.1/services/OOZIE2/package/dummy-script.py | 1 + .../test/resources/stacks/HDP/2.0.6.1/hooks/dummy-script.py | 1 + .../test/resources/stacks/HDP/2.0.6/hooks/dummy-script.py | 1 + .../stacks/HDP/2.0.7/services/HBASE/package/dummy-script.py | 1 + .../stacks/HDP/2.0.7/services/HDFS/package/dummy-script.py | 1 + .../test/resources/stacks/HDP/2.0.8/hooks/dummy-script.py | 1 + .../stacks/HDP/2.0.8/services/HDFS/package/dummy-script.py | 1 + .../stacks/OTHER/1.0/services/HDFS/package/dummy-script.py | 1 + .../HDP/0.2/services/HDFS/package/dummy-script.py | 1 + .../OTHER/1.0/services/HDFS/package/dummy-script.py | 1 + .../HDP/0.2/services/HDFS/package/dummy-script.py | 1 + .../HDP/0.3/services/HDFS/package/dummy-script.py | 1 + .../HDP/0.4/services/HDFS/package/dummy-script.py | 1 + contrib/addons/test/nagios/plugins/test_sys_logger.py | 2 +- contrib/agent-simulator/cluster.py | 1 + contrib/agent-simulator/config.py | 1 + contrib/agent-simulator/data.py | 1 + contrib/agent-simulator/docker.py | 1 + contrib/agent-simulator/docker_image/__init__.py | 1 + contrib/agent-simulator/docker_image/launcher_agent.py | 1 + contrib/agent-simulator/launcher_ambari_server.py | 1 + contrib/agent-simulator/launcher_cluster.py | 1 + contrib/agent-simulator/launcher_docker.py | 1 + contrib/agent-simulator/launcher_service_server.py | 1 + contrib/agent-simulator/log.py | 1 + contrib/agent-simulator/network/dns_edit.py | 1 + contrib/agent-simulator/vm.py | 1 + .../NIFI/1.0.0/package/scripts/alert_check_nifi.py | 2 +- .../common-services/NIFI/1.0.0/package/scripts/nifi.py | 2 +- .../common-services/NIFI/1.0.0/package/scripts/nifi_ca.py | 2 +- .../NIFI/1.0.0/package/scripts/nifi_ca_util.py | 2 +- .../NIFI/1.0.0/package/scripts/nifi_constants.py | 2 +- .../common-services/NIFI/1.0.0/package/scripts/params.py | 2 +- .../NIFI/1.0.0/package/scripts/service_check.py | 4 ++-- .../NIFI/1.0.0/package/scripts/setup_ranger_nifi.py | 4 ++-- .../NIFI/1.0.0/package/scripts/status_params.py | 2 +- .../src/main/resources/hooks/after_install.py | 3 +-- .../stacks/HDF/2.0/hooks/after-INSTALL/scripts/hook.py | 1 + .../stacks/HDF/2.0/hooks/after-INSTALL/scripts/params.py | 1 + .../hooks/after-INSTALL/scripts/shared_initialization.py | 1 + .../stacks/HDF/2.0/hooks/before-ANY/scripts/hook.py | 1 + .../stacks/HDF/2.0/hooks/before-ANY/scripts/params.py | 1 + .../2.0/hooks/before-ANY/scripts/shared_initialization.py | 1 + .../stacks/HDF/2.0/hooks/before-INSTALL/scripts/hook.py | 1 + .../stacks/HDF/2.0/hooks/before-INSTALL/scripts/params.py | 1 + .../2.0/hooks/before-INSTALL/scripts/repo_initialization.py | 1 + .../hooks/before-INSTALL/scripts/shared_initialization.py | 1 + .../stacks/HDF/2.0/hooks/before-RESTART/scripts/hook.py | 1 + .../HDF/2.0/hooks/before-START/files/topology_script.py | 2 +- .../stacks/HDF/2.0/hooks/before-START/scripts/hook.py | 1 + .../stacks/HDF/2.0/hooks/before-START/scripts/params.py | 1 + .../HDF/2.0/hooks/before-START/scripts/rack_awareness.py | 3 +-- .../2.0/hooks/before-START/scripts/shared_initialization.py | 1 + .../addon-services/ONEFS/1.0.0/package/scripts/__init__.py | 1 + .../ONEFS/1.0.0/package/scripts/onefs_client.py | 1 + .../addon-services/ONEFS/1.0.0/package/scripts/params.py | 1 + .../ONEFS/1.0.0/package/scripts/params_linux.py | 1 + .../ONEFS/1.0.0/package/scripts/params_windows.py | 1 + .../ONEFS/1.0.0/package/scripts/service_check.py | 1 + .../ONEFS/1.0.0/package/scripts/status_params.py | 1 + .../resources/addon-services/ONEFS/1.0.0/service_advisor.py | 2 +- .../src/main/tools/hdfs_to_onefs_convert.py | 1 + .../src/test/python/TestServiceAdvisor.py | 1 + .../isilon-onefs-mpack/src/test/python/unitTests.py | 2 +- .../8.0.5/package/scripts/microsoft_r_server.py | 2 +- .../MICROSOFT_R_SERVER/8.0.5/package/scripts/params.py | 1 + .../8.0.5/package/scripts/params_linux.py | 1 + .../8.0.5/package/scripts/params_windows.py | 1 + .../8.0.5/package/scripts/service_check.py | 1 + .../stacks/ODPi/2.0/hooks/after-INSTALL/scripts/hook.py | 1 + .../stacks/ODPi/2.0/hooks/after-INSTALL/scripts/params.py | 1 + .../hooks/after-INSTALL/scripts/shared_initialization.py | 1 + .../stacks/ODPi/2.0/hooks/before-ANY/scripts/hook.py | 1 + .../stacks/ODPi/2.0/hooks/before-ANY/scripts/params.py | 1 + .../2.0/hooks/before-ANY/scripts/shared_initialization.py | 1 + .../stacks/ODPi/2.0/hooks/before-INSTALL/scripts/hook.py | 1 + .../stacks/ODPi/2.0/hooks/before-INSTALL/scripts/params.py | 1 + .../2.0/hooks/before-INSTALL/scripts/repo_initialization.py | 1 + .../hooks/before-INSTALL/scripts/shared_initialization.py | 1 + .../stacks/ODPi/2.0/hooks/before-RESTART/scripts/hook.py | 1 + .../ODPi/2.0/hooks/before-START/files/topology_script.py | 2 +- .../stacks/ODPi/2.0/hooks/before-START/scripts/hook.py | 1 + .../stacks/ODPi/2.0/hooks/before-START/scripts/params.py | 1 + .../ODPi/2.0/hooks/before-START/scripts/rack_awareness.py | 3 +-- .../2.0/hooks/before-START/scripts/shared_initialization.py | 1 + .../package/alerts/alert_hive_interactive_thrift_port.py | 5 ++--- .../services/HIVE/package/alerts/alert_hive_metastore.py | 3 +-- .../services/HIVE/package/alerts/alert_hive_thrift_port.py | 3 +-- .../services/HIVE/package/alerts/alert_llap_app_status.py | 5 ++--- .../services/HIVE/package/alerts/alert_webhcat_server.py | 3 +-- .../ODPi/2.0/services/HIVE/package/scripts/__init__.py | 2 +- .../stacks/ODPi/2.0/services/HIVE/package/scripts/hcat.py | 2 +- .../ODPi/2.0/services/HIVE/package/scripts/hcat_client.py | 2 +- .../2.0/services/HIVE/package/scripts/hcat_service_check.py | 2 +- .../stacks/ODPi/2.0/services/HIVE/package/scripts/hive.py | 2 +- .../ODPi/2.0/services/HIVE/package/scripts/hive_client.py | 2 +- .../2.0/services/HIVE/package/scripts/hive_interactive.py | 2 +- .../2.0/services/HIVE/package/scripts/hive_metastore.py | 2 +- .../ODPi/2.0/services/HIVE/package/scripts/hive_server.py | 2 +- .../HIVE/package/scripts/hive_server_interactive.py | 4 ++-- .../services/HIVE/package/scripts/hive_server_upgrade.py | 1 + .../ODPi/2.0/services/HIVE/package/scripts/hive_service.py | 2 +- .../HIVE/package/scripts/hive_service_interactive.py | 2 +- .../ODPi/2.0/services/HIVE/package/scripts/mysql_server.py | 2 +- .../ODPi/2.0/services/HIVE/package/scripts/mysql_service.py | 2 +- .../ODPi/2.0/services/HIVE/package/scripts/mysql_users.py | 2 +- .../ODPi/2.0/services/HIVE/package/scripts/mysql_utils.py | 4 ++-- .../stacks/ODPi/2.0/services/HIVE/package/scripts/params.py | 2 +- .../ODPi/2.0/services/HIVE/package/scripts/params_linux.py | 2 +- .../2.0/services/HIVE/package/scripts/params_windows.py | 2 +- .../ODPi/2.0/services/HIVE/package/scripts/service_check.py | 4 ++-- .../2.0/services/HIVE/package/scripts/setup_ranger_hive.py | 2 +- .../HIVE/package/scripts/setup_ranger_hive_interactive.py | 2 +- .../ODPi/2.0/services/HIVE/package/scripts/status_params.py | 2 +- .../ODPi/2.0/services/HIVE/package/scripts/webhcat.py | 1 + .../2.0/services/HIVE/package/scripts/webhcat_server.py | 1 + .../2.0/services/HIVE/package/scripts/webhcat_service.py | 1 + .../services/HIVE/package/scripts/webhcat_service_check.py | 2 +- .../YARN/package/alerts/alert_nodemanager_health.py | 3 +-- .../YARN/package/alerts/alert_nodemanagers_summary.py | 5 ++--- .../package/files/validateYarnComponentStatusWindows.py | 3 +-- .../ODPi/2.0/services/YARN/package/scripts/__init__.py | 1 + .../YARN/package/scripts/application_timeline_server.py | 1 + .../ODPi/2.0/services/YARN/package/scripts/historyserver.py | 1 + .../ODPi/2.0/services/YARN/package/scripts/install_jars.py | 2 +- .../services/YARN/package/scripts/mapred_service_check.py | 1 + .../2.0/services/YARN/package/scripts/mapreduce2_client.py | 1 + .../ODPi/2.0/services/YARN/package/scripts/nodemanager.py | 1 + .../services/YARN/package/scripts/nodemanager_upgrade.py | 1 + .../stacks/ODPi/2.0/services/YARN/package/scripts/params.py | 2 +- .../ODPi/2.0/services/YARN/package/scripts/params_linux.py | 1 + .../2.0/services/YARN/package/scripts/params_windows.py | 1 + .../2.0/services/YARN/package/scripts/resourcemanager.py | 1 + .../ODPi/2.0/services/YARN/package/scripts/service.py | 1 + .../ODPi/2.0/services/YARN/package/scripts/service_check.py | 1 + .../2.0/services/YARN/package/scripts/setup_ranger_yarn.py | 2 +- .../ODPi/2.0/services/YARN/package/scripts/status_params.py | 4 ++-- .../stacks/ODPi/2.0/services/YARN/package/scripts/yarn.py | 1 + .../ODPi/2.0/services/YARN/package/scripts/yarn_client.py | 1 + contrib/nagios-alerts/plugins/ambari_alerts.py | 3 +-- contrib/nagios-alerts/plugins/generate_nagios_objects.py | 3 +-- contrib/version-builder/example.py | 1 + contrib/version-builder/version_builder.py | 1 + dev-support/docker/docker/bin/__init__.py | 1 + dev-support/docker/docker/bin/ambaribuild.py | 2 +- dev-support/docker/docker/bin/test/__init__.py | 1 + dev-support/docker/docker/bin/test/ambaribuild_test.py | 2 +- 628 files changed, 583 insertions(+), 202 deletions(-) diff --git a/ambari-agent/conf/unix/agent-multiplier.py b/ambari-agent/conf/unix/agent-multiplier.py index b6d49bacfbf..ae1e1d0d89e 100644 --- a/ambari-agent/conf/unix/agent-multiplier.py +++ b/ambari-agent/conf/unix/agent-multiplier.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # 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. diff --git a/ambari-agent/conf/unix/upgrade_agent_configs.py b/ambari-agent/conf/unix/upgrade_agent_configs.py index ae5d7b0a0fd..0f30b983926 100644 --- a/ambari-agent/conf/unix/upgrade_agent_configs.py +++ b/ambari-agent/conf/unix/upgrade_agent_configs.py @@ -1,4 +1,4 @@ -#!/usr/bin/ambari-python-wrap +#!/usr/bin/env ambari-python-wrap ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file @@ -56,4 +56,4 @@ else: print("Values are not updated, configs {0} is not found".format(CONFIG_FILE)) else: - print("Values are not updated, backup {0} is not found".format(CONFIG_FILE_BACKUP)) \ No newline at end of file + print("Values are not updated, backup {0} is not found".format(CONFIG_FILE_BACKUP)) diff --git a/ambari-agent/conf/windows/service_wrapper.py b/ambari-agent/conf/windows/service_wrapper.py index bf6fa7b33ed..fa24d1ec3ac 100644 --- a/ambari-agent/conf/windows/service_wrapper.py +++ b/ambari-agent/conf/windows/service_wrapper.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/ActionQueue.py b/ambari-agent/src/main/python/ambari_agent/ActionQueue.py index f070a21673c..9b1e1d969ef 100644 --- a/ambari-agent/src/main/python/ambari_agent/ActionQueue.py +++ b/ambari-agent/src/main/python/ambari_agent/ActionQueue.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/AgentException.py b/ambari-agent/src/main/python/ambari_agent/AgentException.py index d7455f54b0d..6843895a4ce 100644 --- a/ambari-agent/src/main/python/ambari_agent/AgentException.py +++ b/ambari-agent/src/main/python/ambari_agent/AgentException.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/BackgroundCommandExecutionHandle.py b/ambari-agent/src/main/python/ambari_agent/BackgroundCommandExecutionHandle.py index 6d55d574345..805eb64a17e 100644 --- a/ambari-agent/src/main/python/ambari_agent/BackgroundCommandExecutionHandle.py +++ b/ambari-agent/src/main/python/ambari_agent/BackgroundCommandExecutionHandle.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/ClusterCache.py b/ambari-agent/src/main/python/ambari_agent/ClusterCache.py index 23f108fea1a..bf70afc1dc3 100644 --- a/ambari-agent/src/main/python/ambari_agent/ClusterCache.py +++ b/ambari-agent/src/main/python/ambari_agent/ClusterCache.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/CommandHooksOrchestrator.py b/ambari-agent/src/main/python/ambari_agent/CommandHooksOrchestrator.py index 41a21ea3482..3c232747461 100644 --- a/ambari-agent/src/main/python/ambari_agent/CommandHooksOrchestrator.py +++ b/ambari-agent/src/main/python/ambari_agent/CommandHooksOrchestrator.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/ComponentStatusExecutor.py b/ambari-agent/src/main/python/ambari_agent/ComponentStatusExecutor.py index b45aa6b3f79..50b5295274e 100644 --- a/ambari-agent/src/main/python/ambari_agent/ComponentStatusExecutor.py +++ b/ambari-agent/src/main/python/ambari_agent/ComponentStatusExecutor.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/ComponentVersionReporter.py b/ambari-agent/src/main/python/ambari_agent/ComponentVersionReporter.py index eb4358b19d6..3e88d2456d1 100644 --- a/ambari-agent/src/main/python/ambari_agent/ComponentVersionReporter.py +++ b/ambari-agent/src/main/python/ambari_agent/ComponentVersionReporter.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/ExitHelper.py b/ambari-agent/src/main/python/ambari_agent/ExitHelper.py index bf3b7991439..6f7c3a1e91a 100644 --- a/ambari-agent/src/main/python/ambari_agent/ExitHelper.py +++ b/ambari-agent/src/main/python/ambari_agent/ExitHelper.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/Facter.py b/ambari-agent/src/main/python/ambari_agent/Facter.py index c83cb79461d..a5bda8d5b3e 100644 --- a/ambari-agent/src/main/python/ambari_agent/Facter.py +++ b/ambari-agent/src/main/python/ambari_agent/Facter.py @@ -1,5 +1,4 @@ #!/usr/bin/env ambari-python-wrap - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/Grep.py b/ambari-agent/src/main/python/ambari_agent/Grep.py index 70bc4b9e0b3..014de1fdd74 100644 --- a/ambari-agent/src/main/python/ambari_agent/Grep.py +++ b/ambari-agent/src/main/python/ambari_agent/Grep.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # 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. diff --git a/ambari-agent/src/main/python/ambari_agent/HostStatusReporter.py b/ambari-agent/src/main/python/ambari_agent/HostStatusReporter.py index c82fa9bcd31..7bde1c82426 100644 --- a/ambari-agent/src/main/python/ambari_agent/HostStatusReporter.py +++ b/ambari-agent/src/main/python/ambari_agent/HostStatusReporter.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/NetUtil.py b/ambari-agent/src/main/python/ambari_agent/NetUtil.py index 2338a6cf842..16be86a1b6c 100644 --- a/ambari-agent/src/main/python/ambari_agent/NetUtil.py +++ b/ambari-agent/src/main/python/ambari_agent/NetUtil.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # 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. diff --git a/ambari-agent/src/main/python/ambari_agent/RecoveryManager.py b/ambari-agent/src/main/python/ambari_agent/RecoveryManager.py index e07d1b617d1..6f3016691c0 100644 --- a/ambari-agent/src/main/python/ambari_agent/RecoveryManager.py +++ b/ambari-agent/src/main/python/ambari_agent/RecoveryManager.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # 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. diff --git a/ambari-agent/src/main/python/ambari_agent/RemoteDebugUtils.py b/ambari-agent/src/main/python/ambari_agent/RemoteDebugUtils.py index 1e81d465dcf..3b201b8958f 100644 --- a/ambari-agent/src/main/python/ambari_agent/RemoteDebugUtils.py +++ b/ambari-agent/src/main/python/ambari_agent/RemoteDebugUtils.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/StaleAlertsMonitor.py b/ambari-agent/src/main/python/ambari_agent/StaleAlertsMonitor.py index 2d4dde2baa6..652861a1cda 100644 --- a/ambari-agent/src/main/python/ambari_agent/StaleAlertsMonitor.py +++ b/ambari-agent/src/main/python/ambari_agent/StaleAlertsMonitor.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - # 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. diff --git a/ambari-agent/src/main/python/ambari_agent/Utils.py b/ambari-agent/src/main/python/ambari_agent/Utils.py index 256d505cfcf..ada56981062 100644 --- a/ambari-agent/src/main/python/ambari_agent/Utils.py +++ b/ambari-agent/src/main/python/ambari_agent/Utils.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/alerts/__init__.py b/ambari-agent/src/main/python/ambari_agent/alerts/__init__.py index 0a0e1ca9c26..416b098c9ad 100644 --- a/ambari-agent/src/main/python/ambari_agent/alerts/__init__.py +++ b/ambari-agent/src/main/python/ambari_agent/alerts/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/alerts/collector.py b/ambari-agent/src/main/python/ambari_agent/alerts/collector.py index 68fd2dce4ee..4673822f4b6 100644 --- a/ambari-agent/src/main/python/ambari_agent/alerts/collector.py +++ b/ambari-agent/src/main/python/ambari_agent/alerts/collector.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file @@ -91,7 +90,4 @@ def alerts(self): self.__buckets.clear() return alerts finally: - self.__lock.release() - - - \ No newline at end of file + self.__lock.release() \ No newline at end of file diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/__init__.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/__init__.py index 71cc53dbb89..c240920a9f6 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/__init__.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 version_info = (2, 1, 2) version = '.'.join(str(n) for n in version_info[:3]) release = '.'.join(str(n) for n in version_info) diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/events.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/events.py index 80bde8e6538..205d039f91c 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/events.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/events.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 __all__ = ('EVENT_SCHEDULER_START', 'EVENT_SCHEDULER_SHUTDOWN', 'EVENT_JOBSTORE_ADDED', 'EVENT_JOBSTORE_REMOVED', 'EVENT_JOBSTORE_JOB_ADDED', 'EVENT_JOBSTORE_JOB_REMOVED', diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/job.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/job.py index cfc09a2f5b2..6689a7c3494 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/job.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/job.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Jobs represent scheduled tasks. """ diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/__init__.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/__init__.py index e69de29bb2d..e5a0d9b4834 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/__init__.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/__init__.py @@ -0,0 +1 @@ +#!/usr/bin/env python3 diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/base.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/base.py index f0a16ddb61e..c24ef602416 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/base.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/base.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Abstract base class that provides the interface needed by all job stores. Job store methods are also documented here. diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/mongodb_store.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/mongodb_store.py index 4aedffa275c..7ac042b38f9 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/mongodb_store.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/mongodb_store.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Stores jobs in a MongoDB database. """ diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/ram_store.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/ram_store.py index 60458fbab80..799ffc26b98 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/ram_store.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/ram_store.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Stores jobs in an array in RAM. Provides no persistence support. """ diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/redis_store.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/redis_store.py index 7a3ee0372e5..90062feae6e 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/redis_store.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/redis_store.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Stores jobs in a Redis database. """ diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/shelve_store.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/shelve_store.py index d1be58f9116..57ec350d60a 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/shelve_store.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/shelve_store.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Stores jobs in a file governed by the :mod:`shelve` module. """ diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/sqlalchemy_store.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/sqlalchemy_store.py index 5b64a35a68c..705ee11883f 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/sqlalchemy_store.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/jobstores/sqlalchemy_store.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Stores jobs in a database table using SQLAlchemy. """ diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/scheduler.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/scheduler.py index 23ba7350b28..a949e9f1d3d 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/scheduler.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/scheduler.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ This module is the main part of the library. It houses the Scheduler class and related exceptions. diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/threadpool.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/threadpool.py index 51eb2864bc1..eaccb2e38c6 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/threadpool.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/threadpool.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Generic thread pool class. Modeled after Java's ThreadPoolExecutor. Please note that this ThreadPool does *not* fully implement the PEP 3148 diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/__init__.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/__init__.py index 74a978845bd..6445bd211e8 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/__init__.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from apscheduler.triggers.cron import CronTrigger from apscheduler.triggers.interval import IntervalTrigger from apscheduler.triggers.simple import SimpleTrigger diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/cron/__init__.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/cron/__init__.py index 9e69f720ff1..f813f299397 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/cron/__init__.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/cron/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from datetime import date, datetime from apscheduler.triggers.cron.fields import * diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/cron/expressions.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/cron/expressions.py index b5d2919547c..6c190fe9393 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/cron/expressions.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/cron/expressions.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ This module contains the expressions applicable for CronTrigger's fields. """ diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/cron/fields.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/cron/fields.py index be5e5e33ef9..1c916f99daf 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/cron/fields.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/cron/fields.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Fields represent CronTrigger options which map to :class:`~datetime.datetime` fields. diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/interval.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/interval.py index dd16d777a12..230c8c9b141 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/interval.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/interval.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from datetime import datetime, timedelta from math import ceil diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/simple.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/simple.py index ea61b3f1e3d..3753e9ae4be 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/simple.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/triggers/simple.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from apscheduler.util import convert_to_datetime diff --git a/ambari-agent/src/main/python/ambari_agent/apscheduler/util.py b/ambari-agent/src/main/python/ambari_agent/apscheduler/util.py index 9ce531c6551..bb4a1e69de1 100644 --- a/ambari-agent/src/main/python/ambari_agent/apscheduler/util.py +++ b/ambari-agent/src/main/python/ambari_agent/apscheduler/util.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ This module contains several handy functions primarily meant for internal use. """ diff --git a/ambari-agent/src/main/python/ambari_agent/debug.py b/ambari-agent/src/main/python/ambari_agent/debug.py index a8ec5e6e95b..9fc9885da83 100644 --- a/ambari-agent/src/main/python/ambari_agent/debug.py +++ b/ambari-agent/src/main/python/ambari_agent/debug.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file @@ -47,5 +46,4 @@ def main(): debug_process(pid) if __name__=='__main__': - main() - \ No newline at end of file + main() \ No newline at end of file diff --git a/ambari-agent/src/main/python/ambari_agent/listeners/CommandsEventListener.py b/ambari-agent/src/main/python/ambari_agent/listeners/CommandsEventListener.py index 92745ae1786..b21e36e0134 100644 --- a/ambari-agent/src/main/python/ambari_agent/listeners/CommandsEventListener.py +++ b/ambari-agent/src/main/python/ambari_agent/listeners/CommandsEventListener.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/listeners/ConfigurationEventListener.py b/ambari-agent/src/main/python/ambari_agent/listeners/ConfigurationEventListener.py index dcd39b23013..b908b77f047 100644 --- a/ambari-agent/src/main/python/ambari_agent/listeners/ConfigurationEventListener.py +++ b/ambari-agent/src/main/python/ambari_agent/listeners/ConfigurationEventListener.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/listeners/HostLevelParamsEventListener.py b/ambari-agent/src/main/python/ambari_agent/listeners/HostLevelParamsEventListener.py index 25173082fe5..8039b6e82b3 100644 --- a/ambari-agent/src/main/python/ambari_agent/listeners/HostLevelParamsEventListener.py +++ b/ambari-agent/src/main/python/ambari_agent/listeners/HostLevelParamsEventListener.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/listeners/MetadataEventListener.py b/ambari-agent/src/main/python/ambari_agent/listeners/MetadataEventListener.py index f3a3503d774..1504c028ed0 100644 --- a/ambari-agent/src/main/python/ambari_agent/listeners/MetadataEventListener.py +++ b/ambari-agent/src/main/python/ambari_agent/listeners/MetadataEventListener.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/listeners/TopologyEventListener.py b/ambari-agent/src/main/python/ambari_agent/listeners/TopologyEventListener.py index 15e622c475c..fc9d5d4246a 100644 --- a/ambari-agent/src/main/python/ambari_agent/listeners/TopologyEventListener.py +++ b/ambari-agent/src/main/python/ambari_agent/listeners/TopologyEventListener.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/models/__init__.py b/ambari-agent/src/main/python/ambari_agent/models/__init__.py index 53ed4d36c2c..95e26abb273 100644 --- a/ambari-agent/src/main/python/ambari_agent/models/__init__.py +++ b/ambari-agent/src/main/python/ambari_agent/models/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/models/commands.py b/ambari-agent/src/main/python/ambari_agent/models/commands.py index e9ea2c8b0cd..7d6c4d811e7 100644 --- a/ambari-agent/src/main/python/ambari_agent/models/commands.py +++ b/ambari-agent/src/main/python/ambari_agent/models/commands.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/ambari_agent/models/hooks.py b/ambari-agent/src/main/python/ambari_agent/models/hooks.py index f9183bd4945..9ae47c8dfa7 100644 --- a/ambari-agent/src/main/python/ambari_agent/models/hooks.py +++ b/ambari-agent/src/main/python/ambari_agent/models/hooks.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/main/python/setup.py b/ambari-agent/src/main/python/setup.py index 41c2097830b..247f11ceb38 100644 --- a/ambari-agent/src/main/python/setup.py +++ b/ambari-agent/src/main/python/setup.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # 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. diff --git a/ambari-agent/src/test/python/ambari_agent/BaseStompServerTestCase.py b/ambari-agent/src/test/python/ambari_agent/BaseStompServerTestCase.py index 44656956936..7e94cd9f324 100644 --- a/ambari-agent/src/test/python/ambari_agent/BaseStompServerTestCase.py +++ b/ambari-agent/src/test/python/ambari_agent/BaseStompServerTestCase.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/ambari_agent/TestCommandHooksOrchestrator.py b/ambari-agent/src/test/python/ambari_agent/TestCommandHooksOrchestrator.py index f16dfbccedb..44fe9af8955 100644 --- a/ambari-agent/src/test/python/ambari_agent/TestCommandHooksOrchestrator.py +++ b/ambari-agent/src/test/python/ambari_agent/TestCommandHooksOrchestrator.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/ambari_agent/TestKerberosCommon.py b/ambari-agent/src/test/python/ambari_agent/TestKerberosCommon.py index aa4858ed046..9297ac368ba 100644 --- a/ambari-agent/src/test/python/ambari_agent/TestKerberosCommon.py +++ b/ambari-agent/src/test/python/ambari_agent/TestKerberosCommon.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/ambari_agent/TestMain.py b/ambari-agent/src/test/python/ambari_agent/TestMain.py index a2422bf7da1..6700934a46b 100644 --- a/ambari-agent/src/test/python/ambari_agent/TestMain.py +++ b/ambari-agent/src/test/python/ambari_agent/TestMain.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestContentSources.py b/ambari-agent/src/test/python/resource_management/TestContentSources.py index b3fcb493d28..92ae59c2706 100644 --- a/ambari-agent/src/test/python/resource_management/TestContentSources.py +++ b/ambari-agent/src/test/python/resource_management/TestContentSources.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestDataStructureUtils.py b/ambari-agent/src/test/python/resource_management/TestDataStructureUtils.py index 406d4135871..7b242b44981 100644 --- a/ambari-agent/src/test/python/resource_management/TestDataStructureUtils.py +++ b/ambari-agent/src/test/python/resource_management/TestDataStructureUtils.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestDatanodeHelper.py b/ambari-agent/src/test/python/resource_management/TestDatanodeHelper.py index 9eb6e90c76b..e6b8408ecf5 100644 --- a/ambari-agent/src/test/python/resource_management/TestDatanodeHelper.py +++ b/ambari-agent/src/test/python/resource_management/TestDatanodeHelper.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestDirectoryResource.py b/ambari-agent/src/test/python/resource_management/TestDirectoryResource.py index 16b1db2869b..2842c7db5b5 100644 --- a/ambari-agent/src/test/python/resource_management/TestDirectoryResource.py +++ b/ambari-agent/src/test/python/resource_management/TestDirectoryResource.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestEncryption.py b/ambari-agent/src/test/python/resource_management/TestEncryption.py index 175fa349f9a..2208bd0bec3 100644 --- a/ambari-agent/src/test/python/resource_management/TestEncryption.py +++ b/ambari-agent/src/test/python/resource_management/TestEncryption.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py b/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py index 29387951cfc..44e8245fa6b 100644 --- a/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py +++ b/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestExecuteResource.py b/ambari-agent/src/test/python/resource_management/TestExecuteResource.py index 8330e6e44dd..16388700e6f 100644 --- a/ambari-agent/src/test/python/resource_management/TestExecuteResource.py +++ b/ambari-agent/src/test/python/resource_management/TestExecuteResource.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestFcntlBasedProcessLock.py b/ambari-agent/src/test/python/resource_management/TestFcntlBasedProcessLock.py index 2b0b66360cd..b58d4790161 100644 --- a/ambari-agent/src/test/python/resource_management/TestFcntlBasedProcessLock.py +++ b/ambari-agent/src/test/python/resource_management/TestFcntlBasedProcessLock.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestFileResource.py b/ambari-agent/src/test/python/resource_management/TestFileResource.py index faba3e296e3..629fbf62e1a 100644 --- a/ambari-agent/src/test/python/resource_management/TestFileResource.py +++ b/ambari-agent/src/test/python/resource_management/TestFileResource.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestFileSystem.py b/ambari-agent/src/test/python/resource_management/TestFileSystem.py index e2f7ed8c5eb..cd8614a948f 100644 --- a/ambari-agent/src/test/python/resource_management/TestFileSystem.py +++ b/ambari-agent/src/test/python/resource_management/TestFileSystem.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestGetPathFromUrl.py b/ambari-agent/src/test/python/resource_management/TestGetPathFromUrl.py index 96744376a58..5a4d978348d 100644 --- a/ambari-agent/src/test/python/resource_management/TestGetPathFromUrl.py +++ b/ambari-agent/src/test/python/resource_management/TestGetPathFromUrl.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestGroupResource.py b/ambari-agent/src/test/python/resource_management/TestGroupResource.py index efbf89db789..b3c5e901dbd 100644 --- a/ambari-agent/src/test/python/resource_management/TestGroupResource.py +++ b/ambari-agent/src/test/python/resource_management/TestGroupResource.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestLibraryFunctions.py b/ambari-agent/src/test/python/resource_management/TestLibraryFunctions.py index 1e635bf249b..2a30e0a62b5 100644 --- a/ambari-agent/src/test/python/resource_management/TestLibraryFunctions.py +++ b/ambari-agent/src/test/python/resource_management/TestLibraryFunctions.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestLinkResource.py b/ambari-agent/src/test/python/resource_management/TestLinkResource.py index 6a1377beb9b..70646208cd9 100644 --- a/ambari-agent/src/test/python/resource_management/TestLinkResource.py +++ b/ambari-agent/src/test/python/resource_management/TestLinkResource.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestMonitorWebserverResource.py b/ambari-agent/src/test/python/resource_management/TestMonitorWebserverResource.py index a982390c553..b16fc716b64 100644 --- a/ambari-agent/src/test/python/resource_management/TestMonitorWebserverResource.py +++ b/ambari-agent/src/test/python/resource_management/TestMonitorWebserverResource.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestPackageResource.py b/ambari-agent/src/test/python/resource_management/TestPackageResource.py index 43d17ab97f2..8f45545add2 100644 --- a/ambari-agent/src/test/python/resource_management/TestPackageResource.py +++ b/ambari-agent/src/test/python/resource_management/TestPackageResource.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestRepositoryResource.py b/ambari-agent/src/test/python/resource_management/TestRepositoryResource.py index bc6343f19bc..d6ab2a565db 100644 --- a/ambari-agent/src/test/python/resource_management/TestRepositoryResource.py +++ b/ambari-agent/src/test/python/resource_management/TestRepositoryResource.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py b/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py index b68ce705fbc..24d3cc7d1e1 100644 --- a/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py +++ b/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestServiceResource.py b/ambari-agent/src/test/python/resource_management/TestServiceResource.py index d4a57435f9e..c7a41c3b87d 100644 --- a/ambari-agent/src/test/python/resource_management/TestServiceResource.py +++ b/ambari-agent/src/test/python/resource_management/TestServiceResource.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestTarArchive.py b/ambari-agent/src/test/python/resource_management/TestTarArchive.py index 66d8f2e2611..91284b080ea 100644 --- a/ambari-agent/src/test/python/resource_management/TestTarArchive.py +++ b/ambari-agent/src/test/python/resource_management/TestTarArchive.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestTemplateConfigResource.py b/ambari-agent/src/test/python/resource_management/TestTemplateConfigResource.py index eb49c8e8857..7976eec77d1 100644 --- a/ambari-agent/src/test/python/resource_management/TestTemplateConfigResource.py +++ b/ambari-agent/src/test/python/resource_management/TestTemplateConfigResource.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestUserResource.py b/ambari-agent/src/test/python/resource_management/TestUserResource.py index 1c5bcd7192a..02e2f9e8943 100644 --- a/ambari-agent/src/test/python/resource_management/TestUserResource.py +++ b/ambari-agent/src/test/python/resource_management/TestUserResource.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/resource_management/TestUtils.py b/ambari-agent/src/test/python/resource_management/TestUtils.py index 0335e3ce1db..78d8a70efeb 100644 --- a/ambari-agent/src/test/python/resource_management/TestUtils.py +++ b/ambari-agent/src/test/python/resource_management/TestUtils.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-agent/src/test/python/unitTests.py b/ambari-agent/src/test/python/unitTests.py index 0a6b8cc3aff..7c047566b6d 100644 --- a/ambari-agent/src/test/python/unitTests.py +++ b/ambari-agent/src/test/python/unitTests.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file @@ -37,6 +36,7 @@ $(pwd)/ambari-agent/src/test/python/ambari_agent: $(pwd)/ambari-common/src/main/python: $(pwd)/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/files: +$(pwd)/ambari-server/src/test/python: $(pwd)/ambari-agent/src/test/python/resource_management: $(pwd)/ambari-common/src/main/python/ambari_jinja2 """ diff --git a/ambari-common/src/main/python/ambari_commons/ambari_service.py b/ambari-common/src/main/python/ambari_commons/ambari_service.py index 8e7e7aabeb8..d46aa9e9bf6 100644 --- a/ambari-common/src/main/python/ambari_commons/ambari_service.py +++ b/ambari-common/src/main/python/ambari_commons/ambari_service.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/buffered_queue.py b/ambari-common/src/main/python/ambari_commons/buffered_queue.py index 23643eff0f7..091bd46b7d8 100644 --- a/ambari-common/src/main/python/ambari_commons/buffered_queue.py +++ b/ambari-common/src/main/python/ambari_commons/buffered_queue.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/kerberos/kerberos_common.py b/ambari-common/src/main/python/ambari_commons/kerberos/kerberos_common.py index 9fe23e0a9d3..8cf929af1d1 100644 --- a/ambari-common/src/main/python/ambari_commons/kerberos/kerberos_common.py +++ b/ambari-common/src/main/python/ambari_commons/kerberos/kerberos_common.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/kerberos/utils.py b/ambari-common/src/main/python/ambari_commons/kerberos/utils.py index ee2e039909b..f90b8dc97d2 100644 --- a/ambari-common/src/main/python/ambari_commons/kerberos/utils.py +++ b/ambari-common/src/main/python/ambari_commons/kerberos/utils.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/libs/__init__.py b/ambari-common/src/main/python/ambari_commons/libs/__init__.py index 280aaf81b7d..f98787116dd 100644 --- a/ambari-common/src/main/python/ambari_commons/libs/__init__.py +++ b/ambari-common/src/main/python/ambari_commons/libs/__init__.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/libs/ppc64le/__init__.py b/ambari-common/src/main/python/ambari_commons/libs/ppc64le/__init__.py index 280aaf81b7d..f98787116dd 100644 --- a/ambari-common/src/main/python/ambari_commons/libs/ppc64le/__init__.py +++ b/ambari-common/src/main/python/ambari_commons/libs/ppc64le/__init__.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/libs/x86_64/__init__.py b/ambari-common/src/main/python/ambari_commons/libs/x86_64/__init__.py index 280aaf81b7d..f98787116dd 100644 --- a/ambari-common/src/main/python/ambari_commons/libs/x86_64/__init__.py +++ b/ambari-common/src/main/python/ambari_commons/libs/x86_64/__init__.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/os_family_impl.py b/ambari-common/src/main/python/ambari_commons/os_family_impl.py index 65a502aec5e..53bc67baa3d 100644 --- a/ambari-common/src/main/python/ambari_commons/os_family_impl.py +++ b/ambari-common/src/main/python/ambari_commons/os_family_impl.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/os_linux.py b/ambari-common/src/main/python/ambari_commons/os_linux.py index b7deb1ffc2f..d76e3731653 100644 --- a/ambari-common/src/main/python/ambari_commons/os_linux.py +++ b/ambari-common/src/main/python/ambari_commons/os_linux.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/os_utils.py b/ambari-common/src/main/python/ambari_commons/os_utils.py index 6afcd9308a4..fe5d20ca988 100644 --- a/ambari-common/src/main/python/ambari_commons/os_utils.py +++ b/ambari-common/src/main/python/ambari_commons/os_utils.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/os_windows.py b/ambari-common/src/main/python/ambari_commons/os_windows.py index f14814e213d..062353cf402 100644 --- a/ambari-common/src/main/python/ambari_commons/os_windows.py +++ b/ambari-common/src/main/python/ambari_commons/os_windows.py @@ -1,5 +1,4 @@ -# !/usr/bin/env python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/parallel_processing.py b/ambari-common/src/main/python/ambari_commons/parallel_processing.py index a2490102bc2..7c4c62ffd3b 100644 --- a/ambari-common/src/main/python/ambari_commons/parallel_processing.py +++ b/ambari-common/src/main/python/ambari_commons/parallel_processing.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/repo_manager/__init__.py b/ambari-common/src/main/python/ambari_commons/repo_manager/__init__.py index f3a540453a7..4f36f252ba2 100644 --- a/ambari-common/src/main/python/ambari_commons/repo_manager/__init__.py +++ b/ambari-common/src/main/python/ambari_commons/repo_manager/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/repo_manager/apt_manager.py b/ambari-common/src/main/python/ambari_commons/repo_manager/apt_manager.py index 81ea855a7ac..71ac3917188 100644 --- a/ambari-common/src/main/python/ambari_commons/repo_manager/apt_manager.py +++ b/ambari-common/src/main/python/ambari_commons/repo_manager/apt_manager.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/repo_manager/apt_parser.py b/ambari-common/src/main/python/ambari_commons/repo_manager/apt_parser.py index 29f1a655c26..6043c1f31e7 100644 --- a/ambari-common/src/main/python/ambari_commons/repo_manager/apt_parser.py +++ b/ambari-common/src/main/python/ambari_commons/repo_manager/apt_parser.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/repo_manager/choco_manager.py b/ambari-common/src/main/python/ambari_commons/repo_manager/choco_manager.py index edace06faef..c9b8d5f5e18 100644 --- a/ambari-common/src/main/python/ambari_commons/repo_manager/choco_manager.py +++ b/ambari-common/src/main/python/ambari_commons/repo_manager/choco_manager.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/repo_manager/generic_manager.py b/ambari-common/src/main/python/ambari_commons/repo_manager/generic_manager.py index 3b6056cc47d..c429fad8df1 100644 --- a/ambari-common/src/main/python/ambari_commons/repo_manager/generic_manager.py +++ b/ambari-common/src/main/python/ambari_commons/repo_manager/generic_manager.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/repo_manager/generic_parser.py b/ambari-common/src/main/python/ambari_commons/repo_manager/generic_parser.py index 2941646dc84..fd0609a9314 100644 --- a/ambari-common/src/main/python/ambari_commons/repo_manager/generic_parser.py +++ b/ambari-common/src/main/python/ambari_commons/repo_manager/generic_parser.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/repo_manager/repo_manager_helper.py b/ambari-common/src/main/python/ambari_commons/repo_manager/repo_manager_helper.py index 91d86a69ba7..b95db5513db 100644 --- a/ambari-common/src/main/python/ambari_commons/repo_manager/repo_manager_helper.py +++ b/ambari-common/src/main/python/ambari_commons/repo_manager/repo_manager_helper.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/repo_manager/yum_manager.py b/ambari-common/src/main/python/ambari_commons/repo_manager/yum_manager.py index 5fff7ce2921..7a1e5faec9e 100644 --- a/ambari-common/src/main/python/ambari_commons/repo_manager/yum_manager.py +++ b/ambari-common/src/main/python/ambari_commons/repo_manager/yum_manager.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/repo_manager/yum_parser.py b/ambari-common/src/main/python/ambari_commons/repo_manager/yum_parser.py index b3f3dca8ac1..fb2fa6787d0 100644 --- a/ambari-common/src/main/python/ambari_commons/repo_manager/yum_parser.py +++ b/ambari-common/src/main/python/ambari_commons/repo_manager/yum_parser.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/repo_manager/zypper_manager.py b/ambari-common/src/main/python/ambari_commons/repo_manager/zypper_manager.py index 9d76d04833e..a99c63f32e7 100644 --- a/ambari-common/src/main/python/ambari_commons/repo_manager/zypper_manager.py +++ b/ambari-common/src/main/python/ambari_commons/repo_manager/zypper_manager.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/repo_manager/zypper_parser.py b/ambari-common/src/main/python/ambari_commons/repo_manager/zypper_parser.py index 43feabc7974..769dc3dfdb1 100644 --- a/ambari-common/src/main/python/ambari_commons/repo_manager/zypper_parser.py +++ b/ambari-common/src/main/python/ambari_commons/repo_manager/zypper_parser.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/shell.py b/ambari-common/src/main/python/ambari_commons/shell.py index 883a44dc888..1a19c622211 100644 --- a/ambari-common/src/main/python/ambari_commons/shell.py +++ b/ambari-common/src/main/python/ambari_commons/shell.py @@ -1,5 +1,4 @@ -# !/usr/bin/env python - +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/unicode_tolerant_fs.py b/ambari-common/src/main/python/ambari_commons/unicode_tolerant_fs.py index 35de4dad74c..4831c466fb6 100644 --- a/ambari-common/src/main/python/ambari_commons/unicode_tolerant_fs.py +++ b/ambari-common/src/main/python/ambari_commons/unicode_tolerant_fs.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_commons/xml_utils.py b/ambari-common/src/main/python/ambari_commons/xml_utils.py index 31b2968c545..3c98af18b71 100644 --- a/ambari-common/src/main/python/ambari_commons/xml_utils.py +++ b/ambari-common/src/main/python/ambari_commons/xml_utils.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # 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 diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/__init__.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/__init__.py index d02aab22edc..783d3ff1c0b 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/__init__.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2 diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/__init__.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/__init__.py index 8dfcb719712..2fd739b5432 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/__init__.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ markupsafe diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/_bundle.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/_bundle.py index 724b1340af1..6ab250a5c9d 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/_bundle.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/_bundle.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2._markupsafe._bundle diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/_constants.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/_constants.py index 919bf03c509..e9cd4968482 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/_constants.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/_constants.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ markupsafe._constants diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/_native.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/_native.py index 454058cb869..b4afa072804 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/_native.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/_native.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ markupsafe._native diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/tests.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/tests.py index d66b4049836..ef2ea884032 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/tests.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_markupsafe/tests.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import gc import unittest from ambari_jinja2._markupsafe import Markup, escape, escape_silent diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_stringdefs.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_stringdefs.py index 9cd8400ece6..33212ce1803 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_stringdefs.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/_stringdefs.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2._stringdefs diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/bccache.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/bccache.py index e3fb34f6aa1..021b5677753 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/bccache.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/bccache.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.bccache diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/compiler.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/compiler.py index 74a897265fb..338561f56f9 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/compiler.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/compiler.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.compiler diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/constants.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/constants.py index ec0aafd47f2..1cdedee9c9b 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/constants.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/constants.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ jinja.constants diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/debug.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/debug.py index 34788db264a..4593288677c 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/debug.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/debug.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.debug diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/defaults.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/defaults.py index f5ad1774891..550ce4b6dec 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/defaults.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/defaults.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.defaults diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/environment.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/environment.py index 63e0a4d085b..9a9898bdd60 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/environment.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/environment.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.environment diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/exceptions.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/exceptions.py index 765b834846e..e5ef9bfa67f 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/exceptions.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/exceptions.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.exceptions diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/ext.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/ext.py index 1750c371b50..1a5421e1a96 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/ext.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/ext.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.ext diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/filters.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/filters.py index 23e26f41a04..25674e99a9a 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/filters.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/filters.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.filters diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/lexer.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/lexer.py index e073311dfe7..200551ffdd6 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/lexer.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/lexer.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.lexer diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/loaders.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/loaders.py index ef9f6cdc459..2a6071e67b4 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/loaders.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/loaders.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.loaders diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/meta.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/meta.py index 3067fcb83ff..b0bdb794163 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/meta.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/meta.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.meta diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/nodes.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/nodes.py index 7bf0393a08a..443e4ecd0b8 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/nodes.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/nodes.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.nodes diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/optimizer.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/optimizer.py index b014396afee..b95295ee9b3 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/optimizer.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/optimizer.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.optimizer diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/parser.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/parser.py index a14c0556042..ab043870e72 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/parser.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/parser.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.parser diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/runtime.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/runtime.py index 1078e23e413..7cbde32dfea 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/runtime.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/runtime.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.runtime diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/sandbox.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/sandbox.py index ccc06377dad..53a19e5a84d 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/sandbox.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/sandbox.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.sandbox diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/tests.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/tests.py index 0793e956f6b..df10b498795 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/tests.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/tests.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.tests diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/__init__.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/__init__.py index f125cffc218..bb71e084dc8 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/__init__.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/api.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/api.py index e3c51a22337..01e3442454a 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/api.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/api.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite.api diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/core_tags.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/core_tags.py index 37e3c50b65c..b748cf2203c 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/core_tags.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/core_tags.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite.core_tags diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/debug.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/debug.py index 55be94ae736..3226b35c98a 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/debug.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/debug.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite.debug diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/doctests.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/doctests.py index 72ddde5d5b4..721a9dada82 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/doctests.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/doctests.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite.doctests diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/ext.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/ext.py index 55e9442c36f..de0ce59d1db 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/ext.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/ext.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite.ext diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/filters.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/filters.py index 18ff197ac07..2af1b081970 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/filters.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/filters.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite.filters diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/imports.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/imports.py index 10d7d587e9d..24ce0736959 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/imports.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/imports.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite.imports diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/inheritance.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/inheritance.py index 676da825be4..54bec31a6ca 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/inheritance.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/inheritance.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite.inheritance diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/lexnparse.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/lexnparse.py index 6edf31d4bbe..93f2ccf0330 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/lexnparse.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/lexnparse.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite.lexnparse diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/loader.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/loader.py index 8f574bff47c..009b7b077f7 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/loader.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/loader.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite.loader diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/regression.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/regression.py index e18113f33f9..20e5b580d37 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/regression.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/regression.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite.regression diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/security.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/security.py index 06ca79209b9..840c93abc66 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/security.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/security.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite.security diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/tests.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/tests.py index 2f7b7922ce7..46789fa5768 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/tests.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/tests.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite.tests diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/utils.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/utils.py index fd2872e57d2..c9e32bf9367 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/utils.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite/utils.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.testsuite.utils diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/utils.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/utils.py index 984a9154678..54446e56a69 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/utils.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/utils.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.utils diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/visitor.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/visitor.py index 0561adfa856..25d3bf9b8b7 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/visitor.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/visitor.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ambari_jinja2.visitor diff --git a/ambari-common/src/main/python/ambari_jinja2/custom_fixers/fix_alt_unicode.py b/ambari-common/src/main/python/ambari_jinja2/custom_fixers/fix_alt_unicode.py index 96a81c16eb2..f61bebea889 100644 --- a/ambari-common/src/main/python/ambari_jinja2/custom_fixers/fix_alt_unicode.py +++ b/ambari-common/src/main/python/ambari_jinja2/custom_fixers/fix_alt_unicode.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from lib2to3 import fixer_base from lib2to3.fixer_util import Name, BlankLine diff --git a/ambari-common/src/main/python/ambari_jinja2/custom_fixers/fix_broken_reraising.py b/ambari-common/src/main/python/ambari_jinja2/custom_fixers/fix_broken_reraising.py index fd0ea6881ee..1fb573d2074 100644 --- a/ambari-common/src/main/python/ambari_jinja2/custom_fixers/fix_broken_reraising.py +++ b/ambari-common/src/main/python/ambari_jinja2/custom_fixers/fix_broken_reraising.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from lib2to3 import fixer_base, pytree from lib2to3.fixer_util import Name, BlankLine, Name, Attr, ArgList diff --git a/ambari-common/src/main/python/ambari_jinja2/custom_fixers/fix_xrange2.py b/ambari-common/src/main/python/ambari_jinja2/custom_fixers/fix_xrange2.py index 5d35e50514a..8ad87ff6751 100644 --- a/ambari-common/src/main/python/ambari_jinja2/custom_fixers/fix_xrange2.py +++ b/ambari-common/src/main/python/ambari_jinja2/custom_fixers/fix_xrange2.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from lib2to3 import fixer_base from lib2to3.fixer_util import Name, BlankLine diff --git a/ambari-common/src/main/python/ambari_jinja2/docs/cache_extension.py b/ambari-common/src/main/python/ambari_jinja2/docs/cache_extension.py index d3703e3813e..0212d2420af 100644 --- a/ambari-common/src/main/python/ambari_jinja2/docs/cache_extension.py +++ b/ambari-common/src/main/python/ambari_jinja2/docs/cache_extension.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from ambari_jinja2 import nodes from ambari_jinja2.ext import Extension diff --git a/ambari-common/src/main/python/ambari_jinja2/docs/conf.py b/ambari-common/src/main/python/ambari_jinja2/docs/conf.py index ba90c49a6be..7a494698c44 100644 --- a/ambari-common/src/main/python/ambari_jinja2/docs/conf.py +++ b/ambari-common/src/main/python/ambari_jinja2/docs/conf.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Jinja2 documentation build configuration file, created by diff --git a/ambari-common/src/main/python/ambari_jinja2/docs/jinjaext.py b/ambari-common/src/main/python/ambari_jinja2/docs/jinjaext.py index bdc7afd392a..67f1a1f47b2 100644 --- a/ambari-common/src/main/python/ambari_jinja2/docs/jinjaext.py +++ b/ambari-common/src/main/python/ambari_jinja2/docs/jinjaext.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Jinja Documentation Extensions diff --git a/ambari-common/src/main/python/ambari_jinja2/examples/basic/cycle.py b/ambari-common/src/main/python/ambari_jinja2/examples/basic/cycle.py index eaf840dcb49..3437cbe372d 100644 --- a/ambari-common/src/main/python/ambari_jinja2/examples/basic/cycle.py +++ b/ambari-common/src/main/python/ambari_jinja2/examples/basic/cycle.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from ambari_jinja2 import Environment diff --git a/ambari-common/src/main/python/ambari_jinja2/examples/basic/debugger.py b/ambari-common/src/main/python/ambari_jinja2/examples/basic/debugger.py index 707fe1e7df3..8fc69f5ecbb 100644 --- a/ambari-common/src/main/python/ambari_jinja2/examples/basic/debugger.py +++ b/ambari-common/src/main/python/ambari_jinja2/examples/basic/debugger.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from ambari_jinja2 import Environment from ambari_jinja2.loaders import FileSystemLoader diff --git a/ambari-common/src/main/python/ambari_jinja2/examples/basic/inheritance.py b/ambari-common/src/main/python/ambari_jinja2/examples/basic/inheritance.py index 6b0b81ea93a..306538ef83d 100644 --- a/ambari-common/src/main/python/ambari_jinja2/examples/basic/inheritance.py +++ b/ambari-common/src/main/python/ambari_jinja2/examples/basic/inheritance.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from ambari_jinja2 import Environment from ambari_jinja2.loaders import DictLoader diff --git a/ambari-common/src/main/python/ambari_jinja2/examples/basic/test.py b/ambari-common/src/main/python/ambari_jinja2/examples/basic/test.py index 5af89d7150c..b0cd24fbfaf 100644 --- a/ambari-common/src/main/python/ambari_jinja2/examples/basic/test.py +++ b/ambari-common/src/main/python/ambari_jinja2/examples/basic/test.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from ambari_jinja2 import Environment from ambari_jinja2.loaders import DictLoader diff --git a/ambari-common/src/main/python/ambari_jinja2/examples/basic/test_filter_and_linestatements.py b/ambari-common/src/main/python/ambari_jinja2/examples/basic/test_filter_and_linestatements.py index 52e10c392a3..87b537d4afd 100644 --- a/ambari-common/src/main/python/ambari_jinja2/examples/basic/test_filter_and_linestatements.py +++ b/ambari-common/src/main/python/ambari_jinja2/examples/basic/test_filter_and_linestatements.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from ambari_jinja2 import Environment diff --git a/ambari-common/src/main/python/ambari_jinja2/examples/basic/test_loop_filter.py b/ambari-common/src/main/python/ambari_jinja2/examples/basic/test_loop_filter.py index 852add9bf8b..65982603d66 100644 --- a/ambari-common/src/main/python/ambari_jinja2/examples/basic/test_loop_filter.py +++ b/ambari-common/src/main/python/ambari_jinja2/examples/basic/test_loop_filter.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from ambari_jinja2 import Environment tmpl = Environment().from_string("""\ diff --git a/ambari-common/src/main/python/ambari_jinja2/examples/basic/translate.py b/ambari-common/src/main/python/ambari_jinja2/examples/basic/translate.py index 9ec5b976cae..35946efbda9 100644 --- a/ambari-common/src/main/python/ambari_jinja2/examples/basic/translate.py +++ b/ambari-common/src/main/python/ambari_jinja2/examples/basic/translate.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from ambari_jinja2 import Environment print(Environment(extensions=['ambari_jinja2.i18n.TransExtension']).from_string("""\ diff --git a/ambari-common/src/main/python/ambari_jinja2/examples/bench.py b/ambari-common/src/main/python/ambari_jinja2/examples/bench.py index a61074b9eee..034103b9bcd 100644 --- a/ambari-common/src/main/python/ambari_jinja2/examples/bench.py +++ b/ambari-common/src/main/python/ambari_jinja2/examples/bench.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """\ This benchmark compares some python templating engines with Jinja 2 so that we get a picture of how fast Jinja 2 is for a semi real world diff --git a/ambari-common/src/main/python/ambari_jinja2/examples/profile.py b/ambari-common/src/main/python/ambari_jinja2/examples/profile.py index 4b452277817..20be3de54ce 100644 --- a/ambari-common/src/main/python/ambari_jinja2/examples/profile.py +++ b/ambari-common/src/main/python/ambari_jinja2/examples/profile.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 try: from cProfile import Profile except ImportError: diff --git a/ambari-common/src/main/python/ambari_jinja2/examples/rwbench/djangoext.py b/ambari-common/src/main/python/ambari_jinja2/examples/rwbench/djangoext.py index 9e9fa6cf0d7..94edb4f35dc 100644 --- a/ambari-common/src/main/python/ambari_jinja2/examples/rwbench/djangoext.py +++ b/ambari-common/src/main/python/ambari_jinja2/examples/rwbench/djangoext.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from rwbench import ROOT from os.path import join diff --git a/ambari-common/src/main/python/ambari_jinja2/examples/rwbench/rwbench.py b/ambari-common/src/main/python/ambari_jinja2/examples/rwbench/rwbench.py index 1d3854ed169..368dbe4ae40 100644 --- a/ambari-common/src/main/python/ambari_jinja2/examples/rwbench/rwbench.py +++ b/ambari-common/src/main/python/ambari_jinja2/examples/rwbench/rwbench.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ RealWorldish Benchmark diff --git a/ambari-common/src/main/python/ambari_jinja2/ext/django2jinja/django2jinja.py b/ambari-common/src/main/python/ambari_jinja2/ext/django2jinja/django2jinja.py index 6418b1e2fed..93eb054968c 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ext/django2jinja/django2jinja.py +++ b/ambari-common/src/main/python/ambari_jinja2/ext/django2jinja/django2jinja.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Django to Jinja diff --git a/ambari-common/src/main/python/ambari_jinja2/ext/django2jinja/example.py b/ambari-common/src/main/python/ambari_jinja2/ext/django2jinja/example.py index 2d4ab9add84..06e883f812d 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ext/django2jinja/example.py +++ b/ambari-common/src/main/python/ambari_jinja2/ext/django2jinja/example.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from django.conf import settings settings.configure(TEMPLATE_DIRS=['templates'], TEMPLATE_DEBUG=True) diff --git a/ambari-common/src/main/python/ambari_jinja2/ext/djangojinja2.py b/ambari-common/src/main/python/ambari_jinja2/ext/djangojinja2.py index 93c364ecf96..deb6c5e1009 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ext/djangojinja2.py +++ b/ambari-common/src/main/python/ambari_jinja2/ext/djangojinja2.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ djangoambari_jinja2 diff --git a/ambari-common/src/main/python/ambari_jinja2/ext/inlinegettext.py b/ambari-common/src/main/python/ambari_jinja2/ext/inlinegettext.py index ba585f3e32d..df09c5af4d0 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ext/inlinegettext.py +++ b/ambari-common/src/main/python/ambari_jinja2/ext/inlinegettext.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Inline Gettext diff --git a/ambari-common/src/main/python/ambari_jinja2/setup.py b/ambari-common/src/main/python/ambari_jinja2/setup.py index 7a7c242bc22..4698a7019e9 100644 --- a/ambari-common/src/main/python/ambari_jinja2/setup.py +++ b/ambari-common/src/main/python/ambari_jinja2/setup.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Jinja2 diff --git a/ambari-common/src/main/python/ambari_pbkdf2/__init__.py b/ambari-common/src/main/python/ambari_pbkdf2/__init__.py index e69de29bb2d..e5a0d9b4834 100644 --- a/ambari-common/src/main/python/ambari_pbkdf2/__init__.py +++ b/ambari-common/src/main/python/ambari_pbkdf2/__init__.py @@ -0,0 +1 @@ +#!/usr/bin/env python3 diff --git a/ambari-common/src/main/python/ambari_pbkdf2/pbkdf2.py b/ambari-common/src/main/python/ambari_pbkdf2/pbkdf2.py index 7ca849242f2..58fd4e79131 100644 --- a/ambari-common/src/main/python/ambari_pbkdf2/pbkdf2.py +++ b/ambari-common/src/main/python/ambari_pbkdf2/pbkdf2.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # -*- coding: ascii -*- ########################################################################### # pbkdf2 - PKCS#5 v2.0 Password-Based Key Derivation diff --git a/ambari-common/src/main/python/ambari_pyaes/__init__.py b/ambari-common/src/main/python/ambari_pyaes/__init__.py index 5712f794a76..504326bef84 100644 --- a/ambari-common/src/main/python/ambari_pyaes/__init__.py +++ b/ambari-common/src/main/python/ambari_pyaes/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # The MIT License (MIT) # # Copyright (c) 2014 Richard Moore diff --git a/ambari-common/src/main/python/ambari_pyaes/aes.py b/ambari-common/src/main/python/ambari_pyaes/aes.py index 4ebb7eddc37..99527bfa0a3 100644 --- a/ambari-common/src/main/python/ambari_pyaes/aes.py +++ b/ambari-common/src/main/python/ambari_pyaes/aes.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # The MIT License (MIT) # # Copyright (c) 2014 Richard Moore diff --git a/ambari-common/src/main/python/ambari_pyaes/blockfeeder.py b/ambari-common/src/main/python/ambari_pyaes/blockfeeder.py index f4113c37f9b..e775aff2775 100644 --- a/ambari-common/src/main/python/ambari_pyaes/blockfeeder.py +++ b/ambari-common/src/main/python/ambari_pyaes/blockfeeder.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # The MIT License (MIT) # # Copyright (c) 2014 Richard Moore diff --git a/ambari-common/src/main/python/ambari_pyaes/util.py b/ambari-common/src/main/python/ambari_pyaes/util.py index 081a37594f5..3a63b0e9ade 100644 --- a/ambari-common/src/main/python/ambari_pyaes/util.py +++ b/ambari-common/src/main/python/ambari_pyaes/util.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # The MIT License (MIT) # # Copyright (c) 2014 Richard Moore diff --git a/ambari-common/src/main/python/ambari_simplejson/__init__.py b/ambari-common/src/main/python/ambari_simplejson/__init__.py index 152ad451ed0..fa52cd97227 100644 --- a/ambari-common/src/main/python/ambari_simplejson/__init__.py +++ b/ambari-common/src/main/python/ambari_simplejson/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 r"""JSON (JavaScript Object Notation) is a subset of JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data interchange format. diff --git a/ambari-common/src/main/python/ambari_simplejson/_speedups/__init__.py b/ambari-common/src/main/python/ambari_simplejson/_speedups/__init__.py index e69de29bb2d..e5a0d9b4834 100644 --- a/ambari-common/src/main/python/ambari_simplejson/_speedups/__init__.py +++ b/ambari-common/src/main/python/ambari_simplejson/_speedups/__init__.py @@ -0,0 +1 @@ +#!/usr/bin/env python3 diff --git a/ambari-common/src/main/python/ambari_simplejson/_speedups/posix/__init__.py b/ambari-common/src/main/python/ambari_simplejson/_speedups/posix/__init__.py index e69de29bb2d..e5a0d9b4834 100644 --- a/ambari-common/src/main/python/ambari_simplejson/_speedups/posix/__init__.py +++ b/ambari-common/src/main/python/ambari_simplejson/_speedups/posix/__init__.py @@ -0,0 +1 @@ +#!/usr/bin/env python3 diff --git a/ambari-common/src/main/python/ambari_simplejson/_speedups/posix/usc2/__init__.py b/ambari-common/src/main/python/ambari_simplejson/_speedups/posix/usc2/__init__.py index e69de29bb2d..e5a0d9b4834 100644 --- a/ambari-common/src/main/python/ambari_simplejson/_speedups/posix/usc2/__init__.py +++ b/ambari-common/src/main/python/ambari_simplejson/_speedups/posix/usc2/__init__.py @@ -0,0 +1 @@ +#!/usr/bin/env python3 diff --git a/ambari-common/src/main/python/ambari_simplejson/_speedups/posix/usc4/__init__.py b/ambari-common/src/main/python/ambari_simplejson/_speedups/posix/usc4/__init__.py index e69de29bb2d..e5a0d9b4834 100644 --- a/ambari-common/src/main/python/ambari_simplejson/_speedups/posix/usc4/__init__.py +++ b/ambari-common/src/main/python/ambari_simplejson/_speedups/posix/usc4/__init__.py @@ -0,0 +1 @@ +#!/usr/bin/env python3 diff --git a/ambari-common/src/main/python/ambari_simplejson/_speedups/ppc/__init__.py b/ambari-common/src/main/python/ambari_simplejson/_speedups/ppc/__init__.py index e69de29bb2d..e5a0d9b4834 100644 --- a/ambari-common/src/main/python/ambari_simplejson/_speedups/ppc/__init__.py +++ b/ambari-common/src/main/python/ambari_simplejson/_speedups/ppc/__init__.py @@ -0,0 +1 @@ +#!/usr/bin/env python3 diff --git a/ambari-common/src/main/python/ambari_simplejson/_speedups/win/__init__.py b/ambari-common/src/main/python/ambari_simplejson/_speedups/win/__init__.py index e69de29bb2d..e5a0d9b4834 100644 --- a/ambari-common/src/main/python/ambari_simplejson/_speedups/win/__init__.py +++ b/ambari-common/src/main/python/ambari_simplejson/_speedups/win/__init__.py @@ -0,0 +1 @@ +#!/usr/bin/env python3 diff --git a/ambari-common/src/main/python/ambari_simplejson/c_extension.py b/ambari-common/src/main/python/ambari_simplejson/c_extension.py index 0a0171f9579..00dc6b3188e 100644 --- a/ambari-common/src/main/python/ambari_simplejson/c_extension.py +++ b/ambari-common/src/main/python/ambari_simplejson/c_extension.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_simplejson/compat.py b/ambari-common/src/main/python/ambari_simplejson/compat.py index 5fc14128443..22b63ce4fd3 100644 --- a/ambari-common/src/main/python/ambari_simplejson/compat.py +++ b/ambari-common/src/main/python/ambari_simplejson/compat.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Python 3 compatibility shims """ import sys diff --git a/ambari-common/src/main/python/ambari_simplejson/decoder.py b/ambari-common/src/main/python/ambari_simplejson/decoder.py index 33fcf1cc76a..6bde1b62072 100644 --- a/ambari-common/src/main/python/ambari_simplejson/decoder.py +++ b/ambari-common/src/main/python/ambari_simplejson/decoder.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Implementation of JSONDecoder """ diff --git a/ambari-common/src/main/python/ambari_simplejson/encoder.py b/ambari-common/src/main/python/ambari_simplejson/encoder.py index de14a30d637..5b993dafa7b 100644 --- a/ambari-common/src/main/python/ambari_simplejson/encoder.py +++ b/ambari-common/src/main/python/ambari_simplejson/encoder.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Implementation of JSONEncoder """ diff --git a/ambari-common/src/main/python/ambari_simplejson/errors.py b/ambari-common/src/main/python/ambari_simplejson/errors.py index b97ab1e913f..b1dcdd18268 100644 --- a/ambari-common/src/main/python/ambari_simplejson/errors.py +++ b/ambari-common/src/main/python/ambari_simplejson/errors.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Error classes used by simplejson """ __all__ = ['JSONDecodeError'] diff --git a/ambari-common/src/main/python/ambari_simplejson/ordered_dict.py b/ambari-common/src/main/python/ambari_simplejson/ordered_dict.py index 2c9d213b329..324968005fc 100644 --- a/ambari-common/src/main/python/ambari_simplejson/ordered_dict.py +++ b/ambari-common/src/main/python/ambari_simplejson/ordered_dict.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Drop-in replacement for collections.OrderedDict by Raymond Hettinger http://code.activestate.com/recipes/576693/ diff --git a/ambari-common/src/main/python/ambari_simplejson/raw_json.py b/ambari-common/src/main/python/ambari_simplejson/raw_json.py index 2071a70206b..7b65e574acd 100644 --- a/ambari-common/src/main/python/ambari_simplejson/raw_json.py +++ b/ambari-common/src/main/python/ambari_simplejson/raw_json.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Implementation of RawJSON """ diff --git a/ambari-common/src/main/python/ambari_simplejson/scanner.py b/ambari-common/src/main/python/ambari_simplejson/scanner.py index ab399ec1fa5..9813529142e 100644 --- a/ambari-common/src/main/python/ambari_simplejson/scanner.py +++ b/ambari-common/src/main/python/ambari_simplejson/scanner.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """JSON token scanner """ import re diff --git a/ambari-common/src/main/python/ambari_stomp/__init__.py b/ambari-common/src/main/python/ambari_stomp/__init__.py index 3654cee57a0..fee63e158d2 100644 --- a/ambari-common/src/main/python/ambari_stomp/__init__.py +++ b/ambari-common/src/main/python/ambari_stomp/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """stomp.py provides connectivity to a message broker supporting the STOMP protocol. Protocol versions 1.0, 1.1 and 1.2 are supported. diff --git a/ambari-common/src/main/python/ambari_stomp/__main__.py b/ambari-common/src/main/python/ambari_stomp/__main__.py index 2fc1c36ec84..13463073a46 100644 --- a/ambari-common/src/main/python/ambari_stomp/__main__.py +++ b/ambari-common/src/main/python/ambari_stomp/__main__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """The stomp.py command line client (used for testing or simple STOMP command scripting). """ diff --git a/ambari-common/src/main/python/ambari_stomp/adapter/__init__.py b/ambari-common/src/main/python/ambari_stomp/adapter/__init__.py index 7ae47b0213b..6030cf969ed 100644 --- a/ambari-common/src/main/python/ambari_stomp/adapter/__init__.py +++ b/ambari-common/src/main/python/ambari_stomp/adapter/__init__.py @@ -1,2 +1,3 @@ +#!/usr/bin/env python3 """Non-standard adapters. """ diff --git a/ambari-common/src/main/python/ambari_stomp/adapter/multicast.py b/ambari-common/src/main/python/ambari_stomp/adapter/multicast.py index 1d3a5172f75..d426ebb427b 100644 --- a/ambari-common/src/main/python/ambari_stomp/adapter/multicast.py +++ b/ambari-common/src/main/python/ambari_stomp/adapter/multicast.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Multicast transport for stomp.py. Obviously not a typical message broker, but convenient if you don't have a broker, but still want to use stomp.py diff --git a/ambari-common/src/main/python/ambari_stomp/adapter/websocket.py b/ambari-common/src/main/python/ambari_stomp/adapter/websocket.py index 7b9dd29229b..371f670884f 100644 --- a/ambari-common/src/main/python/ambari_stomp/adapter/websocket.py +++ b/ambari-common/src/main/python/ambari_stomp/adapter/websocket.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/ambari_stomp/backward.py b/ambari-common/src/main/python/ambari_stomp/backward.py index 0d8a0ebb29e..4f9cd7ca180 100644 --- a/ambari-common/src/main/python/ambari_stomp/backward.py +++ b/ambari-common/src/main/python/ambari_stomp/backward.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import sys """Functions to support backwards compatibility. diff --git a/ambari-common/src/main/python/ambari_stomp/backward2.py b/ambari-common/src/main/python/ambari_stomp/backward2.py index 80bf6b886df..b3919806148 100644 --- a/ambari-common/src/main/python/ambari_stomp/backward2.py +++ b/ambari-common/src/main/python/ambari_stomp/backward2.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Python2-specific versions of various functions used by stomp.py """ diff --git a/ambari-common/src/main/python/ambari_stomp/backward3.py b/ambari-common/src/main/python/ambari_stomp/backward3.py index 50d59bc7cf2..4c6db7d8cf7 100644 --- a/ambari-common/src/main/python/ambari_stomp/backward3.py +++ b/ambari-common/src/main/python/ambari_stomp/backward3.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Python3-specific versions of various functions used by stomp.py """ diff --git a/ambari-common/src/main/python/ambari_stomp/backwardsock.py b/ambari-common/src/main/python/ambari_stomp/backwardsock.py index ee6d4bf4308..a90a570fee1 100644 --- a/ambari-common/src/main/python/ambari_stomp/backwardsock.py +++ b/ambari-common/src/main/python/ambari_stomp/backwardsock.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Networking functions to support backwards compatibility. Distinct from the backward(2/3) functions to handle ipv6 changes between Python versions 2.5 and 2.6. diff --git a/ambari-common/src/main/python/ambari_stomp/backwardsock25.py b/ambari-common/src/main/python/ambari_stomp/backwardsock25.py index 8306d756912..9b4941ee390 100644 --- a/ambari-common/src/main/python/ambari_stomp/backwardsock25.py +++ b/ambari-common/src/main/python/ambari_stomp/backwardsock25.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Python2.5 (and lower) specific versions of various networking (ipv6) functions used by stomp.py """ diff --git a/ambari-common/src/main/python/ambari_stomp/backwardsock26.py b/ambari-common/src/main/python/ambari_stomp/backwardsock26.py index 14d86d4ed88..d6c77c6aced 100644 --- a/ambari-common/src/main/python/ambari_stomp/backwardsock26.py +++ b/ambari-common/src/main/python/ambari_stomp/backwardsock26.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Python2.6 (and greater) specific versions of various networking (ipv6) functions used by stomp.py """ diff --git a/ambari-common/src/main/python/ambari_stomp/colors.py b/ambari-common/src/main/python/ambari_stomp/colors.py index 65d24b123f4..e7c7f29c2c4 100644 --- a/ambari-common/src/main/python/ambari_stomp/colors.py +++ b/ambari-common/src/main/python/ambari_stomp/colors.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Color 'constants' used by the command line client. """ diff --git a/ambari-common/src/main/python/ambari_stomp/connect.py b/ambari-common/src/main/python/ambari_stomp/connect.py index e5c78f94be9..46e8fa8e2c2 100644 --- a/ambari-common/src/main/python/ambari_stomp/connect.py +++ b/ambari-common/src/main/python/ambari_stomp/connect.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Main entry point for clients to create a STOMP connection. Provides connection classes for `1.0 `_, diff --git a/ambari-common/src/main/python/ambari_stomp/constants.py b/ambari-common/src/main/python/ambari_stomp/constants.py index 87e8acceda3..fa6a3062f37 100644 --- a/ambari-common/src/main/python/ambari_stomp/constants.py +++ b/ambari-common/src/main/python/ambari_stomp/constants.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """The STOMP command and header name strings. """ diff --git a/ambari-common/src/main/python/ambari_stomp/exception.py b/ambari-common/src/main/python/ambari_stomp/exception.py index 398096bbb0d..34608a468c3 100644 --- a/ambari-common/src/main/python/ambari_stomp/exception.py +++ b/ambari-common/src/main/python/ambari_stomp/exception.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Errors thrown by stomp.py connections. """ diff --git a/ambari-common/src/main/python/ambari_stomp/listener.py b/ambari-common/src/main/python/ambari_stomp/listener.py index 9ed040af64c..3533a24df27 100644 --- a/ambari-common/src/main/python/ambari_stomp/listener.py +++ b/ambari-common/src/main/python/ambari_stomp/listener.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Various listeners for using with stomp.py connections. """ diff --git a/ambari-common/src/main/python/ambari_stomp/protocol.py b/ambari-common/src/main/python/ambari_stomp/protocol.py index 44e83cc1c93..0c763bd2a49 100644 --- a/ambari-common/src/main/python/ambari_stomp/protocol.py +++ b/ambari-common/src/main/python/ambari_stomp/protocol.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Provides the 1.0, 1.1 and 1.2 protocol classes. """ diff --git a/ambari-common/src/main/python/ambari_stomp/transport.py b/ambari-common/src/main/python/ambari_stomp/transport.py index d79f0940758..7c6a5071554 100644 --- a/ambari-common/src/main/python/ambari_stomp/transport.py +++ b/ambari-common/src/main/python/ambari_stomp/transport.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """Provides the underlying transport functionality (for stomp message transmission) - (mostly) independent from the actual STOMP protocol """ diff --git a/ambari-common/src/main/python/ambari_stomp/utils.py b/ambari-common/src/main/python/ambari_stomp/utils.py index 204fb16fe91..6aaaf166ab6 100644 --- a/ambari-common/src/main/python/ambari_stomp/utils.py +++ b/ambari-common/src/main/python/ambari_stomp/utils.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """General utility functions. """ diff --git a/ambari-common/src/main/python/ambari_ws4py/__init__.py b/ambari-common/src/main/python/ambari_ws4py/__init__.py index bcd60f998fe..1d824b5008d 100644 --- a/ambari-common/src/main/python/ambari_ws4py/__init__.py +++ b/ambari-common/src/main/python/ambari_ws4py/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Redistribution and use in source and binary forms, with or without diff --git a/ambari-common/src/main/python/ambari_ws4py/client/__init__.py b/ambari-common/src/main/python/ambari_ws4py/client/__init__.py index ce1c98fbbf9..04ac4e4a668 100644 --- a/ambari-common/src/main/python/ambari_ws4py/client/__init__.py +++ b/ambari-common/src/main/python/ambari_ws4py/client/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from base64 import b64encode from hashlib import sha1 diff --git a/ambari-common/src/main/python/ambari_ws4py/client/geventclient.py b/ambari-common/src/main/python/ambari_ws4py/client/geventclient.py index ace6fcc0153..c80acd37f57 100644 --- a/ambari-common/src/main/python/ambari_ws4py/client/geventclient.py +++ b/ambari-common/src/main/python/ambari_ws4py/client/geventclient.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import copy diff --git a/ambari-common/src/main/python/ambari_ws4py/client/threadedclient.py b/ambari-common/src/main/python/ambari_ws4py/client/threadedclient.py index dc7b2e01ee6..db53f2791cd 100644 --- a/ambari-common/src/main/python/ambari_ws4py/client/threadedclient.py +++ b/ambari-common/src/main/python/ambari_ws4py/client/threadedclient.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import threading diff --git a/ambari-common/src/main/python/ambari_ws4py/client/tornadoclient.py b/ambari-common/src/main/python/ambari_ws4py/client/tornadoclient.py index 5f4d67d2d77..290bb8ccd98 100644 --- a/ambari-common/src/main/python/ambari_ws4py/client/tornadoclient.py +++ b/ambari-common/src/main/python/ambari_ws4py/client/tornadoclient.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import ssl diff --git a/ambari-common/src/main/python/ambari_ws4py/compat.py b/ambari-common/src/main/python/ambari_ws4py/compat.py index 5d19699a06d..c6abc521bed 100644 --- a/ambari-common/src/main/python/ambari_ws4py/compat.py +++ b/ambari-common/src/main/python/ambari_ws4py/compat.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- __doc__ = """ This compatibility module is inspired by the one found diff --git a/ambari-common/src/main/python/ambari_ws4py/exc.py b/ambari-common/src/main/python/ambari_ws4py/exc.py index bfefea4b60c..6e094288774 100644 --- a/ambari-common/src/main/python/ambari_ws4py/exc.py +++ b/ambari-common/src/main/python/ambari_ws4py/exc.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- __all__ = ['WebSocketException', 'FrameTooLargeException', 'ProtocolException', diff --git a/ambari-common/src/main/python/ambari_ws4py/framing.py b/ambari-common/src/main/python/ambari_ws4py/framing.py index a7f62c8c048..baf627388dc 100644 --- a/ambari-common/src/main/python/ambari_ws4py/framing.py +++ b/ambari-common/src/main/python/ambari_ws4py/framing.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from struct import pack, unpack diff --git a/ambari-common/src/main/python/ambari_ws4py/manager.py b/ambari-common/src/main/python/ambari_ws4py/manager.py index 386f8a27785..fc5a6b57e0c 100644 --- a/ambari-common/src/main/python/ambari_ws4py/manager.py +++ b/ambari-common/src/main/python/ambari_ws4py/manager.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- __doc__ = """ The manager module provides a selected classes to diff --git a/ambari-common/src/main/python/ambari_ws4py/messaging.py b/ambari-common/src/main/python/ambari_ws4py/messaging.py index f8a86adf09a..cce3ce22d6a 100644 --- a/ambari-common/src/main/python/ambari_ws4py/messaging.py +++ b/ambari-common/src/main/python/ambari_ws4py/messaging.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import struct diff --git a/ambari-common/src/main/python/ambari_ws4py/server/__init__.py b/ambari-common/src/main/python/ambari_ws4py/server/__init__.py index e69de29bb2d..e5a0d9b4834 100644 --- a/ambari-common/src/main/python/ambari_ws4py/server/__init__.py +++ b/ambari-common/src/main/python/ambari_ws4py/server/__init__.py @@ -0,0 +1 @@ +#!/usr/bin/env python3 diff --git a/ambari-common/src/main/python/ambari_ws4py/server/cherrypyserver.py b/ambari-common/src/main/python/ambari_ws4py/server/cherrypyserver.py index 98e26d417c4..0459139f850 100644 --- a/ambari-common/src/main/python/ambari_ws4py/server/cherrypyserver.py +++ b/ambari-common/src/main/python/ambari_ws4py/server/cherrypyserver.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- __doc__ = """ WebSocket within CherryPy is a tricky bit since CherryPy is diff --git a/ambari-common/src/main/python/ambari_ws4py/server/geventserver.py b/ambari-common/src/main/python/ambari_ws4py/server/geventserver.py index 239f86c1eb4..cf828e3b596 100644 --- a/ambari-common/src/main/python/ambari_ws4py/server/geventserver.py +++ b/ambari-common/src/main/python/ambari_ws4py/server/geventserver.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- __doc__ = """ WSGI entities to support WebSocket from within gevent. diff --git a/ambari-common/src/main/python/ambari_ws4py/server/wsgirefserver.py b/ambari-common/src/main/python/ambari_ws4py/server/wsgirefserver.py index 3973dd69ac2..358e55b4e69 100644 --- a/ambari-common/src/main/python/ambari_ws4py/server/wsgirefserver.py +++ b/ambari-common/src/main/python/ambari_ws4py/server/wsgirefserver.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- __doc__ = """ Add WebSocket support to the built-in WSGI server diff --git a/ambari-common/src/main/python/ambari_ws4py/server/wsgiutils.py b/ambari-common/src/main/python/ambari_ws4py/server/wsgiutils.py index b3eac11b747..121ec432531 100644 --- a/ambari-common/src/main/python/ambari_ws4py/server/wsgiutils.py +++ b/ambari-common/src/main/python/ambari_ws4py/server/wsgiutils.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- __doc__ = """ This module provides a WSGI application suitable diff --git a/ambari-common/src/main/python/ambari_ws4py/streaming.py b/ambari-common/src/main/python/ambari_ws4py/streaming.py index 5f075082b78..2dfd2965e3c 100644 --- a/ambari-common/src/main/python/ambari_ws4py/streaming.py +++ b/ambari-common/src/main/python/ambari_ws4py/streaming.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import struct from struct import unpack diff --git a/ambari-common/src/main/python/ambari_ws4py/utf8validator.py b/ambari-common/src/main/python/ambari_ws4py/utf8validator.py index 50b19e5d07d..7127ee6a1db 100644 --- a/ambari-common/src/main/python/ambari_ws4py/utf8validator.py +++ b/ambari-common/src/main/python/ambari_ws4py/utf8validator.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # coding=utf-8 ############################################################################### diff --git a/ambari-common/src/main/python/ambari_ws4py/websocket.py b/ambari-common/src/main/python/ambari_ws4py/websocket.py index 53f1a438b21..05ed3911f3c 100644 --- a/ambari-common/src/main/python/ambari_ws4py/websocket.py +++ b/ambari-common/src/main/python/ambari_ws4py/websocket.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import logging import socket diff --git a/ambari-common/src/main/python/pluggable_stack_definition/__init__.py b/ambari-common/src/main/python/pluggable_stack_definition/__init__.py index 0a0e1ca9c26..416b098c9ad 100644 --- a/ambari-common/src/main/python/pluggable_stack_definition/__init__.py +++ b/ambari-common/src/main/python/pluggable_stack_definition/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/core/providers/packaging.py b/ambari-common/src/main/python/resource_management/core/providers/packaging.py index 19f8d465e7a..b59df7ab609 100644 --- a/ambari-common/src/main/python/resource_management/core/providers/packaging.py +++ b/ambari-common/src/main/python/resource_management/core/providers/packaging.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/core/providers/windows/__init__.py b/ambari-common/src/main/python/resource_management/core/providers/windows/__init__.py index b0b988b18ba..6b1f9423dee 100644 --- a/ambari-common/src/main/python/resource_management/core/providers/windows/__init__.py +++ b/ambari-common/src/main/python/resource_management/core/providers/windows/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/core/providers/windows/service.py b/ambari-common/src/main/python/resource_management/core/providers/windows/service.py index e6de8236e91..e9b8ebd1358 100644 --- a/ambari-common/src/main/python/resource_management/core/providers/windows/service.py +++ b/ambari-common/src/main/python/resource_management/core/providers/windows/service.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/core/providers/windows/system.py b/ambari-common/src/main/python/resource_management/core/providers/windows/system.py index ee64250b461..a3b7ef95047 100644 --- a/ambari-common/src/main/python/resource_management/core/providers/windows/system.py +++ b/ambari-common/src/main/python/resource_management/core/providers/windows/system.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/core/resources/jcepolicyinfo.py b/ambari-common/src/main/python/resource_management/core/resources/jcepolicyinfo.py index 4d1c5e225a7..06a7f500b24 100644 --- a/ambari-common/src/main/python/resource_management/core/resources/jcepolicyinfo.py +++ b/ambari-common/src/main/python/resource_management/core/resources/jcepolicyinfo.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/core/sudo.py b/ambari-common/src/main/python/resource_management/core/sudo.py index a5949a075ba..e55f9f3b0b7 100644 --- a/ambari-common/src/main/python/resource_management/core/sudo.py +++ b/ambari-common/src/main/python/resource_management/core/sudo.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/constants.py b/ambari-common/src/main/python/resource_management/libraries/functions/constants.py index 7b5fedbaf1d..b149147b067 100644 --- a/ambari-common/src/main/python/resource_management/libraries/functions/constants.py +++ b/ambari-common/src/main/python/resource_management/libraries/functions/constants.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/format_jvm_option.py b/ambari-common/src/main/python/resource_management/libraries/functions/format_jvm_option.py index 74694e291f6..bc769fd0685 100644 --- a/ambari-common/src/main/python/resource_management/libraries/functions/format_jvm_option.py +++ b/ambari-common/src/main/python/resource_management/libraries/functions/format_jvm_option.py @@ -43,5 +43,4 @@ def format_jvm_option(name, default_value): else: return default_value else: - return default_value - \ No newline at end of file + return default_value \ No newline at end of file diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/install_jdbc_driver.py b/ambari-common/src/main/python/resource_management/libraries/functions/install_jdbc_driver.py index be77cfd3f5b..a67f45db58d 100644 --- a/ambari-common/src/main/python/resource_management/libraries/functions/install_jdbc_driver.py +++ b/ambari-common/src/main/python/resource_management/libraries/functions/install_jdbc_driver.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/install_windows_msi.py b/ambari-common/src/main/python/resource_management/libraries/functions/install_windows_msi.py index c878ce7e6a1..228b243ed9f 100644 --- a/ambari-common/src/main/python/resource_management/libraries/functions/install_windows_msi.py +++ b/ambari-common/src/main/python/resource_management/libraries/functions/install_windows_msi.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/module_version.py b/ambari-common/src/main/python/resource_management/libraries/functions/module_version.py index d8307b8db9a..194161382a2 100644 --- a/ambari-common/src/main/python/resource_management/libraries/functions/module_version.py +++ b/ambari-common/src/main/python/resource_management/libraries/functions/module_version.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/mpack_version.py b/ambari-common/src/main/python/resource_management/libraries/functions/mpack_version.py index 4c9816f02f5..0fc836eea54 100644 --- a/ambari-common/src/main/python/resource_management/libraries/functions/mpack_version.py +++ b/ambari-common/src/main/python/resource_management/libraries/functions/mpack_version.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/reload_windows_env.py b/ambari-common/src/main/python/resource_management/libraries/functions/reload_windows_env.py index d574c56a41d..e913a0a8263 100644 --- a/ambari-common/src/main/python/resource_management/libraries/functions/reload_windows_env.py +++ b/ambari-common/src/main/python/resource_management/libraries/functions/reload_windows_env.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/repository_util.py b/ambari-common/src/main/python/resource_management/libraries/functions/repository_util.py index 7fa60cfe775..beb740edd7a 100644 --- a/ambari-common/src/main/python/resource_management/libraries/functions/repository_util.py +++ b/ambari-common/src/main/python/resource_management/libraries/functions/repository_util.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/security_commons.py b/ambari-common/src/main/python/resource_management/libraries/functions/security_commons.py index 1f6ed179cdd..b2a2ba63da4 100644 --- a/ambari-common/src/main/python/resource_management/libraries/functions/security_commons.py +++ b/ambari-common/src/main/python/resource_management/libraries/functions/security_commons.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/simulate_perf_cluster_alert_behaviour.py b/ambari-common/src/main/python/resource_management/libraries/functions/simulate_perf_cluster_alert_behaviour.py index 1d901aac6d7..7201f0d38f7 100644 --- a/ambari-common/src/main/python/resource_management/libraries/functions/simulate_perf_cluster_alert_behaviour.py +++ b/ambari-common/src/main/python/resource_management/libraries/functions/simulate_perf_cluster_alert_behaviour.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/solr_cloud_util.py b/ambari-common/src/main/python/resource_management/libraries/functions/solr_cloud_util.py index 35183e9d1a0..a67bb7e3ca8 100644 --- a/ambari-common/src/main/python/resource_management/libraries/functions/solr_cloud_util.py +++ b/ambari-common/src/main/python/resource_management/libraries/functions/solr_cloud_util.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/stack_tools.py b/ambari-common/src/main/python/resource_management/libraries/functions/stack_tools.py index c578b1171e1..3cf11b84fa3 100644 --- a/ambari-common/src/main/python/resource_management/libraries/functions/stack_tools.py +++ b/ambari-common/src/main/python/resource_management/libraries/functions/stack_tools.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/windows_service_utils.py b/ambari-common/src/main/python/resource_management/libraries/functions/windows_service_utils.py index 019a32686da..06ab4de2970 100644 --- a/ambari-common/src/main/python/resource_management/libraries/functions/windows_service_utils.py +++ b/ambari-common/src/main/python/resource_management/libraries/functions/windows_service_utils.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py b/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py index a6b0c3d7975..699cc0e90d1 100644 --- a/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py +++ b/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # !/usr/bin/env python """ Licensed to the Apache Software Foundation (ASF) under one diff --git a/ambari-common/src/main/python/resource_management/libraries/providers/msi.py b/ambari-common/src/main/python/resource_management/libraries/providers/msi.py index 8048fa3c46b..103b2597de5 100644 --- a/ambari-common/src/main/python/resource_management/libraries/providers/msi.py +++ b/ambari-common/src/main/python/resource_management/libraries/providers/msi.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/resources/hdfs_resource.py b/ambari-common/src/main/python/resource_management/libraries/resources/hdfs_resource.py index 6d44800eafa..1f13e65491f 100644 --- a/ambari-common/src/main/python/resource_management/libraries/resources/hdfs_resource.py +++ b/ambari-common/src/main/python/resource_management/libraries/resources/hdfs_resource.py @@ -1,4 +1,4 @@ -# !/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/resources/msi.py b/ambari-common/src/main/python/resource_management/libraries/resources/msi.py index 72d06c5d553..e343997a0a9 100644 --- a/ambari-common/src/main/python/resource_management/libraries/resources/msi.py +++ b/ambari-common/src/main/python/resource_management/libraries/resources/msi.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/script/dummy.py b/ambari-common/src/main/python/resource_management/libraries/script/dummy.py index a1608ad93cc..745a0c6e063 100644 --- a/ambari-common/src/main/python/resource_management/libraries/script/dummy.py +++ b/ambari-common/src/main/python/resource_management/libraries/script/dummy.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/resource_management/libraries/script/hook.py b/ambari-common/src/main/python/resource_management/libraries/script/hook.py index 6a112effffb..dabedb30c7c 100644 --- a/ambari-common/src/main/python/resource_management/libraries/script/hook.py +++ b/ambari-common/src/main/python/resource_management/libraries/script/hook.py @@ -1,5 +1,4 @@ #!/usr/bin/env ambari-python-wrap - """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/main/python/urlinfo_processor/urlinfo_processor.py b/ambari-common/src/main/python/urlinfo_processor/urlinfo_processor.py index 4934b79b674..e90dc201431 100644 --- a/ambari-common/src/main/python/urlinfo_processor/urlinfo_processor.py +++ b/ambari-common/src/main/python/urlinfo_processor/urlinfo_processor.py @@ -1,5 +1,4 @@ #!/usr/bin/env ambari-python-wrap - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-common/src/test/python/coilmq/__init__.py b/ambari-common/src/test/python/coilmq/__init__.py index c7010e0a360..e79bc2dda8a 100644 --- a/ambari-common/src/test/python/coilmq/__init__.py +++ b/ambari-common/src/test/python/coilmq/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Top-level CoilMQ package. """ diff --git a/ambari-common/src/test/python/coilmq/auth/__init__.py b/ambari-common/src/test/python/coilmq/auth/__init__.py index dc9b243771b..1942d44ed33 100644 --- a/ambari-common/src/test/python/coilmq/auth/__init__.py +++ b/ambari-common/src/test/python/coilmq/auth/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Authentication providers. diff --git a/ambari-common/src/test/python/coilmq/auth/simple.py b/ambari-common/src/test/python/coilmq/auth/simple.py index b6d8b83f184..518f1158ddf 100644 --- a/ambari-common/src/test/python/coilmq/auth/simple.py +++ b/ambari-common/src/test/python/coilmq/auth/simple.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ A simple config-file based authentication module. """ diff --git a/ambari-common/src/test/python/coilmq/config/__init__.py b/ambari-common/src/test/python/coilmq/config/__init__.py index 37f18368c2d..41d471a3b10 100644 --- a/ambari-common/src/test/python/coilmq/config/__init__.py +++ b/ambari-common/src/test/python/coilmq/config/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Configuration support functionality. diff --git a/ambari-common/src/test/python/coilmq/engine.py b/ambari-common/src/test/python/coilmq/engine.py index 8ac1a6bd717..b8abe5e428d 100644 --- a/ambari-common/src/test/python/coilmq/engine.py +++ b/ambari-common/src/test/python/coilmq/engine.py @@ -1,7 +1,4 @@ - - -from coilmq.protocol import STOMP10 - +#!/usr/bin/env python3 """ Core STOMP server logic, abstracted from socket transport implementation. @@ -21,6 +18,7 @@ """ import logging from collections import defaultdict +from coilmq.protocol import STOMP10 __authors__ = ['"Hans Lellelid" '] __copyright__ = "Copyright 2009 Hans Lellelid" diff --git a/ambari-common/src/test/python/coilmq/exception.py b/ambari-common/src/test/python/coilmq/exception.py index 75f476c4a8a..1910b06bf82 100644 --- a/ambari-common/src/test/python/coilmq/exception.py +++ b/ambari-common/src/test/python/coilmq/exception.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Exception classes used by CoilMQ. diff --git a/ambari-common/src/test/python/coilmq/protocol/__init__.py b/ambari-common/src/test/python/coilmq/protocol/__init__.py index 878f9e0b7f2..7e75f0f1a3a 100644 --- a/ambari-common/src/test/python/coilmq/protocol/__init__.py +++ b/ambari-common/src/test/python/coilmq/protocol/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import abc import uuid import socket diff --git a/ambari-common/src/test/python/coilmq/queue.py b/ambari-common/src/test/python/coilmq/queue.py index 0a1160b2a4d..6a1a52c726e 100644 --- a/ambari-common/src/test/python/coilmq/queue.py +++ b/ambari-common/src/test/python/coilmq/queue.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Queue manager, queue implementation, and supporting classes. diff --git a/ambari-common/src/test/python/coilmq/scheduler.py b/ambari-common/src/test/python/coilmq/scheduler.py index 1a9faf5f6ce..2833064c1a7 100644 --- a/ambari-common/src/test/python/coilmq/scheduler.py +++ b/ambari-common/src/test/python/coilmq/scheduler.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Classes that provide delivery scheduler implementations. diff --git a/ambari-common/src/test/python/coilmq/server/__init__.py b/ambari-common/src/test/python/coilmq/server/__init__.py index 67fe35776bd..5f5587c9ba4 100644 --- a/ambari-common/src/test/python/coilmq/server/__init__.py +++ b/ambari-common/src/test/python/coilmq/server/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Package of available server implementations and shared functionality/interfaces. diff --git a/ambari-common/src/test/python/coilmq/server/socket_server.py b/ambari-common/src/test/python/coilmq/server/socket_server.py index e062de4cc56..1e57d2025c0 100644 --- a/ambari-common/src/test/python/coilmq/server/socket_server.py +++ b/ambari-common/src/test/python/coilmq/server/socket_server.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ The default/recommended SocketServer-based server implementation. """ diff --git a/ambari-common/src/test/python/coilmq/start.py b/ambari-common/src/test/python/coilmq/start.py index f894bab471f..4dc4662926f 100644 --- a/ambari-common/src/test/python/coilmq/start.py +++ b/ambari-common/src/test/python/coilmq/start.py @@ -1,4 +1,4 @@ -#!python +#!/usr/bin/env python3 """ Entrypoint for starting the application. """ diff --git a/ambari-common/src/test/python/coilmq/store/__init__.py b/ambari-common/src/test/python/coilmq/store/__init__.py index e731960670b..1fed7cf43b0 100644 --- a/ambari-common/src/test/python/coilmq/store/__init__.py +++ b/ambari-common/src/test/python/coilmq/store/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Storage containers for durable queues and (planned) durable topics. """ diff --git a/ambari-common/src/test/python/coilmq/store/dbm.py b/ambari-common/src/test/python/coilmq/store/dbm.py index fea771bb177..01711b51b83 100644 --- a/ambari-common/src/test/python/coilmq/store/dbm.py +++ b/ambari-common/src/test/python/coilmq/store/dbm.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Queue storage module that stores the queue information and frames in a DBM-style database. diff --git a/ambari-common/src/test/python/coilmq/store/memory.py b/ambari-common/src/test/python/coilmq/store/memory.py index 783967c0e05..4c4d9a31e0a 100644 --- a/ambari-common/src/test/python/coilmq/store/memory.py +++ b/ambari-common/src/test/python/coilmq/store/memory.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Queue storage module that uses thread-safe, in-memory data structures. """ diff --git a/ambari-common/src/test/python/coilmq/store/rds.py b/ambari-common/src/test/python/coilmq/store/rds.py index 585619f538e..7f2119126ed 100644 --- a/ambari-common/src/test/python/coilmq/store/rds.py +++ b/ambari-common/src/test/python/coilmq/store/rds.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 try: import redis except ImportError: # pragma: no cover diff --git a/ambari-common/src/test/python/coilmq/store/sa/__init__.py b/ambari-common/src/test/python/coilmq/store/sa/__init__.py index 77c6ce9c566..cdbb4e2e681 100644 --- a/ambari-common/src/test/python/coilmq/store/sa/__init__.py +++ b/ambari-common/src/test/python/coilmq/store/sa/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Queue storage module that uses SQLAlchemy to access queue information and frames in a database. diff --git a/ambari-common/src/test/python/coilmq/store/sa/meta.py b/ambari-common/src/test/python/coilmq/store/sa/meta.py index bf47ca94711..f25e650531b 100644 --- a/ambari-common/src/test/python/coilmq/store/sa/meta.py +++ b/ambari-common/src/test/python/coilmq/store/sa/meta.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Module to hold shared SQLAlchemy state. diff --git a/ambari-common/src/test/python/coilmq/store/sa/model.py b/ambari-common/src/test/python/coilmq/store/sa/model.py index 43e5009d511..6493ae3505a 100644 --- a/ambari-common/src/test/python/coilmq/store/sa/model.py +++ b/ambari-common/src/test/python/coilmq/store/sa/model.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Definition of the datamodel required for SA storage backend. """ diff --git a/ambari-common/src/test/python/coilmq/topic.py b/ambari-common/src/test/python/coilmq/topic.py index d6436be2dc8..32b3bc8c5ce 100644 --- a/ambari-common/src/test/python/coilmq/topic.py +++ b/ambari-common/src/test/python/coilmq/topic.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Non-durable topic support functionality. diff --git a/ambari-common/src/test/python/coilmq/util/__init__.py b/ambari-common/src/test/python/coilmq/util/__init__.py index ae25f742b50..ab8427a2bd7 100644 --- a/ambari-common/src/test/python/coilmq/util/__init__.py +++ b/ambari-common/src/test/python/coilmq/util/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ CoilMQ utility modules. """ diff --git a/ambari-common/src/test/python/coilmq/util/concurrency.py b/ambari-common/src/test/python/coilmq/util/concurrency.py index 0ad54c942d6..96496ca5f59 100644 --- a/ambari-common/src/test/python/coilmq/util/concurrency.py +++ b/ambari-common/src/test/python/coilmq/util/concurrency.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Tools to facilitate developing thread-safe components. """ diff --git a/ambari-common/src/test/python/coilmq/util/frames.py b/ambari-common/src/test/python/coilmq/util/frames.py index a593409a904..3a3580e8b45 100644 --- a/ambari-common/src/test/python/coilmq/util/frames.py +++ b/ambari-common/src/test/python/coilmq/util/frames.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from functools import partial import re import logging diff --git a/ambari-common/src/test/python/coilmq/util/six.py b/ambari-common/src/test/python/coilmq/util/six.py index a0c6c9d7729..b3907cff6e7 100644 --- a/ambari-common/src/test/python/coilmq/util/six.py +++ b/ambari-common/src/test/python/coilmq/util/six.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import sys PY3 = sys.version_info[0] == 3 diff --git a/ambari-common/src/test/python/mock/__init__.py b/ambari-common/src/test/python/mock/__init__.py index 3c61c755b21..cd29cff7ddf 100644 --- a/ambari-common/src/test/python/mock/__init__.py +++ b/ambari-common/src/test/python/mock/__init__.py @@ -1 +1,2 @@ +#!/usr/bin/env python3 __author__ = 'Michael Foord' diff --git a/ambari-common/src/test/python/mock/docs/conf.py b/ambari-common/src/test/python/mock/docs/conf.py index 51ca069900c..f8d22087392 100644 --- a/ambari-common/src/test/python/mock/docs/conf.py +++ b/ambari-common/src/test/python/mock/docs/conf.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Mock documentation build configuration file, created by diff --git a/ambari-common/src/test/python/mock/extendmock.py b/ambari-common/src/test/python/mock/extendmock.py index 0550d9fdda5..f12ce4fae8d 100644 --- a/ambari-common/src/test/python/mock/extendmock.py +++ b/ambari-common/src/test/python/mock/extendmock.py @@ -1 +1,2 @@ +#!/usr/bin/env python3 # merged into mock.py in Mock 0.7 diff --git a/ambari-common/src/test/python/mock/mock.py b/ambari-common/src/test/python/mock/mock.py index 880c1cb0336..211c80c0d42 100644 --- a/ambari-common/src/test/python/mock/mock.py +++ b/ambari-common/src/test/python/mock/mock.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # mock.py # Test tools for mocking and patching. # Copyright (C) 2007-2012 Michael Foord & the mock team diff --git a/ambari-common/src/test/python/mock/setup.py b/ambari-common/src/test/python/mock/setup.py index 1f9ef7c03ab..efa8558b0b3 100644 --- a/ambari-common/src/test/python/mock/setup.py +++ b/ambari-common/src/test/python/mock/setup.py @@ -1,5 +1,4 @@ -#! /usr/bin/env python - +#!/usr/bin/env python3 # Copyright (C) 2007-2012 Michael Foord & the mock team # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ diff --git a/ambari-common/src/test/python/mock/tests/__init__.py b/ambari-common/src/test/python/mock/tests/__init__.py index 54ddf2ecc1e..7b7aa4dc683 100644 --- a/ambari-common/src/test/python/mock/tests/__init__.py +++ b/ambari-common/src/test/python/mock/tests/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright (C) 2007-2012 Michael Foord & the mock team # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ diff --git a/ambari-common/src/test/python/mock/tests/_testwith.py b/ambari-common/src/test/python/mock/tests/_testwith.py index 09949d98ebb..4c14a781bfc 100644 --- a/ambari-common/src/test/python/mock/tests/_testwith.py +++ b/ambari-common/src/test/python/mock/tests/_testwith.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright (C) 2007-2012 Michael Foord & the mock team # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ diff --git a/ambari-common/src/test/python/mock/tests/support.py b/ambari-common/src/test/python/mock/tests/support.py index 173585e8a91..8c124def6e8 100644 --- a/ambari-common/src/test/python/mock/tests/support.py +++ b/ambari-common/src/test/python/mock/tests/support.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import sys info = sys.version_info diff --git a/ambari-common/src/test/python/mock/tests/support_with.py b/ambari-common/src/test/python/mock/tests/support_with.py index f787f812810..156d1a9eb77 100644 --- a/ambari-common/src/test/python/mock/tests/support_with.py +++ b/ambari-common/src/test/python/mock/tests/support_with.py @@ -1,5 +1,4 @@ - - +#!/usr/bin/env python3 import sys __all__ = ['nested', 'catch_warnings', 'examine_warnings'] diff --git a/ambari-common/src/test/python/mock/tests/testcallable.py b/ambari-common/src/test/python/mock/tests/testcallable.py index f7dcd5e1dfa..0c973381c23 100644 --- a/ambari-common/src/test/python/mock/tests/testcallable.py +++ b/ambari-common/src/test/python/mock/tests/testcallable.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright (C) 2007-2012 Michael Foord & the mock team # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ diff --git a/ambari-common/src/test/python/mock/tests/testhelpers.py b/ambari-common/src/test/python/mock/tests/testhelpers.py index e788da8447e..f570f2889de 100644 --- a/ambari-common/src/test/python/mock/tests/testhelpers.py +++ b/ambari-common/src/test/python/mock/tests/testhelpers.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright (C) 2007-2012 Michael Foord & the mock team # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ diff --git a/ambari-common/src/test/python/mock/tests/testmagicmethods.py b/ambari-common/src/test/python/mock/tests/testmagicmethods.py index b8b143af613..09cb986f53c 100644 --- a/ambari-common/src/test/python/mock/tests/testmagicmethods.py +++ b/ambari-common/src/test/python/mock/tests/testmagicmethods.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright (C) 2007-2012 Michael Foord & the mock team # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ diff --git a/ambari-common/src/test/python/mock/tests/testmock.py b/ambari-common/src/test/python/mock/tests/testmock.py index c8f65207adb..b5a905a670f 100644 --- a/ambari-common/src/test/python/mock/tests/testmock.py +++ b/ambari-common/src/test/python/mock/tests/testmock.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright (C) 2007-2012 Michael Foord & the mock team # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ diff --git a/ambari-common/src/test/python/mock/tests/testpatch.py b/ambari-common/src/test/python/mock/tests/testpatch.py index a0b6878e4c9..66752f3913e 100644 --- a/ambari-common/src/test/python/mock/tests/testpatch.py +++ b/ambari-common/src/test/python/mock/tests/testpatch.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright (C) 2007-2012 Michael Foord & the mock team # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ diff --git a/ambari-common/src/test/python/mock/tests/testsentinel.py b/ambari-common/src/test/python/mock/tests/testsentinel.py index 981171a450f..03e0b9ae0b7 100644 --- a/ambari-common/src/test/python/mock/tests/testsentinel.py +++ b/ambari-common/src/test/python/mock/tests/testsentinel.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright (C) 2007-2012 Michael Foord & the mock team # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ diff --git a/ambari-common/src/test/python/mock/tests/testwith.py b/ambari-common/src/test/python/mock/tests/testwith.py index 34529eb9fc4..31f3d6684ac 100644 --- a/ambari-common/src/test/python/mock/tests/testwith.py +++ b/ambari-common/src/test/python/mock/tests/testwith.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import sys if sys.version_info[:2] >= (2, 5): diff --git a/ambari-common/src/test/python/only_for_platform.py b/ambari-common/src/test/python/only_for_platform.py index cc2d13ea59b..6f62c587414 100644 --- a/ambari-common/src/test/python/only_for_platform.py +++ b/ambari-common/src/test/python/only_for_platform.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-funtest/src/test/resources/stacks/HDP/2.0.6.1/hooks/dummy-script.py b/ambari-funtest/src/test/resources/stacks/HDP/2.0.6.1/hooks/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-funtest/src/test/resources/stacks/HDP/2.0.6.1/hooks/dummy-script.py +++ b/ambari-funtest/src/test/resources/stacks/HDP/2.0.6.1/hooks/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-funtest/src/test/resources/stacks/HDP/2.0.6/hooks/dummy-script.py b/ambari-funtest/src/test/resources/stacks/HDP/2.0.6/hooks/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-funtest/src/test/resources/stacks/HDP/2.0.6/hooks/dummy-script.py +++ b/ambari-funtest/src/test/resources/stacks/HDP/2.0.6/hooks/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-funtest/src/test/resources/stacks/HDP/2.0.7/services/HBASE/package/dummy-script.py b/ambari-funtest/src/test/resources/stacks/HDP/2.0.7/services/HBASE/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-funtest/src/test/resources/stacks/HDP/2.0.7/services/HBASE/package/dummy-script.py +++ b/ambari-funtest/src/test/resources/stacks/HDP/2.0.7/services/HBASE/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-funtest/src/test/resources/stacks/HDP/2.0.7/services/HDFS/package/dummy-script.py b/ambari-funtest/src/test/resources/stacks/HDP/2.0.7/services/HDFS/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-funtest/src/test/resources/stacks/HDP/2.0.7/services/HDFS/package/dummy-script.py +++ b/ambari-funtest/src/test/resources/stacks/HDP/2.0.7/services/HDFS/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-funtest/src/test/resources/stacks/HDP/2.0.8/hooks/dummy-script.py b/ambari-funtest/src/test/resources/stacks/HDP/2.0.8/hooks/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-funtest/src/test/resources/stacks/HDP/2.0.8/hooks/dummy-script.py +++ b/ambari-funtest/src/test/resources/stacks/HDP/2.0.8/hooks/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-funtest/src/test/resources/stacks/HDP/2.0.8/services/HDFS/package/dummy-script.py b/ambari-funtest/src/test/resources/stacks/HDP/2.0.8/services/HDFS/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-funtest/src/test/resources/stacks/HDP/2.0.8/services/HDFS/package/dummy-script.py +++ b/ambari-funtest/src/test/resources/stacks/HDP/2.0.8/services/HDFS/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-funtest/src/test/resources/stacks/OTHER/1.0/services/HDFS/package/dummy-script.py b/ambari-funtest/src/test/resources/stacks/OTHER/1.0/services/HDFS/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-funtest/src/test/resources/stacks/OTHER/1.0/services/HDFS/package/dummy-script.py +++ b/ambari-funtest/src/test/resources/stacks/OTHER/1.0/services/HDFS/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/python/ambari-server-state/Configurator.py b/ambari-server/src/main/python/ambari-server-state/Configurator.py index b7c155ebb33..1f40f7764c2 100644 --- a/ambari-server/src/main/python/ambari-server-state/Configurator.py +++ b/ambari-server/src/main/python/ambari-server-state/Configurator.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from Entities import * from os.path import exists import xml.dom.minidom diff --git a/ambari-server/src/main/python/ambari-server-state/Entities.py b/ambari-server/src/main/python/ambari-server-state/Entities.py index b9f61c31750..ffb320910c7 100644 --- a/ambari-server/src/main/python/ambari-server-state/Entities.py +++ b/ambari-server/src/main/python/ambari-server-state/Entities.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # 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 diff --git a/ambari-server/src/main/python/ambari-server-state/Main.py b/ambari-server/src/main/python/ambari-server-state/Main.py index 8bc1146944e..d4d529b9c7c 100644 --- a/ambari-server/src/main/python/ambari-server-state/Main.py +++ b/ambari-server/src/main/python/ambari-server-state/Main.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from Configurator import * diff --git a/ambari-server/src/main/python/ambari-server.py b/ambari-server/src/main/python/ambari-server.py index 320c788ec75..b9a415fa08e 100755 --- a/ambari-server/src/main/python/ambari-server.py +++ b/ambari-server/src/main/python/ambari-server.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/python/ambari_server/BackupRestore.py b/ambari-server/src/main/python/ambari_server/BackupRestore.py index 0ae59eca7d0..c194f6555a3 100644 --- a/ambari-server/src/main/python/ambari_server/BackupRestore.py +++ b/ambari-server/src/main/python/ambari_server/BackupRestore.py @@ -1,5 +1,4 @@ #!/usr/bin/env ambari-python-wrap - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/python/ambari_server/ambariPath.py b/ambari-server/src/main/python/ambari_server/ambariPath.py index 20f460397e1..3265723f3bb 100644 --- a/ambari-server/src/main/python/ambari_server/ambariPath.py +++ b/ambari-server/src/main/python/ambari_server/ambariPath.py @@ -36,6 +36,4 @@ def get(path): Not ambari paths like /var/run/postgresql SHOULD NOT wrapped by this call though. """ #return os.path.realpath(AmbariPath.root_directory + os.sep + path) # realpath won't replace slashes for python2.6 - return re.sub('/+', '/', AmbariPath.root_directory + os.sep + path) - - \ No newline at end of file + return re.sub('/+', '/', AmbariPath.root_directory + os.sep + path) \ No newline at end of file diff --git a/ambari-server/src/main/python/ambari_server/serverUtils.py b/ambari-server/src/main/python/ambari_server/serverUtils.py index bd3a603406c..d48422eb848 100644 --- a/ambari-server/src/main/python/ambari_server/serverUtils.py +++ b/ambari-server/src/main/python/ambari_server/serverUtils.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/python/ambari_server/setupMpacks.py b/ambari-server/src/main/python/ambari_server/setupMpacks.py index 934aac589e7..4319f84b8ab 100755 --- a/ambari-server/src/main/python/ambari_server/setupMpacks.py +++ b/ambari-server/src/main/python/ambari_server/setupMpacks.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/python/ambari_server/setupSecurity.py b/ambari-server/src/main/python/ambari_server/setupSecurity.py index 514ac92d6e5..370f04272e7 100644 --- a/ambari-server/src/main/python/ambari_server/setupSecurity.py +++ b/ambari-server/src/main/python/ambari_server/setupSecurity.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/python/ambari_server/setupTrustedProxy.py b/ambari-server/src/main/python/ambari_server/setupTrustedProxy.py index d9fc268e7fa..4b259348c0f 100644 --- a/ambari-server/src/main/python/ambari_server/setupTrustedProxy.py +++ b/ambari-server/src/main/python/ambari_server/setupTrustedProxy.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/python/ambari_server/userInput.py b/ambari-server/src/main/python/ambari_server/userInput.py index 0076c0b24f7..29f916e097a 100644 --- a/ambari-server/src/main/python/ambari_server/userInput.py +++ b/ambari-server/src/main/python/ambari_server/userInput.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/python/azuredb_create_generator.py b/ambari-server/src/main/python/azuredb_create_generator.py index 4dc2be009fb..fddc77506e8 100755 --- a/ambari-server/src/main/python/azuredb_create_generator.py +++ b/ambari-server/src/main/python/azuredb_create_generator.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/python/bootstrap.py b/ambari-server/src/main/python/bootstrap.py index 9136f7ce253..7b3e36bd78e 100755 --- a/ambari-server/src/main/python/bootstrap.py +++ b/ambari-server/src/main/python/bootstrap.py @@ -1,5 +1,4 @@ #!/usr/bin/env ambari-python-wrap - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/python/os_check_type.py b/ambari-server/src/main/python/os_check_type.py index 1e74687b018..ce359adbed0 100644 --- a/ambari-server/src/main/python/os_check_type.py +++ b/ambari-server/src/main/python/os_check_type.py @@ -1,5 +1,4 @@ -#!/usr/bin/ambari-python-wrap - +#!/usr/bin/env ambari-python-wrap ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/python/setupAgent.py b/ambari-server/src/main/python/setupAgent.py index 3ee26050eb5..ebc4a2e9c74 100755 --- a/ambari-server/src/main/python/setupAgent.py +++ b/ambari-server/src/main/python/setupAgent.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/collection.py b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/collection.py index d643f54b518..07b0a534774 100755 --- a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/collection.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/collection.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/command_commons.py b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/command_commons.py index fcb343918a5..235a10c7d7b 100755 --- a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/command_commons.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/command_commons.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/infra_solr.py b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/infra_solr.py index 2fd43216b09..a4a190b766a 100755 --- a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/infra_solr.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/infra_solr.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/infra_solr_client.py b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/infra_solr_client.py index 2ff997fad1e..331c5f6cff6 100755 --- a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/infra_solr_client.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/infra_solr_client.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/migrate.py b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/migrate.py index 832587afd5b..f488f27e7ef 100755 --- a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/migrate.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/migrate.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/params.py b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/params.py index 6bb6c1ce900..3cbc6a21c47 100755 --- a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/params.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/service_check.py b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/service_check.py index f98379c3404..b7f7d3f3180 100755 --- a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/service_check.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/service_check.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/setup_infra_solr.py b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/setup_infra_solr.py index 2937d2a58d8..249275f9bd1 100755 --- a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/setup_infra_solr.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/setup_infra_solr.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/status_params.py b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/status_params.py index 309cf551545..b3997e52d9c 100755 --- a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/status_params.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/status_params.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/package/scripts/ams_service.py b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/package/scripts/ams_service.py index 875211f031f..8f169825711 100644 --- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/package/scripts/ams_service.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/package/scripts/ams_service.py @@ -1,4 +1,4 @@ -# !/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/package/scripts/split_points.py b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/package/scripts/split_points.py index 906fed07a4d..ea539d14ef1 100644 --- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/package/scripts/split_points.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/package/scripts/split_points.py @@ -1,4 +1,4 @@ -# !/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/package/scripts/status.py b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/package/scripts/status.py index 0b24ac03140..ce7dc9b3d66 100644 --- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/package/scripts/status.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/package/scripts/status.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/service_advisor.py b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/service_advisor.py index b64d5f0fd84..bcc20fb8a1a 100644 --- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/service_advisor.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/3.0.0/service_advisor.py @@ -766,4 +766,4 @@ def validateGrafanaEnvConfigurationsFromHDP206(self, properties, recommendedDefa grafana_pwd_length_item = self.getErrorItem("Grafana password length should be at least 4.") pass validationItems.extend([{"config-name":'metrics_grafana_password', "item": grafana_pwd_length_item }]) - return self.toConfigurationValidationProblems(validationItems, "ams-site") \ No newline at end of file + return self.toConfigurationValidationProblems(validationItems, "ams-site") diff --git a/ambari-server/src/main/resources/scripts/stack_advisor.py b/ambari-server/src/main/resources/scripts/stack_advisor.py index 03896fc2256..edfddae0d68 100755 --- a/ambari-server/src/main/resources/scripts/stack_advisor.py +++ b/ambari-server/src/main/resources/scripts/stack_advisor.py @@ -1,5 +1,4 @@ #!/usr/bin/env ambari-python-wrap - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/after-INSTALL/scripts/hook.py b/ambari-server/src/main/resources/stack-hooks/after-INSTALL/scripts/hook.py index 39546b1f7a8..0597bc3dbfc 100644 --- a/ambari-server/src/main/resources/stack-hooks/after-INSTALL/scripts/hook.py +++ b/ambari-server/src/main/resources/stack-hooks/after-INSTALL/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/after-INSTALL/scripts/params.py b/ambari-server/src/main/resources/stack-hooks/after-INSTALL/scripts/params.py index 6f93a694b7f..91214248a5a 100644 --- a/ambari-server/src/main/resources/stack-hooks/after-INSTALL/scripts/params.py +++ b/ambari-server/src/main/resources/stack-hooks/after-INSTALL/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/after-INSTALL/scripts/shared_initialization.py b/ambari-server/src/main/resources/stack-hooks/after-INSTALL/scripts/shared_initialization.py index 6605d2d349a..e6a79f512b1 100644 --- a/ambari-server/src/main/resources/stack-hooks/after-INSTALL/scripts/shared_initialization.py +++ b/ambari-server/src/main/resources/stack-hooks/after-INSTALL/scripts/shared_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/hook.py b/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/hook.py index e9f4b1d08b1..4fbd12205bd 100644 --- a/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/hook.py +++ b/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/params.py b/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/params.py index 41751383ecb..03a82594ec9 100644 --- a/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/params.py +++ b/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/shared_initialization.py b/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/shared_initialization.py index 0f800a68f3f..fc9966fc186 100644 --- a/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/shared_initialization.py +++ b/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/shared_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/hook.py b/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/hook.py index c4709657f7f..ea3761e4354 100644 --- a/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/hook.py +++ b/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/params.py b/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/params.py index 15b51d11c92..ff76483e998 100644 --- a/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/params.py +++ b/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/repo_initialization.py b/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/repo_initialization.py index f6f2a1255cb..35396865e19 100644 --- a/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/repo_initialization.py +++ b/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/repo_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/shared_initialization.py b/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/shared_initialization.py index 6de7300d130..e0dc4736543 100644 --- a/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/shared_initialization.py +++ b/ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/shared_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/before-RESTART/scripts/hook.py b/ambari-server/src/main/resources/stack-hooks/before-RESTART/scripts/hook.py index f7f4f1c975f..4a0b1e3fb47 100644 --- a/ambari-server/src/main/resources/stack-hooks/before-RESTART/scripts/hook.py +++ b/ambari-server/src/main/resources/stack-hooks/before-RESTART/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/before-SET_KEYTAB/scripts/hook.py b/ambari-server/src/main/resources/stack-hooks/before-SET_KEYTAB/scripts/hook.py index 289475bf5c6..bcc038cc985 100644 --- a/ambari-server/src/main/resources/stack-hooks/before-SET_KEYTAB/scripts/hook.py +++ b/ambari-server/src/main/resources/stack-hooks/before-SET_KEYTAB/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/before-START/scripts/custom_extensions.py b/ambari-server/src/main/resources/stack-hooks/before-START/scripts/custom_extensions.py index b01b4de60f9..ee1b6db6dec 100644 --- a/ambari-server/src/main/resources/stack-hooks/before-START/scripts/custom_extensions.py +++ b/ambari-server/src/main/resources/stack-hooks/before-START/scripts/custom_extensions.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/before-START/scripts/hook.py b/ambari-server/src/main/resources/stack-hooks/before-START/scripts/hook.py index 2f68cb14fb8..7d0fdd3f701 100644 --- a/ambari-server/src/main/resources/stack-hooks/before-START/scripts/hook.py +++ b/ambari-server/src/main/resources/stack-hooks/before-START/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/before-START/scripts/params.py b/ambari-server/src/main/resources/stack-hooks/before-START/scripts/params.py index 99781d124ce..f7402827ef6 100644 --- a/ambari-server/src/main/resources/stack-hooks/before-START/scripts/params.py +++ b/ambari-server/src/main/resources/stack-hooks/before-START/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stack-hooks/before-START/scripts/shared_initialization.py b/ambari-server/src/main/resources/stack-hooks/before-START/scripts/shared_initialization.py index efceede77e1..69c2de76440 100644 --- a/ambari-server/src/main/resources/stack-hooks/before-START/scripts/shared_initialization.py +++ b/ambari-server/src/main/resources/stack-hooks/before-START/scripts/shared_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/flink_client.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/flink_client.py index 83316bcac83..3e79fe85fed 100755 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/flink_client.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/flink_client.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/flink_history_server.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/flink_history_server.py index 43718f7b61b..825e9a27d16 100755 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/flink_history_server.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/flink_history_server.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/flink_service.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/flink_service.py index 8d615c42326..d7d18191360 100755 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/flink_service.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/flink_service.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/setup_flink.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/setup_flink.py index 2a6d666ea45..d33a1aab1fe 100755 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/setup_flink.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/FLINK/package/scripts/setup_flink.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HBASE/package/scripts/upgrade.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HBASE/package/scripts/upgrade.py index b08beadf259..7d04e3f1062 100755 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HBASE/package/scripts/upgrade.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HBASE/package/scripts/upgrade.py @@ -1,4 +1,3 @@ - #!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/alerts/alert_datanode_unmounted_data_dir.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/alerts/alert_datanode_unmounted_data_dir.py index 422751678ad..b96acf4e862 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/alerts/alert_datanode_unmounted_data_dir.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/alerts/alert_datanode_unmounted_data_dir.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/__init__.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/__init__.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/__init__.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/balancer-emulator/hdfs-command.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/balancer-emulator/hdfs-command.py index 92bde08d636..b39080d79a5 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/balancer-emulator/hdfs-command.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/balancer-emulator/hdfs-command.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/datanode.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/datanode.py index c0abb15d727..b64cbcc503e 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/datanode.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/datanode.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/datanode_upgrade.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/datanode_upgrade.py index c1b02961e5b..1a529d28e59 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/datanode_upgrade.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/datanode_upgrade.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs.py index 8b59f4f7d56..31664c97447 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_client.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_client.py index f2e96c3e634..a5cb26f4166 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_client.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_client.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_datanode.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_datanode.py index 56aa3c16bef..bfc796f720f 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_datanode.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_datanode.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_namenode.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_namenode.py index 5df7afc6652..26944fd3cd9 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_namenode.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_namenode.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_nfsgateway.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_nfsgateway.py index 9944e24babd..0a047dd9394 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_nfsgateway.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_nfsgateway.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_snamenode.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_snamenode.py index 1a0fa23c7c8..e959a95f670 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_snamenode.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/hdfs_snamenode.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/install_params.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/install_params.py index c2bf847c1c3..b3069f4eb64 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/install_params.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/install_params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/journalnode.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/journalnode.py index 1adba1c1529..4e53d82998a 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/journalnode.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/journalnode.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/journalnode_upgrade.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/journalnode_upgrade.py index bb903933b9d..fd625dd7162 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/journalnode_upgrade.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/journalnode_upgrade.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/namenode.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/namenode.py index d25c2e46771..3e315188086 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/namenode.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/namenode.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/namenode_ha_state.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/namenode_ha_state.py index 5199b298247..a93075c5e20 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/namenode_ha_state.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/namenode_ha_state.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/namenode_upgrade.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/namenode_upgrade.py index 1bd5b7adb09..251394ee877 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/namenode_upgrade.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/namenode_upgrade.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/nfsgateway.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/nfsgateway.py index f16e260fe7b..938820ef13f 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/nfsgateway.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/nfsgateway.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/params.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/params.py index 838510c2a62..718955c4714 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/params.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/params_linux.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/params_linux.py index 75a8810fba2..cdd53657057 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/params_linux.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/params_linux.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/params_windows.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/params_windows.py index fe5d3d47fea..1e7a646b94c 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/params_windows.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/params_windows.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/service_check.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/service_check.py index 67e005fcc82..7173ff54f73 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/service_check.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/service_check.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/snamenode.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/snamenode.py index 3d387b4badc..10423620e09 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/snamenode.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/snamenode.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/status_params.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/status_params.py index ef18659d6ba..634b7f46eb6 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/status_params.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/status_params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/utils.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/utils.py index 5be4199e71d..5ce8598bf5a 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/utils.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/utils.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/zkfc_slave.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/zkfc_slave.py index 6d0921d9a42..3042405e18b 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/zkfc_slave.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/scripts/zkfc_slave.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/alerts/alert_hive_interactive_thrift_port.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/alerts/alert_hive_interactive_thrift_port.py index 72ce0359dc4..de03c4f4d58 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/alerts/alert_hive_interactive_thrift_port.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/alerts/alert_hive_interactive_thrift_port.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/hive_server_upgrade.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/hive_server_upgrade.py index 3ddd0379e36..aafbe23a4c9 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/hive_server_upgrade.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/hive_server_upgrade.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/mysql_utils.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/mysql_utils.py index 6db85b8afd3..3828dac9ff3 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/mysql_utils.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/mysql_utils.py @@ -38,5 +38,4 @@ def mysql_configure(): ) # this also will start mysql-server - mysql_users.mysql_adduser() - \ No newline at end of file + mysql_users.mysql_adduser() \ No newline at end of file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/webhcat.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/webhcat.py index 78146e38027..138e91964ef 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/webhcat.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/webhcat.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/webhcat_server.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/webhcat_server.py index 50323123ec2..1d2939cb255 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/webhcat_server.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/webhcat_server.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/webhcat_service.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/webhcat_service.py index d933a6c10b2..2874b7c1d3a 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/webhcat_service.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/package/scripts/webhcat_service.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KAFKA/package/scripts/kafka_broker.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KAFKA/package/scripts/kafka_broker.py index 26192df1582..972e9e5411a 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KAFKA/package/scripts/kafka_broker.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KAFKA/package/scripts/kafka_broker.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KAFKA/service_advisor.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KAFKA/service_advisor.py index d1863a73275..9d7360fb015 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KAFKA/service_advisor.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KAFKA/service_advisor.py @@ -444,4 +444,4 @@ def validateKAFKAConfigurationsFromHDP30(self, properties, recommendedDefaults, "After Installing Streams Messaging Manager, {0} with be set to {1}." \ "Please restart kafka for changes to take place.".format(prop_name, prop_val))}) - return self.toConfigurationValidationProblems(validationItems, "kafka-broker") \ No newline at end of file + return self.toConfigurationValidationProblems(validationItems, "kafka-broker") diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/kerberos_client.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/kerberos_client.py index ef0f5d89a9c..a4e91d5d46f 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/kerberos_client.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/kerberos_client.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/params.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/params.py index a65adf07cd6..9a99725e39c 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/params.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/service_check.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/service_check.py index 1fccb4f3421..c0ff7c7fd73 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/service_check.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/service_check.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/status_params.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/status_params.py index cfec53d1a86..9e1c275bbe7 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/status_params.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/KERBEROS/package/scripts/status_params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/params.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/params.py index 0396bf1cc70..5ecd1c0259f 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/params.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/service_check.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/service_check.py index 5562dcc4104..f47fce0886a 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/service_check.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/service_check.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/setup_solr.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/setup_solr.py index 5ba810d91a1..cebb233bff5 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/setup_solr.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/setup_solr.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/solr.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/solr.py index d0eef6aa4b5..6744fe964f3 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/solr.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SOLR/package/scripts/solr.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/alerts/alert_spark_thrift_port.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/alerts/alert_spark_thrift_port.py index 97cb1c8e200..0a50d0c28a5 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/alerts/alert_spark_thrift_port.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/alerts/alert_spark_thrift_port.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/job_history_server.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/job_history_server.py index 8fb59a4212b..5873f556f78 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/job_history_server.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/job_history_server.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/params.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/params.py index 655f8c5142e..f4fbc8f7c34 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/params.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/params.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/service_check.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/service_check.py index d6fd3c4862e..74c72252d0f 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/service_check.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/service_check.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/setup_spark.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/setup_spark.py index 3097f122b9e..5577211af43 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/setup_spark.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/setup_spark.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/spark_client.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/spark_client.py index 36917b1e2c6..d53e465a931 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/spark_client.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/spark_client.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/spark_thrift_server.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/spark_thrift_server.py index 5838fdefbdd..a2760caa56b 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/spark_thrift_server.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/SPARK/package/scripts/spark_thrift_server.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/params_windows.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/params_windows.py index f00c6a0828d..f77f174117d 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/params_windows.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/params_windows.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/pre_upgrade.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/pre_upgrade.py index d182efeed21..bc8d2cd3b3a 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/pre_upgrade.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/pre_upgrade.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/service_check.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/service_check.py index 1490392a906..234037a66d3 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/service_check.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/service_check.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/tez.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/tez.py index 0e1d2ecdd1f..de11c3516af 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/tez.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/tez.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/tez_client.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/tez_client.py index e91ad261e0c..4cd2655fc03 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/tez_client.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/tez_client.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/alerts/alert_nodemanagers_summary.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/alerts/alert_nodemanagers_summary.py index b009de64264..88c79511c8c 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/alerts/alert_nodemanagers_summary.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/alerts/alert_nodemanagers_summary.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/__init__.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/__init__.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/__init__.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/application_timeline_server.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/application_timeline_server.py index 2aec6baa143..a7816d221d3 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/application_timeline_server.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/application_timeline_server.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/historyserver.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/historyserver.py index 0c0fe6ad0d2..4217990f953 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/historyserver.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/historyserver.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/mapred_service_check.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/mapred_service_check.py index d91d60a2dd7..517c3033f7c 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/mapred_service_check.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/mapred_service_check.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/mapreduce2_client.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/mapreduce2_client.py index 234e93174e7..bbb2e4a61b4 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/mapreduce2_client.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/mapreduce2_client.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/nodemanager.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/nodemanager.py index 280fc2fe8e5..81ae53dccfb 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/nodemanager.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/nodemanager.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/nodemanager_upgrade.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/nodemanager_upgrade.py index 22cd8cc7f45..7e90aeeaa42 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/nodemanager_upgrade.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/nodemanager_upgrade.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/params_linux.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/params_linux.py index 92d669274fe..ef2d437b413 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/params_linux.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/params_linux.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/params_windows.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/params_windows.py index 549872c760b..0d5a0445450 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/params_windows.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/params_windows.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/resourcemanager.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/resourcemanager.py index 99ad69f2695..f315c5279a3 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/resourcemanager.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/resourcemanager.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/service.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/service.py index 835ea17815b..276bad38f61 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/service.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/service.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/service_check.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/service_check.py index 02bb16ee364..fc3fb0c0034 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/service_check.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/service_check.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/yarn.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/yarn.py index 92eed757400..2c6ee037ecf 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/yarn.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/yarn.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/yarn_client.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/yarn_client.py index b6a89b4a375..c9d7440be5e 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/yarn_client.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/yarn_client.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZEPPELIN/package/scripts/alerts/alert_check_zeppelin.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZEPPELIN/package/scripts/alerts/alert_check_zeppelin.py index caa80e540f0..79d24436aa7 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZEPPELIN/package/scripts/alerts/alert_check_zeppelin.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZEPPELIN/package/scripts/alerts/alert_check_zeppelin.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZEPPELIN/package/scripts/service_check.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZEPPELIN/package/scripts/service_check.py index d796ae9609c..714050d0ff3 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZEPPELIN/package/scripts/service_check.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZEPPELIN/package/scripts/service_check.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZEPPELIN/package/scripts/status_params.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZEPPELIN/package/scripts/status_params.py index 35360c6f9ee..1a5803a930c 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZEPPELIN/package/scripts/status_params.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZEPPELIN/package/scripts/status_params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/__init__.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/__init__.py index b0b988b18ba..6b1f9423dee 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/__init__.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/params.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/params.py index fbefec907fe..a0a61e062c5 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/params.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/params_linux.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/params_linux.py index 2005ff810d8..d931d8a1242 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/params_linux.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/params_linux.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/params_windows.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/params_windows.py index 87d82c20733..031605f58bd 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/params_windows.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/params_windows.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/service_check.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/service_check.py index 7ddcfb19977..e2d85edd1f9 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/service_check.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/service_check.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper.py index d936263e8c2..bd611f1f1b8 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper_client.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper_client.py index 3086e26e47c..5703d6d2726 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper_client.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper_client.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper_server.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper_server.py index f0e4ab919a7..a4e0d71625a 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper_server.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper_server.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper_service.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper_service.py index 441483f3bf3..1a5934bcbf6 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper_service.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/ZOOKEEPER/package/scripts/zookeeper_service.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/package/alerts/alert_ranger_admin_passwd_check.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/package/alerts/alert_ranger_admin_passwd_check.py index 68297f47f92..e5c2fb6451c 100755 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/package/alerts/alert_ranger_admin_passwd_check.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/package/alerts/alert_ranger_admin_passwd_check.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/service_advisor.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/service_advisor.py index 365b22b10e9..eccd644458e 100755 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/service_advisor.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/service_advisor.py @@ -841,4 +841,4 @@ def validateRangerPasswordConfigurations(self, properties, recommendedDefaults, if not bool(re.search(r'^(?=.*[0-9])(?=.*[a-zA-Z]).{8,}$', password)) or bool(re.search('[\\\`"\']', password)): validationItems.append({"config-name": password_property, "item": self.getNotApplicableItem("Password should be minimum 8 characters with minimum one alphabet and one numeric. Unsupported special characters are \" ' \ `")}) - return self.toConfigurationValidationProblems(validationItems, "ranger-env") \ No newline at end of file + return self.toConfigurationValidationProblems(validationItems, "ranger-env") diff --git a/ambari-server/src/test/python/TestAmbariConfiguration.py b/ambari-server/src/test/python/TestAmbariConfiguration.py index 5125e29eefb..2c969fed81f 100644 --- a/ambari-server/src/test/python/TestAmbariConfiguration.py +++ b/ambari-server/src/test/python/TestAmbariConfiguration.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestAmbariServer.py b/ambari-server/src/test/python/TestAmbariServer.py index 168bb0ff0e4..c863b211b3c 100644 --- a/ambari-server/src/test/python/TestAmbariServer.py +++ b/ambari-server/src/test/python/TestAmbariServer.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestBackupRestore.py b/ambari-server/src/test/python/TestBackupRestore.py index ab37ca1b6c4..64be6ed48b8 100644 --- a/ambari-server/src/test/python/TestBackupRestore.py +++ b/ambari-server/src/test/python/TestBackupRestore.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestBootstrap.py b/ambari-server/src/test/python/TestBootstrap.py index 5771ee28e40..494ac72e4e3 100644 --- a/ambari-server/src/test/python/TestBootstrap.py +++ b/ambari-server/src/test/python/TestBootstrap.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestClusterBlueprint.py b/ambari-server/src/test/python/TestClusterBlueprint.py index 86f429061a2..46460b3fe33 100644 --- a/ambari-server/src/test/python/TestClusterBlueprint.py +++ b/ambari-server/src/test/python/TestClusterBlueprint.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestComponentVersionMapping.py b/ambari-server/src/test/python/TestComponentVersionMapping.py index 76fd8ed80d0..2721f6000ee 100644 --- a/ambari-server/src/test/python/TestComponentVersionMapping.py +++ b/ambari-server/src/test/python/TestComponentVersionMapping.py @@ -1,5 +1,4 @@ -# !/usr/bin/env python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestConfigs.py b/ambari-server/src/test/python/TestConfigs.py index a5b51d01acf..3e119e820d8 100644 --- a/ambari-server/src/test/python/TestConfigs.py +++ b/ambari-server/src/test/python/TestConfigs.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestExecutionCommand.py b/ambari-server/src/test/python/TestExecutionCommand.py index bd3fef4c98f..6d4307ed478 100644 --- a/ambari-server/src/test/python/TestExecutionCommand.py +++ b/ambari-server/src/test/python/TestExecutionCommand.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestGlobalLock.py b/ambari-server/src/test/python/TestGlobalLock.py index 3851de60a69..4c904e23abc 100644 --- a/ambari-server/src/test/python/TestGlobalLock.py +++ b/ambari-server/src/test/python/TestGlobalLock.py @@ -1,5 +1,4 @@ -# !/usr/bin/env python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestMpacks.py b/ambari-server/src/test/python/TestMpacks.py index ceb27e99672..31363995280 100644 --- a/ambari-server/src/test/python/TestMpacks.py +++ b/ambari-server/src/test/python/TestMpacks.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestOSCheck.py b/ambari-server/src/test/python/TestOSCheck.py index c2327809b84..e4a6490a36a 100644 --- a/ambari-server/src/test/python/TestOSCheck.py +++ b/ambari-server/src/test/python/TestOSCheck.py @@ -1,5 +1,4 @@ -# !/usr/bin/env python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestResourceFilesKeeper.py b/ambari-server/src/test/python/TestResourceFilesKeeper.py index 6a66bbdd34f..1633c7782d7 100644 --- a/ambari-server/src/test/python/TestResourceFilesKeeper.py +++ b/ambari-server/src/test/python/TestResourceFilesKeeper.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestSensitiveDataEncryption.py b/ambari-server/src/test/python/TestSensitiveDataEncryption.py index 194178c77a7..64699341d39 100644 --- a/ambari-server/src/test/python/TestSensitiveDataEncryption.py +++ b/ambari-server/src/test/python/TestSensitiveDataEncryption.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestServerClassPath.py b/ambari-server/src/test/python/TestServerClassPath.py index 90dab2d00a7..907b8098d34 100644 --- a/ambari-server/src/test/python/TestServerClassPath.py +++ b/ambari-server/src/test/python/TestServerClassPath.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestServerUpgrade.py b/ambari-server/src/test/python/TestServerUpgrade.py index c41bd362a8c..e89156e2543 100644 --- a/ambari-server/src/test/python/TestServerUpgrade.py +++ b/ambari-server/src/test/python/TestServerUpgrade.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestServerUtils.py b/ambari-server/src/test/python/TestServerUtils.py index 59c2841f731..9c1fa4ea482 100644 --- a/ambari-server/src/test/python/TestServerUtils.py +++ b/ambari-server/src/test/python/TestServerUtils.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestServiceAdvisor.py b/ambari-server/src/test/python/TestServiceAdvisor.py index 6318f0a5757..a42919dd7aa 100644 --- a/ambari-server/src/test/python/TestServiceAdvisor.py +++ b/ambari-server/src/test/python/TestServiceAdvisor.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestSetupAgent.py b/ambari-server/src/test/python/TestSetupAgent.py index 0b33e9faa8a..06e87e8e907 100644 --- a/ambari-server/src/test/python/TestSetupAgent.py +++ b/ambari-server/src/test/python/TestSetupAgent.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestSetupSso.py b/ambari-server/src/test/python/TestSetupSso.py index a1b05448b24..872a80da64d 100644 --- a/ambari-server/src/test/python/TestSetupSso.py +++ b/ambari-server/src/test/python/TestSetupSso.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestSetupTrustedProxy.py b/ambari-server/src/test/python/TestSetupTrustedProxy.py index cfdfa716537..949719ef9ac 100644 --- a/ambari-server/src/test/python/TestSetupTrustedProxy.py +++ b/ambari-server/src/test/python/TestSetupTrustedProxy.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestStackAdvisor.py b/ambari-server/src/test/python/TestStackAdvisor.py index ea0f85d31df..a6af1cb24f5 100644 --- a/ambari-server/src/test/python/TestStackAdvisor.py +++ b/ambari-server/src/test/python/TestStackAdvisor.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestStackFeature.py b/ambari-server/src/test/python/TestStackFeature.py index 8e584b1109e..d6d3a87e762 100644 --- a/ambari-server/src/test/python/TestStackFeature.py +++ b/ambari-server/src/test/python/TestStackFeature.py @@ -1,5 +1,4 @@ -# !/usr/bin/env python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestStackSelect.py b/ambari-server/src/test/python/TestStackSelect.py index 462d3a04d5c..01b7e8a3611 100644 --- a/ambari-server/src/test/python/TestStackSelect.py +++ b/ambari-server/src/test/python/TestStackSelect.py @@ -1,5 +1,4 @@ -# !/usr/bin/env python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestUpgradeSummary.py b/ambari-server/src/test/python/TestUpgradeSummary.py index e2bc2c52862..673faf74b74 100644 --- a/ambari-server/src/test/python/TestUpgradeSummary.py +++ b/ambari-server/src/test/python/TestUpgradeSummary.py @@ -1,5 +1,4 @@ -# !/usr/bin/env python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestUtils.py b/ambari-server/src/test/python/TestUtils.py index f1eabf8c013..98ebe39c702 100644 --- a/ambari-server/src/test/python/TestUtils.py +++ b/ambari-server/src/test/python/TestUtils.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestValidateConfigs.py b/ambari-server/src/test/python/TestValidateConfigs.py index f26f22927a1..f2e81410386 100644 --- a/ambari-server/src/test/python/TestValidateConfigs.py +++ b/ambari-server/src/test/python/TestValidateConfigs.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestVersion.py b/ambari-server/src/test/python/TestVersion.py index c42ea4a5fb3..3ae85146abe 100644 --- a/ambari-server/src/test/python/TestVersion.py +++ b/ambari-server/src/test/python/TestVersion.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/TestVersionSelectUtil.py b/ambari-server/src/test/python/TestVersionSelectUtil.py index ed7549f055b..e3489af5ac3 100644 --- a/ambari-server/src/test/python/TestVersionSelectUtil.py +++ b/ambari-server/src/test/python/TestVersionSelectUtil.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/custom_actions/TestCheckHost.py b/ambari-server/src/test/python/custom_actions/TestCheckHost.py index c01183ba06f..044c7febfcf 100644 --- a/ambari-server/src/test/python/custom_actions/TestCheckHost.py +++ b/ambari-server/src/test/python/custom_actions/TestCheckHost.py @@ -1,5 +1,4 @@ -# !/usr/bin/env python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/custom_actions/TestInstallPackages.py b/ambari-server/src/test/python/custom_actions/TestInstallPackages.py index cebf1e80361..b3981260a29 100644 --- a/ambari-server/src/test/python/custom_actions/TestInstallPackages.py +++ b/ambari-server/src/test/python/custom_actions/TestInstallPackages.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/custom_actions/TestRemoveBits.py b/ambari-server/src/test/python/custom_actions/TestRemoveBits.py index 9f375d4afb3..66b1e2bf51b 100644 --- a/ambari-server/src/test/python/custom_actions/TestRemoveBits.py +++ b/ambari-server/src/test/python/custom_actions/TestRemoveBits.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/custom_actions/TestRemoveStackVersion.py b/ambari-server/src/test/python/custom_actions/TestRemoveStackVersion.py index 4f0076c7e54..30e5fdb29d8 100644 --- a/ambari-server/src/test/python/custom_actions/TestRemoveStackVersion.py +++ b/ambari-server/src/test/python/custom_actions/TestRemoveStackVersion.py @@ -1,5 +1,4 @@ -# !/usr/bin/env python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/custom_actions/test_ru_execute_tasks.py b/ambari-server/src/test/python/custom_actions/test_ru_execute_tasks.py index f77a95b9926..730083c08c4 100644 --- a/ambari-server/src/test/python/custom_actions/test_ru_execute_tasks.py +++ b/ambari-server/src/test/python/custom_actions/test_ru_execute_tasks.py @@ -1,5 +1,4 @@ -# !/usr/bin/env python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/custom_actions/test_stack_select_set_all.py b/ambari-server/src/test/python/custom_actions/test_stack_select_set_all.py index 591c6d5bb40..53fc392d53b 100644 --- a/ambari-server/src/test/python/custom_actions/test_stack_select_set_all.py +++ b/ambari-server/src/test/python/custom_actions/test_stack_select_set_all.py @@ -1,5 +1,4 @@ -# !/usr/bin/env python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/host_scripts/TestAlertUlimit.py b/ambari-server/src/test/python/host_scripts/TestAlertUlimit.py index a6785bdcc4a..cc4cafad4b8 100644 --- a/ambari-server/src/test/python/host_scripts/TestAlertUlimit.py +++ b/ambari-server/src/test/python/host_scripts/TestAlertUlimit.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/hooks/after_install.py b/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/hooks/after_install.py index 280aaf81b7d..f98787116dd 100644 --- a/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/hooks/after_install.py +++ b/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/hooks/after_install.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/hooks/before_install.py b/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/hooks/before_install.py index 280aaf81b7d..f98787116dd 100644 --- a/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/hooks/before_install.py +++ b/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/hooks/before_install.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/after_install.py b/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/after_install.py index 280aaf81b7d..f98787116dd 100644 --- a/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/after_install.py +++ b/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/after_install.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/after_upgrade.py b/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/after_upgrade.py index 280aaf81b7d..f98787116dd 100644 --- a/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/after_upgrade.py +++ b/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/after_upgrade.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/before_install.py b/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/before_install.py index 280aaf81b7d..f98787116dd 100644 --- a/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/before_install.py +++ b/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/before_install.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/before_upgrade.py b/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/before_upgrade.py index 280aaf81b7d..f98787116dd 100644 --- a/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/before_upgrade.py +++ b/ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/hooks/before_upgrade.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/stacks/__init__.py b/ambari-server/src/test/python/stacks/__init__.py index 280aaf81b7d..f98787116dd 100644 --- a/ambari-server/src/test/python/stacks/__init__.py +++ b/ambari-server/src/test/python/stacks/__init__.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/stacks/stack-hooks/before-SET_KEYTAB/test_before_set_keytab.py b/ambari-server/src/test/python/stacks/stack-hooks/before-SET_KEYTAB/test_before_set_keytab.py index 91a7c5bdee5..6443034794f 100644 --- a/ambari-server/src/test/python/stacks/stack-hooks/before-SET_KEYTAB/test_before_set_keytab.py +++ b/ambari-server/src/test/python/stacks/stack-hooks/before-SET_KEYTAB/test_before_set_keytab.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/stacks/test_stack_adviser.py b/ambari-server/src/test/python/stacks/test_stack_adviser.py index f7a16bc88e2..7b2224f395e 100644 --- a/ambari-server/src/test/python/stacks/test_stack_adviser.py +++ b/ambari-server/src/test/python/stacks/test_stack_adviser.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/stacks/utils/__init__.py b/ambari-server/src/test/python/stacks/utils/__init__.py index 280aaf81b7d..f98787116dd 100644 --- a/ambari-server/src/test/python/stacks/utils/__init__.py +++ b/ambari-server/src/test/python/stacks/utils/__init__.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/python/unitTests.py b/ambari-server/src/test/python/unitTests.py index 8c0d59a1575..450e67cb09a 100644 --- a/ambari-server/src/test/python/unitTests.py +++ b/ambari-server/src/test/python/unitTests.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/resources/common-services/HDFS/1.0/package/dummy-script.py b/ambari-server/src/test/resources/common-services/HDFS/1.0/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/test/resources/common-services/HDFS/1.0/package/dummy-script.py +++ b/ambari-server/src/test/resources/common-services/HDFS/1.0/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/resources/extensions/EXT/0.1/services/OOZIE2/package/dummy-script.py b/ambari-server/src/test/resources/extensions/EXT/0.1/services/OOZIE2/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/test/resources/extensions/EXT/0.1/services/OOZIE2/package/dummy-script.py +++ b/ambari-server/src/test/resources/extensions/EXT/0.1/services/OOZIE2/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/resources/stacks/HDP/2.0.6.1/hooks/dummy-script.py b/ambari-server/src/test/resources/stacks/HDP/2.0.6.1/hooks/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/test/resources/stacks/HDP/2.0.6.1/hooks/dummy-script.py +++ b/ambari-server/src/test/resources/stacks/HDP/2.0.6.1/hooks/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/resources/stacks/HDP/2.0.6/hooks/dummy-script.py b/ambari-server/src/test/resources/stacks/HDP/2.0.6/hooks/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/test/resources/stacks/HDP/2.0.6/hooks/dummy-script.py +++ b/ambari-server/src/test/resources/stacks/HDP/2.0.6/hooks/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/resources/stacks/HDP/2.0.7/services/HBASE/package/dummy-script.py b/ambari-server/src/test/resources/stacks/HDP/2.0.7/services/HBASE/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/test/resources/stacks/HDP/2.0.7/services/HBASE/package/dummy-script.py +++ b/ambari-server/src/test/resources/stacks/HDP/2.0.7/services/HBASE/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/resources/stacks/HDP/2.0.7/services/HDFS/package/dummy-script.py b/ambari-server/src/test/resources/stacks/HDP/2.0.7/services/HDFS/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/test/resources/stacks/HDP/2.0.7/services/HDFS/package/dummy-script.py +++ b/ambari-server/src/test/resources/stacks/HDP/2.0.7/services/HDFS/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/resources/stacks/HDP/2.0.8/hooks/dummy-script.py b/ambari-server/src/test/resources/stacks/HDP/2.0.8/hooks/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/test/resources/stacks/HDP/2.0.8/hooks/dummy-script.py +++ b/ambari-server/src/test/resources/stacks/HDP/2.0.8/hooks/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/resources/stacks/HDP/2.0.8/services/HDFS/package/dummy-script.py b/ambari-server/src/test/resources/stacks/HDP/2.0.8/services/HDFS/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/test/resources/stacks/HDP/2.0.8/services/HDFS/package/dummy-script.py +++ b/ambari-server/src/test/resources/stacks/HDP/2.0.8/services/HDFS/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/resources/stacks/OTHER/1.0/services/HDFS/package/dummy-script.py b/ambari-server/src/test/resources/stacks/OTHER/1.0/services/HDFS/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/test/resources/stacks/OTHER/1.0/services/HDFS/package/dummy-script.py +++ b/ambari-server/src/test/resources/stacks/OTHER/1.0/services/HDFS/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/resources/stacks_with_common_services/HDP/0.2/services/HDFS/package/dummy-script.py b/ambari-server/src/test/resources/stacks_with_common_services/HDP/0.2/services/HDFS/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/test/resources/stacks_with_common_services/HDP/0.2/services/HDFS/package/dummy-script.py +++ b/ambari-server/src/test/resources/stacks_with_common_services/HDP/0.2/services/HDFS/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/resources/stacks_with_cycle/OTHER/1.0/services/HDFS/package/dummy-script.py b/ambari-server/src/test/resources/stacks_with_cycle/OTHER/1.0/services/HDFS/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/test/resources/stacks_with_cycle/OTHER/1.0/services/HDFS/package/dummy-script.py +++ b/ambari-server/src/test/resources/stacks_with_cycle/OTHER/1.0/services/HDFS/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/resources/stacks_with_extensions/HDP/0.2/services/HDFS/package/dummy-script.py b/ambari-server/src/test/resources/stacks_with_extensions/HDP/0.2/services/HDFS/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/test/resources/stacks_with_extensions/HDP/0.2/services/HDFS/package/dummy-script.py +++ b/ambari-server/src/test/resources/stacks_with_extensions/HDP/0.2/services/HDFS/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/resources/stacks_with_extensions/HDP/0.3/services/HDFS/package/dummy-script.py b/ambari-server/src/test/resources/stacks_with_extensions/HDP/0.3/services/HDFS/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/test/resources/stacks_with_extensions/HDP/0.3/services/HDFS/package/dummy-script.py +++ b/ambari-server/src/test/resources/stacks_with_extensions/HDP/0.3/services/HDFS/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/ambari-server/src/test/resources/stacks_with_extensions/HDP/0.4/services/HDFS/package/dummy-script.py b/ambari-server/src/test/resources/stacks_with_extensions/HDP/0.4/services/HDFS/package/dummy-script.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/ambari-server/src/test/resources/stacks_with_extensions/HDP/0.4/services/HDFS/package/dummy-script.py +++ b/ambari-server/src/test/resources/stacks_with_extensions/HDP/0.4/services/HDFS/package/dummy-script.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/addons/test/nagios/plugins/test_sys_logger.py b/contrib/addons/test/nagios/plugins/test_sys_logger.py index 08339e30fd8..b63058eb62b 100644 --- a/contrib/addons/test/nagios/plugins/test_sys_logger.py +++ b/contrib/addons/test/nagios/plugins/test_sys_logger.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # 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. diff --git a/contrib/agent-simulator/cluster.py b/contrib/agent-simulator/cluster.py index 832f5ae6135..af17bc1c177 100644 --- a/contrib/agent-simulator/cluster.py +++ b/contrib/agent-simulator/cluster.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/agent-simulator/config.py b/contrib/agent-simulator/config.py index 8d673400772..7188e42b48f 100644 --- a/contrib/agent-simulator/config.py +++ b/contrib/agent-simulator/config.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/agent-simulator/data.py b/contrib/agent-simulator/data.py index b469f331b13..e74539347e4 100644 --- a/contrib/agent-simulator/data.py +++ b/contrib/agent-simulator/data.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/agent-simulator/docker.py b/contrib/agent-simulator/docker.py index 0dd38c0690c..858f7e53f08 100644 --- a/contrib/agent-simulator/docker.py +++ b/contrib/agent-simulator/docker.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/agent-simulator/docker_image/__init__.py b/contrib/agent-simulator/docker_image/__init__.py index 67bb99de4d7..031d1982e53 100644 --- a/contrib/agent-simulator/docker_image/__init__.py +++ b/contrib/agent-simulator/docker_image/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/agent-simulator/docker_image/launcher_agent.py b/contrib/agent-simulator/docker_image/launcher_agent.py index 1d3c87d6788..ea4e609000f 100644 --- a/contrib/agent-simulator/docker_image/launcher_agent.py +++ b/contrib/agent-simulator/docker_image/launcher_agent.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/agent-simulator/launcher_ambari_server.py b/contrib/agent-simulator/launcher_ambari_server.py index a722bdb9c57..a76ebada6e4 100644 --- a/contrib/agent-simulator/launcher_ambari_server.py +++ b/contrib/agent-simulator/launcher_ambari_server.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/agent-simulator/launcher_cluster.py b/contrib/agent-simulator/launcher_cluster.py index d43291ac3fa..91d3ceab8f6 100644 --- a/contrib/agent-simulator/launcher_cluster.py +++ b/contrib/agent-simulator/launcher_cluster.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/agent-simulator/launcher_docker.py b/contrib/agent-simulator/launcher_docker.py index 42943fa723d..9ce667ad0b9 100644 --- a/contrib/agent-simulator/launcher_docker.py +++ b/contrib/agent-simulator/launcher_docker.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/agent-simulator/launcher_service_server.py b/contrib/agent-simulator/launcher_service_server.py index 8a77b82261b..0d19fbcdd9f 100644 --- a/contrib/agent-simulator/launcher_service_server.py +++ b/contrib/agent-simulator/launcher_service_server.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/agent-simulator/log.py b/contrib/agent-simulator/log.py index b8c87ad534f..825188b4697 100644 --- a/contrib/agent-simulator/log.py +++ b/contrib/agent-simulator/log.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/agent-simulator/network/dns_edit.py b/contrib/agent-simulator/network/dns_edit.py index 237654a9f54..3c766ada429 100644 --- a/contrib/agent-simulator/network/dns_edit.py +++ b/contrib/agent-simulator/network/dns_edit.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/agent-simulator/vm.py b/contrib/agent-simulator/vm.py index 9c49eca3e30..86f7946b53c 100644 --- a/contrib/agent-simulator/vm.py +++ b/contrib/agent-simulator/vm.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/alert_check_nifi.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/alert_check_nifi.py index d74c676b54f..5dc4d33c152 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/alert_check_nifi.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/alert_check_nifi.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi.py index 6936dce7534..0c958092876 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi_ca.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi_ca.py index bc343e4e3b1..8f8d618af13 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi_ca.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi_ca.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi_ca_util.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi_ca_util.py index 20ef81ce6ee..2fd7b613bb7 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi_ca_util.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi_ca_util.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi_constants.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi_constants.py index 632a4733de9..f7faef88fe4 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi_constants.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi_constants.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/params.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/params.py index def8f45a6d1..b59823e1ed5 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/params.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/params.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/service_check.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/service_check.py index 535592f7d6f..5e6c32b0216 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/service_check.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/service_check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file @@ -72,4 +72,4 @@ def check_nifi_portal(url): raise Fail("Error connecting to {0}. Reason - Timeout".format(url)) if __name__ == "__main__": - NifiServiceCheck().execute() \ No newline at end of file + NifiServiceCheck().execute() diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/setup_ranger_nifi.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/setup_ranger_nifi.py index 91a68852554..890ffb32e3c 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/setup_ranger_nifi.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/setup_ranger_nifi.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file @@ -65,4 +65,4 @@ def setup_ranger_nifi(upgrade_type=None): File(os.path.join(params.nifi_config_dir, 'ranger-policymgr-ssl.xml'), owner=params.nifi_user, group=params.nifi_group, mode=0400) else: - Logger.info('Ranger admin not installed') \ No newline at end of file + Logger.info('Ranger admin not installed') diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/status_params.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/status_params.py index 9748661c3fd..65130d8c968 100755 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/status_params.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/status_params.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/hooks/after_install.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/hooks/after_install.py index 8f0743b10d8..6cc1e765b16 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/hooks/after_install.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/hooks/after_install.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/after-INSTALL/scripts/hook.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/after-INSTALL/scripts/hook.py index 8bae9e689e7..7395731b53a 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/after-INSTALL/scripts/hook.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/after-INSTALL/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/after-INSTALL/scripts/params.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/after-INSTALL/scripts/params.py index d4dc349ef58..e5113898423 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/after-INSTALL/scripts/params.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/after-INSTALL/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/after-INSTALL/scripts/shared_initialization.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/after-INSTALL/scripts/shared_initialization.py index 18014b640eb..6969f3057fb 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/after-INSTALL/scripts/shared_initialization.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/after-INSTALL/scripts/shared_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-ANY/scripts/hook.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-ANY/scripts/hook.py index c34be0b1edf..87edbe5a65f 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-ANY/scripts/hook.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-ANY/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-ANY/scripts/params.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-ANY/scripts/params.py index 6d518f1db28..61e04881b67 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-ANY/scripts/params.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-ANY/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-ANY/scripts/shared_initialization.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-ANY/scripts/shared_initialization.py index e8e8b08ad7a..ee8770bef05 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-ANY/scripts/shared_initialization.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-ANY/scripts/shared_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/hook.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/hook.py index ce17776b204..1c960378272 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/hook.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/params.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/params.py index 6193c11c22a..304cfdd15fd 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/params.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/repo_initialization.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/repo_initialization.py index c37c6bdbf1b..0e22228330b 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/repo_initialization.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/repo_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/shared_initialization.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/shared_initialization.py index f07aea50697..f10499dd583 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/shared_initialization.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-INSTALL/scripts/shared_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-RESTART/scripts/hook.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-RESTART/scripts/hook.py index 14b9d990583..42f81db0925 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-RESTART/scripts/hook.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-RESTART/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/files/topology_script.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/files/topology_script.py index e026ba77378..449fd7d19c8 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/files/topology_script.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/files/topology_script.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/hook.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/hook.py index f21e4b1f80d..f16a3a3b226 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/hook.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/params.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/params.py index 77df21f275e..a0c3194111e 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/params.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/rack_awareness.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/rack_awareness.py index 548f0519145..5029d1d3c76 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/rack_awareness.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/rack_awareness.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python - +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/shared_initialization.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/shared_initialization.py index 01e55c0a64d..013816560e5 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/shared_initialization.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/hooks/before-START/scripts/shared_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/__init__.py b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/__init__.py index 35de4bb1d7a..ec4a97c676d 100644 --- a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/__init__.py +++ b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/onefs_client.py b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/onefs_client.py index b8ae3def9a3..ceb93d5c234 100644 --- a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/onefs_client.py +++ b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/onefs_client.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params.py b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params.py index 838510c2a62..718955c4714 100644 --- a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params.py +++ b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params_linux.py b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params_linux.py index b0433bd605b..ee36fdc9046 100644 --- a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params_linux.py +++ b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params_linux.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params_windows.py b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params_windows.py index 8587c49ad09..1a11fa728bf 100644 --- a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params_windows.py +++ b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params_windows.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/service_check.py b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/service_check.py index 4c92866cd02..78998032ea5 100644 --- a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/service_check.py +++ b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/service_check.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/status_params.py b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/status_params.py index 466c2af66e7..fb9cd7dc055 100644 --- a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/status_params.py +++ b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/status_params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/service_advisor.py b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/service_advisor.py index 37d1a008e04..c58f67204d1 100644 --- a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/service_advisor.py +++ b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/service_advisor.py @@ -143,4 +143,4 @@ def getServiceConfigurationsValidationItems(self, configs, recommendedDefaults, validation_errors.extend(self.toConfigurationValidationProblems(HdfsSite(services).validate(), 'hdfs-site')) except KeyError as e: self.logger.info('Cannot get OneFS properties from config. KeyError: %s' % e) - return validation_errors \ No newline at end of file + return validation_errors diff --git a/contrib/management-packs/isilon-onefs-mpack/src/main/tools/hdfs_to_onefs_convert.py b/contrib/management-packs/isilon-onefs-mpack/src/main/tools/hdfs_to_onefs_convert.py index e07843dfa7a..d35c5136448 100644 --- a/contrib/management-packs/isilon-onefs-mpack/src/main/tools/hdfs_to_onefs_convert.py +++ b/contrib/management-packs/isilon-onefs-mpack/src/main/tools/hdfs_to_onefs_convert.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/isilon-onefs-mpack/src/test/python/TestServiceAdvisor.py b/contrib/management-packs/isilon-onefs-mpack/src/test/python/TestServiceAdvisor.py index 26714b39542..a77bbb0e4df 100644 --- a/contrib/management-packs/isilon-onefs-mpack/src/test/python/TestServiceAdvisor.py +++ b/contrib/management-packs/isilon-onefs-mpack/src/test/python/TestServiceAdvisor.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/isilon-onefs-mpack/src/test/python/unitTests.py b/contrib/management-packs/isilon-onefs-mpack/src/test/python/unitTests.py index 03bc923a8d6..e26708cf755 100644 --- a/contrib/management-packs/isilon-onefs-mpack/src/test/python/unitTests.py +++ b/contrib/management-packs/isilon-onefs-mpack/src/test/python/unitTests.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/microsoft_r_server.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/microsoft_r_server.py index 223cbd8871a..ba2671d90d3 100644 --- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/microsoft_r_server.py +++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/microsoft_r_server.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params.py index aa207979f1c..9654dba6e11 100644 --- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params.py +++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_linux.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_linux.py index 71f17b66643..e9023026a33 100644 --- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_linux.py +++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_linux.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_windows.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_windows.py index 3eca213611d..940ae20f0e9 100644 --- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_windows.py +++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_windows.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/service_check.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/service_check.py index 57b668180e8..5ee7d93ea8e 100644 --- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/service_check.py +++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/service_check.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/after-INSTALL/scripts/hook.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/after-INSTALL/scripts/hook.py index 8bae9e689e7..7395731b53a 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/after-INSTALL/scripts/hook.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/after-INSTALL/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/after-INSTALL/scripts/params.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/after-INSTALL/scripts/params.py index bb041782350..ba3af73ed70 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/after-INSTALL/scripts/params.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/after-INSTALL/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/after-INSTALL/scripts/shared_initialization.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/after-INSTALL/scripts/shared_initialization.py index 9fe45273e54..a39074afaca 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/after-INSTALL/scripts/shared_initialization.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/after-INSTALL/scripts/shared_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-ANY/scripts/hook.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-ANY/scripts/hook.py index c34be0b1edf..87edbe5a65f 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-ANY/scripts/hook.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-ANY/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-ANY/scripts/params.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-ANY/scripts/params.py index 554408587ad..2e46770a96b 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-ANY/scripts/params.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-ANY/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-ANY/scripts/shared_initialization.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-ANY/scripts/shared_initialization.py index 1a7d21a35a3..49c846f6085 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-ANY/scripts/shared_initialization.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-ANY/scripts/shared_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/hook.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/hook.py index ce17776b204..1c960378272 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/hook.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/params.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/params.py index 6193c11c22a..304cfdd15fd 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/params.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/repo_initialization.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/repo_initialization.py index a35dce757ee..32355da0299 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/repo_initialization.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/repo_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/shared_initialization.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/shared_initialization.py index 1609050409d..2eff237af0c 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/shared_initialization.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-INSTALL/scripts/shared_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-RESTART/scripts/hook.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-RESTART/scripts/hook.py index 14b9d990583..42f81db0925 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-RESTART/scripts/hook.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-RESTART/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/files/topology_script.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/files/topology_script.py index e026ba77378..449fd7d19c8 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/files/topology_script.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/files/topology_script.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/hook.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/hook.py index f21e4b1f80d..f16a3a3b226 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/hook.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/hook.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/params.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/params.py index d8debdf6a78..1bb39961de9 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/params.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/params.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/rack_awareness.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/rack_awareness.py index 548f0519145..5029d1d3c76 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/rack_awareness.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/rack_awareness.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python - +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/shared_initialization.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/shared_initialization.py index 01e55c0a64d..013816560e5 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/shared_initialization.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/hooks/before-START/scripts/shared_initialization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_hive_interactive_thrift_port.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_hive_interactive_thrift_port.py index 69171608850..30bf7484e39 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_hive_interactive_thrift_port.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_hive_interactive_thrift_port.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python - +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file @@ -213,4 +212,4 @@ def execute(configurations={}, parameters={}, host_name=None): @OsFamilyFuncImpl(os_family=OSConst.WINSRV_FAMILY) def execute(configurations={}, parameters={}, host_name=None): - pass \ No newline at end of file + pass diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_hive_metastore.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_hive_metastore.py index e02ed5a7536..bb40d1e1226 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_hive_metastore.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_hive_metastore.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python - +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_hive_thrift_port.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_hive_thrift_port.py index 32da1cc79bd..ff79df06bfa 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_hive_thrift_port.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_hive_thrift_port.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python - +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_llap_app_status.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_llap_app_status.py index 095be3f9346..e3fd21ba3e4 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_llap_app_status.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_llap_app_status.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python - +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file @@ -296,4 +295,4 @@ def make_valid_json(output): scanned_output = '\n'.join(splits) llap_app_info = json.loads(scanned_output) - return llap_app_info \ No newline at end of file + return llap_app_info diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_webhcat_server.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_webhcat_server.py index c9575c00e22..788df82facb 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_webhcat_server.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/alerts/alert_webhcat_server.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python - +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/__init__.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/__init__.py index 5561e1087b2..152033a3be5 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/__init__.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/__init__.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hcat.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hcat.py index 5e2c709c8c7..b1a26084ed4 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hcat.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hcat.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hcat_client.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hcat_client.py index b37698e9cf0..d8feb04c665 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hcat_client.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hcat_client.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hcat_service_check.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hcat_service_check.py index 07b40955f57..607260f8d8d 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hcat_service_check.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hcat_service_check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive.py index 3ef600957e3..1e535e37f87 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_client.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_client.py index 55cf61ab688..a109bcff807 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_client.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_client.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_interactive.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_interactive.py index 6009cb6f836..29777b9e5df 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_interactive.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_interactive.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_metastore.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_metastore.py index a69460e82e3..cba2a06bb00 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_metastore.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_metastore.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_server.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_server.py index 6aeaf803e6c..4bbeeb89864 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_server.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_server.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_server_interactive.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_server_interactive.py index beb1220c72b..c8bea6cc485 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_server_interactive.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_server_interactive.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file @@ -531,4 +531,4 @@ def status(self, env): pass if __name__ == "__main__": - HiveServerInteractive().execute() \ No newline at end of file + HiveServerInteractive().execute() diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_server_upgrade.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_server_upgrade.py index 9aa3d96983d..cac175c0a4b 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_server_upgrade.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_server_upgrade.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_service.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_service.py index 05b395dfab5..987f5b1db43 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_service.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_service.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_service_interactive.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_service_interactive.py index eaf95ad5dbc..b035b7bcdfb 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_service_interactive.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_service_interactive.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_server.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_server.py index 851dc02c416..07c9a2a5d83 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_server.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_server.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_service.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_service.py index 8b98ed1d59f..b34917e5fd0 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_service.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_service.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_users.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_users.py index c023548093f..818bc6db5cf 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_users.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_users.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_utils.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_utils.py index 5006b56c4e9..57cf2fbabdc 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_utils.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/mysql_utils.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file @@ -32,4 +32,4 @@ def mysql_configure(): # this also will start mysql-server mysql_users.mysql_adduser() - \ No newline at end of file + diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/params.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/params.py index f10a3f39975..d192c55ef2b 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/params.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/params.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/params_linux.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/params_linux.py index ea386be953b..43fae80b4a9 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/params_linux.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/params_linux.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/params_windows.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/params_windows.py index 880fdb567bf..30eb4d25bec 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/params_windows.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/params_windows.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/service_check.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/service_check.py index 1836d0f3ce8..956b7bc64c5 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/service_check.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/service_check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file @@ -187,4 +187,4 @@ def check_llap(self, env, kinit_cmd, address, port, key, hive_auth="NOSASL", tra logoutput=True) if __name__ == "__main__": - HiveServiceCheck().execute() \ No newline at end of file + HiveServiceCheck().execute() diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/setup_ranger_hive.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/setup_ranger_hive.py index 81a4e3e80cc..b732528719a 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/setup_ranger_hive.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/setup_ranger_hive.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/setup_ranger_hive_interactive.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/setup_ranger_hive_interactive.py index 0b5d5dbed06..5bd5efa018a 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/setup_ranger_hive_interactive.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/setup_ranger_hive_interactive.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/status_params.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/status_params.py index a7b2e3fbc29..e4d4952fe4b 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/status_params.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/status_params.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat.py index fe3f34a2b55..42c7f517a06 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat_server.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat_server.py index ee9087d6efe..28ffa8e7c88 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat_server.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat_server.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat_service.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat_service.py index c24db4c2ff4..2a9276d0650 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat_service.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat_service.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat_service_check.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat_service_check.py index 8e80d4868a6..7b2eb926811 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat_service_check.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/webhcat_service_check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/alerts/alert_nodemanager_health.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/alerts/alert_nodemanager_health.py index d7159e4eb03..eff631b99df 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/alerts/alert_nodemanager_health.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/alerts/alert_nodemanager_health.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python - +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/alerts/alert_nodemanagers_summary.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/alerts/alert_nodemanagers_summary.py index adf27ecc303..e2c8ae7302a 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/alerts/alert_nodemanagers_summary.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/alerts/alert_nodemanagers_summary.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python - +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file @@ -216,4 +215,4 @@ def find_value_in_jmx(data_dict, jmx_property, query): raise Exception("Unable to find {0} in JSON from {1} ".format(jmx_property, query)) json_data = jmx_prop_list_item - return json_data[jmx_property] \ No newline at end of file + return json_data[jmx_property] diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/files/validateYarnComponentStatusWindows.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/files/validateYarnComponentStatusWindows.py index 5e2b4d91196..ff403c4a105 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/files/validateYarnComponentStatusWindows.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/files/validateYarnComponentStatusWindows.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/__init__.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/__init__.py index 35de4bb1d7a..ec4a97c676d 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/__init__.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/application_timeline_server.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/application_timeline_server.py index e3a81cf04b4..d037cea0295 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/application_timeline_server.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/application_timeline_server.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/historyserver.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/historyserver.py index f933e917257..cbc6a74cc23 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/historyserver.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/historyserver.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/install_jars.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/install_jars.py index 44015bfb28b..36e3e8f7186 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/install_jars.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/install_jars.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/mapred_service_check.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/mapred_service_check.py index 5fc498d558d..6991812bac3 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/mapred_service_check.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/mapred_service_check.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/mapreduce2_client.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/mapreduce2_client.py index 8de9d566af9..1d8210ec4bd 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/mapreduce2_client.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/mapreduce2_client.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/nodemanager.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/nodemanager.py index 4f3eecb23a5..0141bf69233 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/nodemanager.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/nodemanager.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/nodemanager_upgrade.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/nodemanager_upgrade.py index 1c886f94067..30abb59c386 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/nodemanager_upgrade.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/nodemanager_upgrade.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/params.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/params.py index 073e84f5e25..b6c84bb5f0b 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/params.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/params.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/params_linux.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/params_linux.py index 7db9ea9e4ee..eb725de877c 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/params_linux.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/params_linux.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/params_windows.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/params_windows.py index cac93ee1215..fea6c2fc80d 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/params_windows.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/params_windows.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/resourcemanager.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/resourcemanager.py index 12c279a8d97..bf23d687051 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/resourcemanager.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/resourcemanager.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/service.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/service.py index b1179b9bda5..fb723085c3e 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/service.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/service.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/service_check.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/service_check.py index daa8e7e25ab..c21999e4a27 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/service_check.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/service_check.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/setup_ranger_yarn.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/setup_ranger_yarn.py index 6ea7f82775e..2907120644d 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/setup_ranger_yarn.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/setup_ranger_yarn.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/status_params.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/status_params.py index c2e9d92a046..828b488151a 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/status_params.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/status_params.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file @@ -58,4 +58,4 @@ kinit_path_local = functions.get_kinit_path(default('/configurations/kerberos-env/executable_search_paths', None)) security_enabled = config['configurations']['cluster-env']['security_enabled'] -stack_name = default("/hostLevelParams/stack_name", None) \ No newline at end of file +stack_name = default("/hostLevelParams/stack_name", None) diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/yarn.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/yarn.py index a6cc6fa27ad..6fb149ae84e 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/yarn.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/yarn.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/yarn_client.py b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/yarn_client.py index 5cd2e69f6a6..23ccacf2ed1 100755 --- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/yarn_client.py +++ b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/yarn_client.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/nagios-alerts/plugins/ambari_alerts.py b/contrib/nagios-alerts/plugins/ambari_alerts.py index 182bf3d39b5..63f4791e96b 100644 --- a/contrib/nagios-alerts/plugins/ambari_alerts.py +++ b/contrib/nagios-alerts/plugins/ambari_alerts.py @@ -1,5 +1,4 @@ -#!/usr/bin/python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/nagios-alerts/plugins/generate_nagios_objects.py b/contrib/nagios-alerts/plugins/generate_nagios_objects.py index 6c00402bbd4..f7c40018dcf 100644 --- a/contrib/nagios-alerts/plugins/generate_nagios_objects.py +++ b/contrib/nagios-alerts/plugins/generate_nagios_objects.py @@ -1,5 +1,4 @@ -#!/usr/bin/python - +#!/usr/bin/env python3 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/version-builder/example.py b/contrib/version-builder/example.py index 8f87981ad3c..fac6fa102ec 100644 --- a/contrib/version-builder/example.py +++ b/contrib/version-builder/example.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/contrib/version-builder/version_builder.py b/contrib/version-builder/version_builder.py index 2abf6170f69..a4ab02a84e0 100644 --- a/contrib/version-builder/version_builder.py +++ b/contrib/version-builder/version_builder.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file diff --git a/dev-support/docker/docker/bin/__init__.py b/dev-support/docker/docker/bin/__init__.py index fac912ea71f..0d211fc1427 100755 --- a/dev-support/docker/docker/bin/__init__.py +++ b/dev-support/docker/docker/bin/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # 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 diff --git a/dev-support/docker/docker/bin/ambaribuild.py b/dev-support/docker/docker/bin/ambaribuild.py index 7cadb2f3e63..e613190359f 100755 --- a/dev-support/docker/docker/bin/ambaribuild.py +++ b/dev-support/docker/docker/bin/ambaribuild.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # coding: utf-8 # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/dev-support/docker/docker/bin/test/__init__.py b/dev-support/docker/docker/bin/test/__init__.py index fac912ea71f..0d211fc1427 100755 --- a/dev-support/docker/docker/bin/test/__init__.py +++ b/dev-support/docker/docker/bin/test/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # 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 diff --git a/dev-support/docker/docker/bin/test/ambaribuild_test.py b/dev-support/docker/docker/bin/test/ambaribuild_test.py index a324f5fe9e2..79b638177dc 100755 --- a/dev-support/docker/docker/bin/test/ambaribuild_test.py +++ b/dev-support/docker/docker/bin/test/ambaribuild_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # coding: utf-8 # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.