> On March 11, 2016, 9:06 a.m., Jayush Luniya wrote:
> > ambari-server/src/main/resources/stacks/HDP/2.3/role_command_order.json, 
> > line 14
> > <https://reviews.apache.org/r/44687/diff/1/?file=1295169#file1295169line14>
> >
> >     RCO can be defined at service level 
> > (https://issues.apache.org/jira/browse/AMBARI-9363). Instead of updating 
> > RCO of HDP stack, can you move the HAWQ and PXF specific ordering into the 
> > service?
> 
> bhuvnesh chaudhary wrote:
>     Thanks Jayush for the suggestion, let me try that.
>     However, RCO at service level will be applicable only for trunk, for 2.2 
> branch we still need to update HDP rco. correct ? 
>     If so i will remove trunk tag from the list of branches, and keep this 
> pathc for 2.2.0 only.

Tried putting role_command_order.json under 
/var/lib/ambari-server/resources/common-services/HAWQ/2.0.0/role_command_order.json.
 However, it appears that its not loaded due to which HAWQMASTER was started 
before NAMENODE and it failed. Same for PXF.
Here are the contents of RCO: 
[root@c6401 ~]# cat 
/var/lib/ambari-server/resources/common-services/HAWQ/2.0.0/role_command_order.json
{
  "_comment" : "Record format:",
  "_comment" : "blockedRole-blockedCommand: [blockerRole1-blockerCommand1, 
blockerRole2-blockerCommand2, ...]",
  "general_deps" : {
    "_comment" : "dependencies for all cases",
    "HAWQMASTER-START" : ["NAMENODE-START", "DATANODE-START", 
"NODEMANAGER-START"],
    "HAWQSTANDBY-START" : ["HAWQMASTER-START"],
    "HAWQSEGMENT-START" : ["HAWQMASTER-START", "HAWQSTANDBY-START"],
    "HAWQ_SERVICE_CHECK-SERVICE_CHECK" : ["HAWQSEGMENT-START", 
"HDFS_SERVICE_CHECK-SERVICE_CHECK", "YARN_SERVICE_CHECK-SERVICE_CHECK", 
"PXF_SERVICE_CHECK-SERVICE_CHECK"]
  }
}

Checked ambari-server.log, it does not show that this RCO is loaded but shows 
the others under /var/lib/ambari-server/resources/stacks which are loaded, will 
need to debug further for the root cause. 
Adding Tim Thorpe as well to the reviewers list.


- bhuvnesh


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


On March 11, 2016, 1:22 a.m., bhuvnesh chaudhary wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44687/
> -----------------------------------------------------------
> 
> (Updated March 11, 2016, 1:22 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, jun aoki, Jayush Luniya, 
> Matt, and Oleksandr Diachenko.
> 
> 
> Bugs: AMBARI-15381
>     https://issues.apache.org/jira/browse/AMBARI-15381
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Update RCO to ensure that PXF is started after HDFS. 
> PXF connects to namenode during startup and retries couple of times until 
> namenode has come up.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/stacks/HDP/2.3/role_command_order.json 
> b28f2a9 
> 
> Diff: https://reviews.apache.org/r/44687/diff/
> 
> 
> Testing
> -------
> 
> yes. manually.
> 
> 
> Thanks,
> 
> bhuvnesh chaudhary
> 
>

Reply via email to