Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Error adding host to existing cluster

Solved Go to solution

Error adding host to existing cluster

New Contributor

Hi,

i've successfully installed a cluster via Cloudera Manager and wanted to add two more hosts to the cluster giving me the exact same error as in https://community.cloudera.com/t5/Cloudera-Manager-Installation/error-install-cloudera-manager-5-1-3... . But in my opinion my /etc/hosts looks fine:

 

127.0.0.1
localhost
z-box-18.bwlpool.tu-freiberg.de
139.20.84.53
z-box-20.bwlpool.tu-freiberg.de
139.20.84.52
z-box-19.bwlpool.tu-freiberg.de
139.20.84.50
z-box-17.bwlpool.tu-freiberg.de
139.20.84.49
z-box-16.bwlpool.tu-freiberg.de
139.20.84.48
z-box-15.bwlpool.tu-freiberg.de
139.20.84.47
z-box-14.bwlpool.tu-freiberg.de
139.20.84.46
z-box-13.bwlpool.tu-freiberg.de

The error stack is:

 Pfad: http://139.20.84.53:7180/cmf/add-hosts-wizard/installprogress

Version: Cloudera Express 5.8.0 (#42 built by jenkins on 20160714-1246 git: d08ac14ff050a108864fab00205c12e0d4043132)
java.lang.IllegalArgumentException:Duplicate keys in mappings 0=com.cloudera.server.cmf.node.NodeConfigurator@6b12ea33 and 1=com.cloudera.server.cmf.node.NodeConfigurator@26cdf130
at ImmutableSortedMap.java line 304
in com.google.common.collect.ImmutableSortedMap validateEntries()
Stapelverfolgung:

    ImmutableSortedMap.java line 304
    in com.google.common.collect.ImmutableSortedMap validateEntries()
    ImmutableSortedMap.java line 281
    in com.google.common.collect.ImmutableSortedMap copyOfInternal()
    ImmutableSortedMap.java line 220
    in com.google.common.collect.ImmutableSortedMap copyOf()
    NodeConfiguratorService.java line 147
    in com.cloudera.server.cmf.node.NodeConfiguratorService$Request getSortedConfigurators()
    InstallStepContentImpl.java line 92
    in com.cloudera.server.web.cmf.wizard.hosts.InstallStepContentImpl renderNoFlush()
    InstallStepContent.java line 136
    in com.cloudera.server.web.cmf.wizard.hosts.InstallStepContent renderNoFlush()
    InstallStepContent.java line 126
    in com.cloudera.server.web.cmf.wizard.hosts.InstallStepContent render()
    InstallStepContent.java line 118
    in com.cloudera.server.web.cmf.wizard.hosts.InstallStepContent$1 renderTo()
    JamonModelAndView.java line 50
    in com.cloudera.server.web.common.JamonModelAndView$JamonView <init>()
    JamonModelAndView.java line 27
    in com.cloudera.server.web.common.JamonModelAndView$JamonView <init>()
    JamonModelAndView.java line 86
    in com.cloudera.server.web.common.JamonModelAndView of()
    AddHostsWizardControllerBase.java line 491
    in com.cloudera.server.web.cmf.AddHostsWizardControllerBase wizardInstallProgress()
    <generated> line -1
    in com.cloudera.server.web.cmf.AddHostsWizardControllerBase$$FastClassByCGLIB$$46379e37 invoke()
    MethodProxy.java line 191
    in net.sf.cglib.proxy.MethodProxy invoke()
    Cglib2AopProxy.java line 688
    in org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation invokeJoinpoint()
    ReflectiveMethodInvocation.java line 150
    in org.springframework.aop.framework.ReflectiveMethodInvocation proceed()
    MethodSecurityInterceptor.java line 61
    in org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor invoke()
    ReflectiveMethodInvocation.java line 172
    in org.springframework.aop.framework.ReflectiveMethodInvocation proceed()
    Cglib2AopProxy.java line 621
    in org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor intercept()
    <generated> line -1
    in com.cloudera.server.web.cmf.AddHostsWizardController$$EnhancerByCGLIB$$667c339d wizardInstallProgress()
    NativeMethodAccessorImpl.java line -2
    in sun.reflect.NativeMethodAccessorImpl invoke0()
    NativeMethodAccessorImpl.java line 57
    in sun.reflect.NativeMethodAccessorImpl invoke()
    DelegatingMethodAccessorImpl.java line 43
    in sun.reflect.DelegatingMethodAccessorImpl invoke()
    Method.java line 606
    in java.lang.reflect.Method invoke()
    HandlerMethodInvoker.java line 176
    in org.springframework.web.bind.annotation.support.HandlerMethodInvoker invokeHandlerMethod()
    AnnotationMethodHandlerAdapter.java line 436
    in org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter invokeHandlerMethod()
    AnnotationMethodHandlerAdapter.java line 424
    in org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter handle()
    DispatcherServlet.java line 790
    in org.springframework.web.servlet.DispatcherServlet doDispatch()
    DispatcherServlet.java line 719
    in org.springframework.web.servlet.DispatcherServlet doService()
    FrameworkServlet.java line 669
    in org.springframework.web.servlet.FrameworkServlet processRequest()
    FrameworkServlet.java line 574
    in org.springframework.web.servlet.FrameworkServlet doGet()
    HttpServlet.java line 575
    in javax.servlet.http.HttpServlet service()
    HttpServlet.java line 668
    in javax.servlet.http.HttpServlet service()
    ServletHolder.java line 511
    in org.mortbay.jetty.servlet.ServletHolder handle()
    ServletHandler.java line 1221
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    UserAgentFilter.java line 78
    in org.mortbay.servlet.UserAgentFilter doFilter()
    GzipFilter.java line 131
    in org.mortbay.servlet.GzipFilter doFilter()
    ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    JAMonServletFilter.java line 48
    in com.jamonapi.http.JAMonServletFilter doFilter()
    ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    JavaMelodyFacade.java line 109
    in com.cloudera.enterprise.JavaMelodyFacade$MonitoringFilter doFilter()
    ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    FilterChainProxy.java line 311
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    FilterSecurityInterceptor.java line 116
    in org.springframework.security.web.access.intercept.FilterSecurityInterceptor invoke()
    FilterSecurityInterceptor.java line 83
    in org.springframework.security.web.access.intercept.FilterSecurityInterceptor doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    ExceptionTranslationFilter.java line 113
    in org.springframework.security.web.access.ExceptionTranslationFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    SessionManagementFilter.java line 101
    in org.springframework.security.web.session.SessionManagementFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    AnonymousAuthenticationFilter.java line 113
    in org.springframework.security.web.authentication.AnonymousAuthenticationFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    RememberMeAuthenticationFilter.java line 146
    in org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    SecurityContextHolderAwareRequestFilter.java line 54
    in org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    RequestCacheAwareFilter.java line 45
    in org.springframework.security.web.savedrequest.RequestCacheAwareFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    AbstractAuthenticationProcessingFilter.java line 182
    in org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    LogoutFilter.java line 105
    in org.springframework.security.web.authentication.logout.LogoutFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    SecurityContextPersistenceFilter.java line 87
    in org.springframework.security.web.context.SecurityContextPersistenceFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    ConcurrentSessionFilter.java line 125
    in org.springframework.security.web.session.ConcurrentSessionFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    FilterChainProxy.java line 173
    in org.springframework.security.web.FilterChainProxy doFilter()
    DelegatingFilterProxy.java line 237
    in org.springframework.web.filter.DelegatingFilterProxy invokeDelegate()
    DelegatingFilterProxy.java line 167
    in org.springframework.web.filter.DelegatingFilterProxy doFilter()
    ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    CharacterEncodingFilter.java line 88
    in org.springframework.web.filter.CharacterEncodingFilter doFilterInternal()
    OncePerRequestFilter.java line 76
    in org.springframework.web.filter.OncePerRequestFilter doFilter()
    ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    ServletHandler.java line 399
    in org.mortbay.jetty.servlet.ServletHandler handle()
    SecurityHandler.java line 216
    in org.mortbay.jetty.security.SecurityHandler handle()
    SessionHandler.java line 182
    in org.mortbay.jetty.servlet.SessionHandler handle()
    SecurityHandler.java line 216
    in org.mortbay.jetty.security.SecurityHandler handle()
    ContextHandler.java line 767
    in org.mortbay.jetty.handler.ContextHandler handle()
    WebAppContext.java line 450
    in org.mortbay.jetty.webapp.WebAppContext handle()
    HandlerWrapper.java line 152
    in org.mortbay.jetty.handler.HandlerWrapper handle()
    StatisticsHandler.java line 53
    in org.mortbay.jetty.handler.StatisticsHandler handle()
    HandlerWrapper.java line 152
    in org.mortbay.jetty.handler.HandlerWrapper handle()
    Server.java line 326
    in org.mortbay.jetty.Server handle()
    HttpConnection.java line 542
    in org.mortbay.jetty.HttpConnection handleRequest()
    HttpConnection.java line 928
    in org.mortbay.jetty.HttpConnection$RequestHandler headerComplete()
    HttpParser.java line 549
    in org.mortbay.jetty.HttpParser parseNext()
    HttpParser.java line 212
    in org.mortbay.jetty.HttpParser parseAvailable()
    HttpConnection.java line 404
    in org.mortbay.jetty.HttpConnection handle()
    SelectChannelEndPoint.java line 410
    in org.mortbay.io.nio.SelectChannelEndPoint run()
    QueuedThreadPool.java line 582
    in org.mortbay.thread.QueuedThreadPool$PoolThread run()

Thank you very much for any help:)

