Hi Qi Yun Liu,

This method is what you are looking for : stacks/HDP/2.0.6/services

HDP206StackAdvisor#getHostsWithComponent


Example:

datanodeHosts = self.getHostsWithComponent("HDFS", "DATANODE", services, hosts)


In: stacks/HDP/2.2/services/

HDP22StackAdvisor#recommendHDFSConfigurations


BR,

Sid


________________________________
From: Qi Yun Liu <[email protected]>
Sent: Friday, April 10, 2015 7:13 PM
To: [email protected]
Subject: Re:How to get datanode numbers in 
stack_advisor.py#recommendHDFSConfigurations?

I just wanna to get datanode numbers in 
stack_advisor.py#recommendHDFSConfigurations(self, configurations, clusterData)?

Anyone could help me?

Thanks in advance!


At 2015-04-10 15:09:18, "Qi Yun Liu" <[email protected]> wrote:
Hi Experts,

How to get datanode numbers in 
stack_advisor.py#recommendHDFSConfigurations(self, configurations, 
clusterData)? using its input parameters 'self', 'configurations' or 
'clusterData'. At the same time, another method 'def 
getComponentLayoutValidations(self, services, hosts)' has a input parameter 
'services', so it could get nameNodeHosts using 'services', but I failed to get 
parameter 'services' in method recommendHDFSConfigurations.

Any comments?

Thanks a lot!




Reply via email to