示例#1
0
 def __init__(self):
     super(VersionHandler, self).__init__()
     self.config_helper = config_helper.ConfigHelperV540()
     self.cloudera_utils = cloudera_utils.ClouderaUtilsV540()
     self.plugin_utils = plugin_utils.PluginUtilsV540()
     self.deploy = deploy
     self.edp_engine = edp_engine
     self.validation = validation.ValidatorV540()
示例#2
0
# Copyright (c) 2016 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from sahara.plugins.cdh import health
from sahara.plugins.cdh.v5_4_0 import cloudera_utils

CU = cloudera_utils.ClouderaUtilsV540()


class CDH540HealthCheck(health.CDHHealthCheck):
    def get_cloudera_tools(self):
        return CU
示例#3
0
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from sahara import conductor
from sahara import context
from sahara.plugins.cdh import abstractversionhandler as avm
from sahara.plugins.cdh import db_helper
from sahara.plugins.cdh.v5_4_0 import cloudera_utils as cu
from sahara.plugins.cdh.v5_4_0 import config_helper as c_helper
from sahara.plugins.cdh.v5_4_0 import deploy as dp
from sahara.plugins.cdh.v5_4_0 import edp_engine
from sahara.plugins.cdh.v5_4_0 import validation as vl

conductor = conductor.API
CU = cu.ClouderaUtilsV540()


class VersionHandler(avm.AbstractVersionHandler):
    def get_plugin_configs(self):
        return c_helper.get_plugin_configs()

    def get_node_processes(self):
        return {
            "CLOUDERA": ['CLOUDERA_MANAGER'],
            "HDFS": [],
            "NAMENODE": ['HDFS_NAMENODE'],
            "DATANODE": ['HDFS_DATANODE'],
            "SECONDARYNAMENODE": ['HDFS_SECONDARYNAMENODE'],
            "YARN": [],
            "RESOURCEMANAGER": ['YARN_RESOURCEMANAGER'],
示例#4
0
 def __init__(self, cluster):
     super(EdpOozieEngine, self).__init__(cluster)
     self.cloudera_utils = cu.ClouderaUtilsV540()