> On Jan. 20, 2016, 11:16 p.m., Alexander Denissov wrote: > > ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/service_check.py, > > line 74 > > <https://reviews.apache.org/r/42536/diff/2/?file=1203652#file1203652line74> > > > > there is utils.exec_hawq_operation() function that will source the path > > file and run a hawq command
The command **hawq state -d /hawq/master/directory** is supposed to be run on the HAWQ master host. exec_hawq_operation runs the hawq command on the local host. Considering that Ambari picks any host with a HAWQ component, it is not guaranteed that it picks the HAWQMASTER host. In case HAWQSEGMENT host is picked (a host with no HAWQMASTER), we will need to ssh into the HAWQMASTER host and run the command. Hence we are using utils.exec_ssh_cmd for running this command - Matt ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/42536/#review115582 ----------------------------------------------------------- On Jan. 20, 2016, 10:34 a.m., Matt wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/42536/ > ----------------------------------------------------------- > > (Updated Jan. 20, 2016, 10:34 a.m.) > > > Review request for Ambari, Alexander Denissov, bhuvnesh chaudhary, jun aoki, > Lav Jain, and Newton Alex. > > > Bugs: AMBARI-14732 > https://issues.apache.org/jira/browse/AMBARI-14732 > > > Repository: ambari > > > Description > ------- > > Current HAWQ service check implementation executes tests with HAWQ internal > tables. Extend the service check to include tests with external tables on > HDFS, which can be queried through PXF > > > Diffs > ----- > > > ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawq_constants.py > fe3743b > > ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/params.py > aa3527c > > ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/service_check.py > c35fdce > > ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/utils.py > c1a38bb > > Diff: https://reviews.apache.org/r/42536/diff/ > > > Testing > ------- > > Manually Tested > > > Thanks, > > Matt > >
