Github user merrimanr commented on a diff in the pull request:

    https://github.com/apache/incubator-metron/pull/500#discussion_r110771928
  
    --- Diff: 
metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/rest_master.py
 ---
    @@ -0,0 +1,83 @@
    +"""
    +Licensed to the Apache Software Foundation (ASF) under one
    +or more contributor license agreements.  See the NOTICE file
    +distributed with this work for additional information
    +regarding copyright ownership.  The ASF licenses this file
    +to you under the Apache License, Version 2.0 (the
    +"License"); you may not use this file except in compliance
    +with the License.  You may obtain a copy of the License at
    +
    +    http://www.apache.org/licenses/LICENSE-2.0
    +
    +Unless required by applicable law or agreed to in writing, software
    +distributed under the License is distributed on an "AS IS" BASIS,
    +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +See the License for the specific language governing permissions and
    +limitations under the License.
    +
    +"""
    +
    +from resource_management.core.exceptions import ComponentIsNotRunning
    +from resource_management.core.exceptions import ExecutionFailed
    +from resource_management.core.resources.system import File
    +from resource_management.core.source import Template
    +from resource_management.libraries.functions.format import format
    +from resource_management.libraries.script import Script
    +from resource_management.core.resources.system import Execute
    +
    +from rest_commands import RestCommands
    +
    +
    +class RestMaster(Script):
    +    def get_component_name(self):
    +        # TODO add this at some point - currently will cause problems with 
hdp-select
    +        # return "parser-master"
    +        pass
    +
    +    def install(self, env):
    +        from params import params
    +        env.set_params(params)
    +        commands = RestCommands(params)
    +        commands.setup_repo()
    +        self.install_packages(env)
    +
    +    def configure(self, env, upgrade_type=None, config_dir=None):
    +        from params import params
    +        env.set_params(params)
    +
    +        File(format("{metron_config_path}/application.yml"),
    --- End diff --
    
    Good idea.  I changed the name to rest_application.yml.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to