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

Hudson commented on AMBARI-24273:
---------------------------------

SUCCESS: Integrated in Jenkins build Ambari-branch-2.7 #34 (See 
[https://builds.apache.org/job/Ambari-branch-2.7/34/])
AMBARI-24273. hadoop-env is not regenerated when OneFS is used as a (github: 
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=d6862e02aa03b1c9053d6dc64afe4861314d7511])
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java


> hadoop-env is not regenerated when OneFS is used as a FileSystem
> ----------------------------------------------------------------
>
>                 Key: AMBARI-24273
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24273
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.7.0
>            Reporter: Attila Magyar
>            Assignee: Attila Magyar
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.7.1
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The before-ANY/shared_initialization.py only regenerates hadop_env if there 
> is a namenode or dfs_type is set to HCFS
> {code}
>   def hook(self, env):
>     import params
>     env.set_params(params)
>     setup_users()
>     if params.has_namenode or params.dfs_type == 'HCFS':
>       setup_hadoop_env()
>     setup_java()
> {code}
> This is no longer true because in the latest ambari-server we set dfs_type as 
> follows:
> {code}
>     Map<String, ServiceInfo> serviceInfos = 
> ambariMetaInfo.getServices(stackId.getStackName(), stackId.getStackVersion());
>     for (ServiceInfo serviceInfoInstance : serviceInfos.values()) {
>       if (serviceInfoInstance.getServiceType() != null) {
>         LOG.debug("Adding {} to command parameters for {}", 
> serviceInfoInstance.getServiceType(),
>             serviceInfoInstance.getName());
>         clusterLevelParams.put(DFS_TYPE, 
> serviceInfoInstance.getServiceType());
>         break;
>       }
>     }
> {code}
> This iterates over all of the stack service which will find HDFS first, so 
> that the dfs_type will be HDFS instead of HCFS.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to