ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alejandro Fernandez <afernan...@hortonworks.com>
Subject Re: Review Request 43948: RM fails to start: IOException: /ats/active does not exist
Date Wed, 24 Feb 2016 18:56:00 GMT

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




ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/resourcemanager.py
(line 120)
<https://reviews.apache.org/r/43948/#comment182000>

    If this happens during cluster install, why don't we put a dependency in role_command_order.json
that RM must start after ATS.
    
    If ATS is on host1 and RM on host2, and during fresh cluster install we fail to install
ATS, then RM will keep waiting.



ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/resourcemanager.py
(line 122)
<https://reviews.apache.org/r/43948/#comment182001>

    Can slightly optimize here by passing a list of dirs so that only have to kinit once and
make fewer calls.



ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/resourcemanager.py
(line 253)
<https://reviews.apache.org/r/43948/#comment182002>

    Good practice to declare variables like dir_exists in the same scope, so before the "if"
block.


- Alejandro Fernandez


On Feb. 24, 2016, 4:39 p.m., Sebastian Toader wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43948/
> -----------------------------------------------------------
> 
> (Updated Feb. 24, 2016, 4:39 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Andrew Onischuk, Sumit Mohanty, and Sid
Wagle.
> 
> 
> Bugs: AMBARI-15158
>     https://issues.apache.org/jira/browse/AMBARI-15158
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> If ATS is installed than Resource Manager after starting will check if the directories
where ATS will store time line data for active and completed applications exists in DFS. There
migh tbe cases when RM comes up much earlier than ATS creating these directories. In these
situations RM will stop with "IOException: /ats/active does not exist" error message.
> 
> In order to avoid this situation the pythin script responsible for starting RM component
has been modified to check the existence of these directories upfront before the RM process
is started. This check is performed only if ATS is installed and have either yarn.timeline-service.entity-group-fs-store.active-dir
or yarn.timeline-service.entity-group-fs-store.done-dir set.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py
2ef404d 
>   ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/resourcemanager.py
ec7799e 
> 
> Diff: https://reviews.apache.org/r/43948/diff/
> 
> 
> Testing
> -------
> 
> Manual testing:
> 1. Created secure/non-secure clusters with Blueprint where NN, RM and ATS were deployed
to different nodes. This was tested with both cases when HDFS has webhdfs enabled and disabled.
> 2. Created a cluster using the UI where NN, RM and ATS were deployed to different nodes.
After the cluster was kerberized and was tested with both cases when HDFS has webhdfs enabled
and disabled.
> 
> Python tests results:
> ----------------------------------------------------------------------
> Total run:902
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Sebastian Toader
> 
>


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