You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Alejandro Fernandez (JIRA)" <ji...@apache.org> on 2015/04/07 22:49:13 UTC

[jira] [Commented] (AMBARI-9993) Add support for management of Phoenix Query Server to HDP Stack

    [ https://issues.apache.org/jira/browse/AMBARI-9993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14484023#comment-14484023 ] 

Alejandro Fernandez commented on AMBARI-9993:
---------------------------------------------

[~ndimiduk], I assume that the rest of the component will be added to the stack.
This can be done in ambari-server/src/main/resources/common/services/PHOENIX/#.#.#.#.#/

with that folder containing metainfo.xml, as well as package/scripts/queryserver.py (should change the path in metainfo.xml from "bin/queryserver.py" to "scripts/queryserver.py")

queryserver.py can just have a skeleton for now,
{code}
class QueryServer(Script):

  def get_stack_to_component(self):
    return {"HDP": "insert-component-name-in-hdp"}

  def install(self, env):
    pass

  def pre_rolling_restart(self, env):
    pass

  def post_rolling_restart(self, env):
    pass

  def start(self, env, rolling_restart=False):
    pass

  def stop(self, env, rolling_restart=False):
    pass

  def configure(self, env):
    pass

  def status(self, env):
    pass

  def security_status(self, env):
    pass

if __name__ == "__main__":
  QueryServer().execute()
{code}

HDP 2.3 also needs to include the service, so take a look at MAHOUT's metainfo.xml file in ambari-server/src/main/resources/stacks/HDP/2.3/services as an example,

{code}
<metainfo>
    <schemaVersion>2.0</schemaVersion>
    <services>
        <service>
            <name>PHONEIX</name>
            <extends>common-services/MAHOUT/#.#.#.#.#</extends>
        </service>
    </services>
</metainfo>
{code}

To test it out, deploy a VM with Ambari 2.1 and HDP 2.3.
Then, copy the entire common-services/PHOENIX folder on the ambari-server host to /var/lib/ambari-server/resources/common-services/ , and on each agent to /var/lib/ambari-agent/cache/common-services/ .
Do the same thing for the PHOENIX folder in HDP/2.3 for /var/lib/ambari-server/resources/stacks/HDP/2.3/services/ and /var/lib/ambari-agent/cache/stacks/HDP/2.3/services/
Then restart ambari-server, and it should pick up your service.

You then need to start filling in the blanks with how to install, start/stop, run Service Checks, configs.

> Add support for management of Phoenix Query Server to HDP Stack
> ---------------------------------------------------------------
>
>                 Key: AMBARI-9993
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9993
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-server
>    Affects Versions: 2.1.0
>            Reporter: Jeff Sposetti
>             Fix For: 2.1.0
>
>         Attachments: 9993.patch
>
>
> Add support to install, manage and monitor the Phoenix Query Server.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)