Member since 
    
	
		
		
		03-14-2016
	
	
	
	
	
	
	
	
	
	
	
	
	
	
			
      
                4721
            
            
                Posts
            
        
                1111
            
            
                Kudos Received
            
        
                874
            
            
                Solutions
            
        My Accepted Solutions
| Title | Views | Posted | 
|---|---|---|
| 2490 | 04-27-2020 03:48 AM | |
| 4962 | 04-26-2020 06:18 PM | |
| 4042 | 04-26-2020 06:05 PM | |
| 3279 | 04-13-2020 08:53 PM | |
| 4991 | 03-31-2020 02:10 AM | 
			
    
	
		
		
		02-16-2017
	
		
		06:17 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 @rahul gulati  From ambari 2.4 onwards it ambari view is more enhanced and it should be able to populate most of the values on its own. Specially when the "Local Cluster"  option is choosen while configuring a new View Instance.  - Are you using Local Cluster or Remote/Custom  option?  - According to : https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-views/content/Cluster_Configuration_Local.html  The Local Ambari Managed Cluster Configuration option is enabled in the Ambari Administration Interface if you are managing a cluster with Ambari. When enabled, you can choose this option and Ambari will automatically configure the view based on how the cluster is configured.
When you configure the view using the Local option, the Files View will communicate with HDFS based on the fs.defaultFS property (for example: hdfs://namenode:8020). The View will also determine if NameNode HA is configured and adjust accordingly.  . 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		02-16-2017
	
		
		06:08 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 @rahul gulati
  Do you see a more detailed error/exception in any of the following file?  "/var/log/ambari-server/ambari-server.log"  OR "/var/log/ambari-server/files-view/files-view.log "  .    
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		02-16-2017
	
		
		05:59 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 @rahul gulati  HDFS --> config (Tab)  --> Advanced (sub Tab) 
Open the "Advanced core-site"    there you will find the value of  "fs.defaultFS"      .  Also can you please share the value (instance property) of your  FileView?  are you using webhdfs:// there? 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		02-15-2017
	
		
		04:52 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 @Baruch AMOUSSOU DJANGBAN  What is the output of "yum info ambari-server" command?  Also the output of "ambari-server --version"   (If  already yum upgraded then you should see latest version).  .  I hope that you have already done the following:  ambari-server stop
wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.4.2.0/ambari.repo -O /etc/yum.repos.d/ambari.repo
yum clean all
yum info ambari-server
yum repolist | grep ambari
yum update ambari-server  .  Followed by:  ambari-server upgrade  . 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		02-15-2017
	
		
		04:49 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 @rahul gulati
I do not see that there will be any issues , as long as you see correct hostnames listed in the following URL:  http://AMBARI_HOST:8080/api/v1/clusters/CLUSTER_NAME/hosts/
  Please replace the "AMBARI_HOST" and "CLUSTER_NAME" in your browser and then check if you are seeing correct hosts with correct hostnames.   For more detail look on the issue it would be good if you can share the exact error/warning message that you are getting while starting agents/server. 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		02-15-2017
	
		
		03:16 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 @rahul gulati
  If you are using "azur" (from your hostname it looks like) then you should be using "Private IP" address inside your /etc/hosts file (if you are using public ip then please change it). Although it might not be related to your query.  
  
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		02-15-2017
	
		
		03:03 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 @rahul gulati  Are you sure that when you are running the following command on those hosts individually then you are getting the correct FQDN?     hostname -f   -
 Ambari agent sends registration request to ambari-server every time 
when agent is restarted. In the registration request it sends the FQDN 
information of it's own as well.   Agent uses the following approach to 
findout the FQDN using python. So please check if all your hosts are 
returning correct hostname      python -c "import socket; print socket.getfqdn()"   .  Also
 in local system it might get using which is not actually FQDN as above.
 So local agent might behave bit differently then remote.     python -c "import socket; print socket.gethostname()"  
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		02-15-2017
	
		
		02:59 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 @rahul gulati  Are you sure that when you are running the following command on those hosts individually then you are getting the correct FQDN?  hostname -f  - Ambari agent sends registration request to ambari-server every time when agent is restarted. In the registration request it sends the FQDN information of it's own as well.   Agent uses the following approach to findout the FQDN using python. So please check if all your hosts are returning correct hostname   python -c "import socket; print socket.getfqdn()"  .  Also in local system it might get using which is not actually FQDN as above. So local agent might behave bit differently then remote.  python -c "import socket; print socket.gethostname()" 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		02-15-2017
	
		
		10:58 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 @rahul gulati   Good to know that it worked well after fixing the hostname.  Ambari (and also HDP) is very much dependent on the FQDN  (hostname -f) so every host must be able to recognize then using the FQDN (instead of IP). Even ambari agent script uses the same approach to get the hostname of it's own.  host_name = socket.gethostname().lower()
host_ip = socket.gethostbyname(host_name)
host_fqdn = socket.getfqdn().lower()
fqdn_ip = socket.gethostbyname(host_fqdn)
return host_ip == fqdn_ip  .   See:   http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_Installing_HDP_AMB/content/_edit_the_host_file.html 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		02-15-2017
	
		
		09:41 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 @rahul gulati  Good to know that your original issue is resolved.  Can you please share more details about your latest error?     1. ambari-server.log snippet  2. Screenshot of the error.  Few things you might want to check is  1. If you are able to do password less ssh to those hosts.  That might not  be needed though.  2. If ambari server is able to recognize all the agents hosts using their "hostname -f"  (FQDN output)  
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		 
         
					
				













