ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Fernandez" <afernan...@hortonworks.com>
Subject Review Request 27482: Jobs View: Filter for tez jobs needs to work for both HDP 2.1 and HDP 2.2, which use tez:true, TEZ:true, respectively
Date Sun, 02 Nov 2014 01:55:04 GMT

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

Review request for Ambari, Jaimin Jetly, Srimanth Gunturi, Tom Beerbower, and Yusaku Sako.


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


Repository: ambari


Description
-------

The behavior of the ATS server has changed in HDP 2.2, so the Jobs View needs to support either
tez:true or TEZ:true.
In HDP 2.1, the following works,
http://c6407.ambari.apache.org:8188/ws/v1/timeline/HIVE_QUERY_ID?fields=events,primaryfilters,otherinfo&secondaryFilter=tez:true
In HDP 2.2, it uses TEZ:true instead.
To support both styles, the Jobs View needs to query as "tez:true,TEZ:true"


Diffs
-----

  contrib/views/jobs/src/main/resources/ui/app/scripts/controllers/jobs_controller.js 6a04c98

  contrib/views/jobs/src/main/resources/ui/app/scripts/helpers/ajax.js 64a8734 

Diff: https://reviews.apache.org/r/27482/diff/


Testing
-------

Deployed a local VM with Ambari 1.7.0 and HDP 2.2, and created an internal ATS, and Jobs View.
Then created another Ambari 1.7.0 cluster with HDP 2.1 on Google Compute Engine, also with
ATS and a Jobs View.
Then, created an additional Jobs View in the local VM to point to the external VM, both instances
of the Jobs View on this VM correctly showed only the Tez jobs.

```
mvn clean install
cd contrib/views/jobs
mvn clean install
```

On the VM,
```
ambari-server stop
yes | cp /vagrant/ambari/contrib/views/jobs/target/jobs-1.3.0-SNAPSHOT.jar  /var/lib/ambari-server/resources/views/jobs-1.3.0-SNAPSHOT.jar
rm -rf /var/lib/ambari-server/resources/views/work/JOBS{1.0.0}/
ambari-server start
```


Thanks,

Alejandro Fernandez


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message