-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60975/
-----------------------------------------------------------

Review request for Ambari, Alejandro Fernandez and Robert Levas.


Bugs: AMBARI-21522
    https://issues.apache.org/jira/browse/AMBARI-21522


Repository: ambari


Description
-------

When installing a new cluster with Atlas, the cluster's version may not 
transition out of {{INIT}}.

This is being caused by Atlas Client - it's version is UNKNOWN.

{code}
ATLAS_CLIENT    UNKNOWN 6       INSTALLED       2       ATLAS
HST_AGENT       UNKNOWN 6       STARTED 2       SMARTSENSE
INFRA_SOLR_CLIENT       UNKNOWN 6       INSTALLED       2       AMBARI_INFRA
LOGSEARCH_LOGFEEDER     UNKNOWN 6       STARTED 2       LOGSEARCH
METRICS_COLLECTOR       UNKNOWN 6       STARTED 2       AMBARI_METRICS
METRICS_GRAFANA UNKNOWN 6       STARTED 2       AMBARI_METRICS
METRICS_MONITOR UNKNOWN 6       STARTED 2       AMBARI_METRICS
{code}

This is an HDP-2.6 cluster, which means that Atlas should be using 0.7.0.2.5:
{code}
./src/main/resources/common-services/ATLAS/0.7.0.2.5/metainfo.xml:      
<version>0.7.0.2.5</version>
./src/main/resources/stacks/HDP/2.5/services/ATLAS/metainfo.xml:      
<version>0.7.0.2.5</version>
./src/main/resources/stacks/HDP/2.5/services/ATLAS/metainfo.xml:      
<extends>common-services/ATLAS/0.7.0.2.5</extends>
{code}

In Atlas 0.7.0.2.5, it advertises a version:
{code}
        <component>
          <name>ATLAS_CLIENT</name>
          <cardinality>1+</cardinality>
          <versionAdvertised>true</versionAdvertised>
        </component>
      </components>
{code}

The root cause is that the verison is not being sent in the {{commandParams}}:
{code}
2017-07-19 15:43:49,739 - Stack Feature Version Info: Cluster Stack=2.6, 
Cluster Current Version=None, Command Stack=None, Command Version=None-> 2.6
{code}


Diffs
-----

  
ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ExecutionCommandWrapper.java
 88753142f1 
  ambari-server/src/main/java/org/apache/ambari/server/state/Cluster.java 
9dc58fe0f2 
  
ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
 89d529c2d6 
  
ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/atlas_client.py
 2376ff9ca7 
  
ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py
 bdc9ec4dc8 


Diff: https://reviews.apache.org/r/60975/diff/1/


Testing
-------

PENDING...


Thanks,

Jonathan Hurley

Reply via email to