Greetings Nolian

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Error adding host to existing cluster

Expert Contributor

Hi Nolian,

 

I'm wondering about your /etc/hosts, are those IP addresses and hostnames really each on a new line, or is the formatting just broken due to copy/pasting to here?

 

Please run these commands on all nodes to determine the status

# hostname
# hostname -f
# python -c 'import socket; print socket.getfqdn(), socket.gethostbyname(socket.getfqdn())' 
# getent hosts <give the FQDN>

 

7 REPLIES 7

Re: Error adding host to existing cluster

New Contributor

Update:

If I try adding the new hosts one by one I get this error:

 Pfad: http://139.20.84.53:7180/cmf/add-hosts-wizard/join-cluster

Version: Cloudera Express 5.8.0 (#42 built by jenkins on 20160714-1246 git: d08ac14ff050a108864fab00205c12e0d4043132)
org.springframework.web.bind.MissingServletRequestParameterException:Required List parameter 'hostNames[]' is not present
at AnnotationMethodHandlerAdapter.java line 738
in org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodInvoker raiseMissingParameterException()
Stapelverfolgung:

    AnnotationMethodHandlerAdapter.java line 738
    in org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodInvoker raiseMissingParameterException()
    HandlerMethodInvoker.java line 501
    in org.springframework.web.bind.annotation.support.HandlerMethodInvoker resolveRequestParam()
    HandlerMethodInvoker.java line 340
    in org.springframework.web.bind.annotation.support.HandlerMethodInvoker resolveHandlerArguments()
    HandlerMethodInvoker.java line 171
    in org.springframework.web.bind.annotation.support.HandlerMethodInvoker invokeHandlerMethod()
    AnnotationMethodHandlerAdapter.java line 436
    in org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter invokeHandlerMethod()
    AnnotationMethodHandlerAdapter.java line 424
    in org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter handle()
    DispatcherServlet.java line 790
    in org.springframework.web.servlet.DispatcherServlet doDispatch()
    DispatcherServlet.java line 719
    in org.springframework.web.servlet.DispatcherServlet doService()
    FrameworkServlet.java line 669
    in org.springframework.web.servlet.FrameworkServlet processRequest()
    FrameworkServlet.java line 585
    in org.springframework.web.servlet.FrameworkServlet doPost()
    HttpServlet.java line 595
    in javax.servlet.http.HttpServlet service()
    HttpServlet.java line 668
    in javax.servlet.http.HttpServlet service()
    ServletHolder.java line 511
    in org.mortbay.jetty.servlet.ServletHolder handle()
    ServletHandler.java line 1221
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    UserAgentFilter.java line 78
    in org.mortbay.servlet.UserAgentFilter doFilter()
    GzipFilter.java line 131
    in org.mortbay.servlet.GzipFilter doFilter()
    ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    JAMonServletFilter.java line 48
    in com.jamonapi.http.JAMonServletFilter doFilter()
    ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    JavaMelodyFacade.java line 109
    in com.cloudera.enterprise.JavaMelodyFacade$MonitoringFilter doFilter()
    ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    FilterChainProxy.java line 311
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    FilterSecurityInterceptor.java line 116
    in org.springframework.security.web.access.intercept.FilterSecurityInterceptor invoke()
    FilterSecurityInterceptor.java line 83
    in org.springframework.security.web.access.intercept.FilterSecurityInterceptor doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    ExceptionTranslationFilter.java line 113
    in org.springframework.security.web.access.ExceptionTranslationFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    SessionManagementFilter.java line 101
    in org.springframework.security.web.session.SessionManagementFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    AnonymousAuthenticationFilter.java line 113
    in org.springframework.security.web.authentication.AnonymousAuthenticationFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    RememberMeAuthenticationFilter.java line 146
    in org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    SecurityContextHolderAwareRequestFilter.java line 54
    in org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    RequestCacheAwareFilter.java line 45
    in org.springframework.security.web.savedrequest.RequestCacheAwareFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    AbstractAuthenticationProcessingFilter.java line 182
    in org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    LogoutFilter.java line 105
    in org.springframework.security.web.authentication.logout.LogoutFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    SecurityContextPersistenceFilter.java line 87
    in org.springframework.security.web.context.SecurityContextPersistenceFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    ConcurrentSessionFilter.java line 125
    in org.springframework.security.web.session.ConcurrentSessionFilter doFilter()
    FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
    FilterChainProxy.java line 173
    in org.springframework.security.web.FilterChainProxy doFilter()
    DelegatingFilterProxy.java line 237
    in org.springframework.web.filter.DelegatingFilterProxy invokeDelegate()
    DelegatingFilterProxy.java line 167
    in org.springframework.web.filter.DelegatingFilterProxy doFilter()
    ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    CharacterEncodingFilter.java line 88
    in org.springframework.web.filter.CharacterEncodingFilter doFilterInternal()
    OncePerRequestFilter.java line 76
    in org.springframework.web.filter.OncePerRequestFilter doFilter()
    ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
    ServletHandler.java line 399
    in org.mortbay.jetty.servlet.ServletHandler handle()
    SecurityHandler.java line 216
    in org.mortbay.jetty.security.SecurityHandler handle()
    SessionHandler.java line 182
    in org.mortbay.jetty.servlet.SessionHandler handle()
    SecurityHandler.java line 216
    in org.mortbay.jetty.security.SecurityHandler handle()
    ContextHandler.java line 767
    in org.mortbay.jetty.handler.ContextHandler handle()
    WebAppContext.java line 450
    in org.mortbay.jetty.webapp.WebAppContext handle()
    HandlerWrapper.java line 152
    in org.mortbay.jetty.handler.HandlerWrapper handle()
    StatisticsHandler.java line 53
    in org.mortbay.jetty.handler.StatisticsHandler handle()
    HandlerWrapper.java line 152
    in org.mortbay.jetty.handler.HandlerWrapper handle()
    Server.java line 326
    in org.mortbay.jetty.Server handle()
    HttpConnection.java line 542
    in org.mortbay.jetty.HttpConnection handleRequest()
    HttpConnection.java line 945
    in org.mortbay.jetty.HttpConnection$RequestHandler content()
    HttpParser.java line 756
    in org.mortbay.jetty.HttpParser parseNext()
    HttpParser.java line 218
    in org.mortbay.jetty.HttpParser parseAvailable()
    HttpConnection.java line 404
    in org.mortbay.jetty.HttpConnection handle()
    SelectChannelEndPoint.java line 410
    in org.mortbay.io.nio.SelectChannelEndPoint run()
    QueuedThreadPool.java line 582
    in org.mortbay.thread.QueuedThreadPool$PoolThread run()

Re: Error adding host to existing cluster

New Contributor

Update:

I think the problem is, that cloudera doesn't find a FQDN for the specific host. But i am not sure why that happens.

No_FQDN.png

 

 

Re: Error adding host to existing cluster

Expert Contributor

Hi Nolian,

 

I'm wondering about your /etc/hosts, are those IP addresses and hostnames really each on a new line, or is the formatting just broken due to copy/pasting to here?

 

Please run these commands on all nodes to determine the status

# hostname
# hostname -f
# python -c 'import socket; print socket.getfqdn(), socket.gethostbyname(socket.getfqdn())' 
# getent hosts <give the FQDN>

 

Re: Error adding host to existing cluster

New Contributor

Hey,

 

i took the formatting of /etc/hosts from here: http://www.cloudera.com/documentation/enterprise/release-notes/topics/rn_consolidated_pcm.html#cmig_...

 

My results on the master (z-box-20):

root@z-box-20:~# hostname
z-box-20.bwlpool.tu-freiberg.de
root@z-box-20:~# hostname -f
z-box-20.bwlpool.tu-freiberg.de
root@z-box-20:~# python -c 'import socket; print socket.getfqdn(), socket.gethostbyname(socket.getfqdn())'
z-box-20.bwlpool.tu-freiberg.de 139.20.84.53
root@z-box-20:~# getent hosts z-box-13.bwlpool.tu-freiberg.de
139.20.84.46    z-box-13.bwlpool.tu-freiberg.de
root@z-box-20:~# getent hosts z-box-14.bwlpool.tu-freiberg.de
139.20.84.47    z-box-14.bwlpool.tu-freiberg.de
root@z-box-20:~# getent hosts z-box-15.bwlpool.tu-freiberg.de
139.20.84.48    z-box-15.bwlpool.tu-freiberg.de
root@z-box-20:~# getent hosts z-box-16.bwlpool.tu-freiberg.de
139.20.84.49    z-box-16.bwlpool.tu-freiberg.de
root@z-box-20:~# getent hosts z-box-17.bwlpool.tu-freiberg.de
139.20.84.50    z-box-17.bwlpool.tu-freiberg.de
root@z-box-20:~# getent hosts z-box-18.bwlpool.tu-freiberg.de
139.20.84.51    z-box-18.bwlpool.tu-freiberg.de
root@z-box-20:~# getent hosts z-box-19.bwlpool.tu-freiberg.de
139.20.84.52    z-box-19.bwlpool.tu-freiberg.de
root@z-box-20:~# getent hosts z-box-20.bwlpool.tu-freiberg.de
139.20.84.53    z-box-20.bwlpool.tu-freiberg.de

Results from one slave in the existing cluster:

root@z-box-19:~# hostname
z-box-19.bwlpool.tu-freiberg.de
root@z-box-19:~# hostname -f
z-box-19.bwlpool.tu-freiberg.de
root@z-box-19:~# python -c 'import socket; print socket.getfqdn(), socket.gethostbyname(socket.getfqdn())'
z-box-19.bwlpool.tu-freiberg.de 139.20.84.52
root@z-box-19:~# getent hosts z-box-13.bwlpool.tu-freiberg.de
139.20.84.46    z-box-13.bwlpool.tu-freiberg.de
root@z-box-19:~# getent hosts z-box-14.bwlpool.tu-freiberg.de
139.20.84.47    z-box-14.bwlpool.tu-freiberg.de
root@z-box-19:~# getent hosts z-box-15.bwlpool.tu-freiberg.de
139.20.84.48    z-box-15.bwlpool.tu-freiberg.de
root@z-box-19:~# getent hosts z-box-16.bwlpool.tu-freiberg.de
139.20.84.49    z-box-16.bwlpool.tu-freiberg.de
root@z-box-19:~# getent hosts z-box-17.bwlpool.tu-freiberg.de
139.20.84.50    z-box-17.bwlpool.tu-freiberg.de
root@z-box-19:~# getent hosts z-box-18.bwlpool.tu-freiberg.de
139.20.84.51    z-box-18.bwlpool.tu-freiberg.de
root@z-box-19:~# getent hosts z-box-19.bwlpool.tu-freiberg.de
139.20.84.52    z-box-19.bwlpool.tu-freiberg.de
root@z-box-19:~# getent hosts z-box-20.bwlpool.tu-freiberg.de
139.20.84.53    z-box-20.bwlpool.tu-freiberg.de

Results from one of the to add hosts:

root@z-box-13:~# hostname
z-box-13.bwlpool.tu-freiberg.de
root@z-box-13:~# hostname -f
z-box-13.bwlpool.tu-freiberg.de
root@z-box-13:~# python -c 'import socket; print socket.getfqdn(), socket.gethostbyname(socket.getfqdn())'
 0.0.0.0
root@z-box-13:~# getent hosts z-box-13.bwlpool.tu-freiberg.de
139.20.84.46    z-box-13.bwlpool.tu-freiberg.de
root@z-box-13:~# getent hosts z-box-14.bwlpool.tu-freiberg.de
139.20.84.47    z-box-14.bwlpool.tu-freiberg.de
root@z-box-13:~# getent hosts z-box-15.bwlpool.tu-freiberg.de
139.20.84.48    z-box-15.bwlpool.tu-freiberg.de
root@z-box-13:~# getent hosts z-box-16.bwlpool.tu-freiberg.de
139.20.84.49    z-box-16.bwlpool.tu-freiberg.de
root@z-box-13:~# getent hosts z-box-17.bwlpool.tu-freiberg.de
139.20.84.50    z-box-17.bwlpool.tu-freiberg.de
root@z-box-13:~# getent hosts z-box-18.bwlpool.tu-freiberg.de
139.20.84.51    z-box-18.bwlpool.tu-freiberg.de
root@z-box-13:~# getent hosts z-box-19.bwlpool.tu-freiberg.de
139.20.84.52    z-box-19.bwlpool.tu-freiberg.de
root@z-box-13:~# getent hosts z-box-20.bwlpool.tu-freiberg.de
139.20.84.53    z-box-20.bwlpool.tu-freiberg.de

Well...

python -c 'import socket; print socket.getfqdn(), socket.gethostbyname(socket.getfqdn())'
 0.0.0.0

doesn't look good, but I have no clue what to do about it.

 

Re: Error adding host to existing cluster

New Contributor

Hey,

 

I took the formatting of /etc/hosts from here: http://www.cloudera.com/documentation/enterprise/release-notes/topics/rn_consolidated_pcm.html#cmig_...

 

I run the commands and in the end i got a equivalent answer to this one from the master, one slave from the cluster and one to add host:

root@z-box-14:~# hostname
z-box-14.bwlpool.tu-freiberg.de
root@z-box-14:~# hostname -f
z-box-14.bwlpool.tu-freiberg.de
root@z-box-14:~# python -c 'import socket; print socket.getfqdn(), socket.gethostbyname(socket.getfqdn())'
z-box-14.bwlpool.tu-freiberg.de 139.20.84.47
root@z-box-14:~# getent hosts z-box-13.bwlpool.tu-freiberg.de
139.20.84.46    z-box-13.bwlpool.tu-freiberg.de
root@z-box-14:~# getent hosts z-box-14.bwlpool.tu-freiberg.de
139.20.84.47    z-box-14.bwlpool.tu-freiberg.de
root@z-box-14:~# getent hosts z-box-15.bwlpool.tu-freiberg.de
139.20.84.48    z-box-15.bwlpool.tu-freiberg.de
root@z-box-14:~# getent hosts z-box-16.bwlpool.tu-freiberg.de
139.20.84.49    z-box-16.bwlpool.tu-freiberg.de
root@z-box-14:~# getent hosts z-box-17.bwlpool.tu-freiberg.de
139.20.84.50    z-box-17.bwlpool.tu-freiberg.de
root@z-box-14:~# getent hosts z-box-18.bwlpool.tu-freiberg.de
139.20.84.51    z-box-18.bwlpool.tu-freiberg.de
root@z-box-14:~# getent hosts z-box-19.bwlpool.tu-freiberg.de
139.20.84.52    z-box-19.bwlpool.tu-freiberg.de
root@z-box-14:~# getent hosts z-box-20.bwlpool.tu-freiberg.de
139.20.84.53    z-box-20.bwlpool.tu-freiberg.de

Re: Error adding host to existing cluster

New Contributor

The solution really was the formatting of /etc/hosts.

Would be nice, if Cloudera changed that in their guide.

Highlighted

Re: Error adding host to existing cluster

Expert Contributor
Good to hear it works. I'll address the documentation issue internally, should be corrected soon.
Don't have an account?
Coming from Hortonworks? Activate your account here