[ 
https://issues.apache.org/jira/browse/AMBARI-6646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14532661#comment-14532661
 ] 

Tom Beerbower commented on AMBARI-6646:
---------------------------------------

[~neetagarimella], The Ambari docs for 2.1.0 are still being developed, but 
here is some more information on manually setting up rack awareness ...

http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.1.5/bk_system-admin-guide/content/admin_configure_rack_awareness.html

With this patch, Ambari should take care of these steps for you.  If you set 
the Hosts/rack_info property on a host, Ambari should mark the HDFS service for 
restart.  You will see a restart flag on the service in the Ambari UI. Change 
the rack info for as many hosts as you need to then restart the service through 
the UI.  As the service is restarted, the topology scripts are updated to 
reflect the changes in rack information for the hosts.  You can verify that 
hadoop sees the rack changes by running the report in step 4 of the 
instructions above...
{code}
sudo -u hdfs hadoop dfsadmin -report
{code}

With the latest Ambari UI code you should see an option to set the rack info 
for each host.  You can also set the rack info property through the API ...

{code}
PUT api/v1/clusters/c1/hosts/[host_name]

{
  "Hosts" : {
    "rack_info" : "/rack-01"
  }
}
{code}

Hope this helps.  Thanks!

> Ability to set rack awareness
> -----------------------------
>
>                 Key: AMBARI-6646
>                 URL: https://issues.apache.org/jira/browse/AMBARI-6646
>             Project: Ambari
>          Issue Type: Epic
>    Affects Versions: 1.7.0
>            Reporter: Shivani Gupta
>            Assignee: Tom Beerbower
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-6646.patch
>
>
> Ambari should support rack awareness to drive Hadoop operations.
>   
> -  Ability to set/edit Rack ID on hosts (On the hosts details page and prob 
> need a dialog "Manage Rack Assignment..." on the Hosts Action menu to allow 
> you to add Rack IDs and bulk move hosts in/out of a rack – similar to host 
> config groups dialog)
> -  Adjust heatmap to layout hosts by Rack ID (or default rack if not set)
> -  Adjust hosts table to include Rack ID as a column, which is sortable and 
> searchable
> Ambari will generate a topology script that echos this Rack ID, and sets that 
> topology script in the config.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to