Operating System matching redhat7 could not be found
Hi! I met a confused issue: when i use vagrant to test, all work. when i change to my hosts, below waring show: org.apache.ambari.server.controller.spi.SystemException: Operating System matching redhat7 could not be found And UI hang. The question is that both VM and hosts are Centos7, why behave differently? Thanks
Re: Operating System matching redhat7 could not be found
Add some clue: 17 May 2018 16:17:33,861 ERROR [ambari-client-thread-233] Request:147 - Unable to compile query predicate: Unexpected token encountered in query string. Last Token Type=PROPERTY_OPERAND, Cur rent Token[type=LOGICAL_OPERATOR, value='&'] org.apache.ambari.server.api.predicate.InvalidQueryException: Unexpected token encountered in query string. Last Token Type=PROPERTY_OPERAND, Current Token[type=LOGICAL_OPERATOR, value='&'] at org.apache.ambari.server.api.predicate.QueryParser$TokenHandler.handleToken(QueryParser.java:351) From: "xiang dai" To: "user" Sent: Thursday, May 17, 2018 10:27:23 AM Subject: Operating System matching redhat7 could not be found Hi! I met a confused issue: when i use vagrant to test, all work. when i change to my hosts, below waring show: org.apache.ambari.server.controller.spi.SystemException: Operating System matching redhat7 could not be found And UI hang. The question is that both VM and hosts are Centos7, why behave differently? Thanks
Re: Operating System matching redhat7 could not be found
True error maybe as below: 17 May 2018 20:33:46,103 ERROR [ambari-client-thread-78] AbstractResourceProvider:343 - Caught AmbariException when modifying a resource org.apache.ambari.server.AmbariException: At least one set of repositories for OS should be provided at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider.validateRepositoryVersion(RepositoryVersionResourceProvider.java:490) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider.validateRepositoryVersion(RepositoryVersionResourceProvider.java:439) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$2.invoke(RepositoryVersionResourceProvider.java:356) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$2.invoke(RepositoryVersionResourceProvider.java:316) at org.apache.ambari.server.controller.internal.AbstractResourceProvider.invokeWithRetry(AbstractResourceProvider.java:455) at org.apache.ambari.server.controller.internal.AbstractResourceProvider.modifyResources(AbstractResourceProvider.java:336) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider.updateResourcesAuthorized(RepositoryVersionResourceProvider.java:316) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843.CGLIB$updateResourcesAuthorized$2() at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843$$FastClassByGuice$$bbfdd590.invoke() at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:128) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843.updateResourcesAuthorized() at org.apache.ambari.server.controller.internal.AbstractAuthorizedResourceProvider.updateResources(AbstractAuthorizedResourceProvider.java:301) at org.apache.ambari.server.controller.internal.ClusterControllerImpl.updateResources(ClusterControllerImpl.java:319) at org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.update(PersistenceManagerImpl.java:125) at org.apache.ambari.server.api.handlers.UpdateHandler.persist(UpdateHandler.java:45) From: "xiang dai" To: "user" Sent: Thursday, May 17, 2018 4:29:14 PM Subject: Re: Operating System matching redhat7 could not be found Add some clue: 17 May 2018 16:17:33,861 ERROR [ambari-client-thread-233] Request:147 - Unable to compile query predicate: Unexpected token encountered in query string. Last Token Type=PROPERTY_OPERAND, Cur rent Token[type=LOGICAL_OPERATOR, value='&'] org.apache.ambari.server.api.predicate.InvalidQueryException: Unexpected token encountered in query string. Last Token Type=PROPERTY_OPERAND, Current Token[type=LOGICAL_OPERATOR, value='&'] at org.apache.ambari.server.api.predicate.QueryParser$TokenHandler.handleToken(QueryParser.java:351) From: "xiang dai" To: "user" Sent: Thursday, May 17, 2018 10:27:23 AM Subject: Operating System matching redhat7 could not be found Hi! I met a confused issue: when i use vagrant to test, all work. when i change to my hosts, below waring show: org.apache.ambari.server.controller.spi.SystemException: Operating System matching redhat7 could not be found And UI hang. The question is that both VM and hosts are Centos7, why behave differently? Thanks -- 戴翔 南京天数信息科技有限公司 电话: +86 1 3382776490 公司官网: www.sky-data.cn 免费使用天数润科智能计算平台 SkyDiscovery
Re: Operating System matching redhat7 could not be found
*"At least one set of repositories for OS should be provided"* I would take a look in Ambari under Admin > Stacks and Versions > Versions Tab For the current version "Show Details", click Edit button this should list the OS and repositories. Are those valid from the host you are now running on? On Thu, May 17, 2018 at 7:38 AM, wrote: > True error maybe as below: > > 17 May 2018 20:33:46,103 ERROR [ambari-client-thread-78] > AbstractResourceProvider:343 - Caught AmbariException when modifying a > resource > org.apache.ambari.server.AmbariException: At least one set of > repositories for OS should be provided > at org.apache.ambari.server.controller.internal. > RepositoryVersionResourceProvider.validateRepositoryVersion( > RepositoryVersionResourceProvider.java:490) > at org.apache.ambari.server.controller.internal. > RepositoryVersionResourceProvider.validateRepositoryVersion( > RepositoryVersionResourceProvider.java:439) > at org.apache.ambari.server.controller.internal. > RepositoryVersionResourceProvider$2.invoke(RepositoryVersionResourceProvi > der.java:356) > at org.apache.ambari.server.controller.internal. > RepositoryVersionResourceProvider$2.invoke(RepositoryVersionResourceProvi > der.java:316) > at org.apache.ambari.server.controller.internal. > AbstractResourceProvider.invokeWithRetry(AbstractResourceProvider.java: > 455) > at org.apache.ambari.server.controller.internal. > AbstractResourceProvider.modifyResources(AbstractResourceProvider.java: > 336) > at org.apache.ambari.server.controller.internal. > RepositoryVersionResourceProvider.updateResourcesAuthorized( > RepositoryVersionResourceProvider.java:316) > at org.apache.ambari.server.controller.internal. > RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843.CGLIB$ > updateResourcesAuthorized$2() > at org.apache.ambari.server.controller.internal. > RepositoryVersionResourceProvider$$EnhancerByGuice$$ > 46398843$$FastClassByGuice$$bbfdd590.invoke() > at com.google.inject.internal.cglib.proxy.$MethodProxy. > invokeSuper(MethodProxy.java:228) > at com.google.inject.internal.InterceptorStackCallback$ > InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) > at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor. > invoke(AmbariJpaLocalTxnInterceptor.java:128) > at com.google.inject.internal.InterceptorStackCallback$ > InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) > at com.google.inject.internal.InterceptorStackCallback.intercept( > InterceptorStackCallback.java:52) > at org.apache.ambari.server.controller.internal. > RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843. > updateResourcesAuthorized() > at org.apache.ambari.server.controller.internal. > AbstractAuthorizedResourceProvider.updateResources( > AbstractAuthorizedResourceProvider.java:301) > at org.apache.ambari.server.controller.internal. > ClusterControllerImpl.updateResources(ClusterControllerImpl.java:319) > at org.apache.ambari.server.api.services.persistence. > PersistenceManagerImpl.update(PersistenceManagerImpl.java:125) > at org.apache.ambari.server.api.handlers.UpdateHandler. > persist(UpdateHandler.java:45) > > -- > *From: *"xiang dai" > *To: *"user" > *Sent: *Thursday, May 17, 2018 4:29:14 PM > *Subject: *Re: Operating System matching redhat7 could not be found > > Add some clue: > > 17 May 2018 16:17:33,861 ERROR [ambari-client-thread-233] Request:147 - > Unable to compile query predicate: Unexpected token encountered in query > string. Last Token Type=PROPERTY_OPERAND, Cur > rent Token[type=LOGICAL_OPERATOR, value='&'] > org.apache.ambari.server.api.predicate.InvalidQueryException: Unexpected > token encountered in query string. Last Token Type=PROPERTY_OPERAND, > Current Token[type=LOGICAL_OPERATOR, value='&'] > at org.apache.ambari.server.api.predicate.QueryParser$ > TokenHandler.handleToken(QueryParser.java:351) > > -- > *From: *"xiang dai" > *To: *"user" > *Sent: *Thursday, May 17, 2018 10:27:23 AM > *Subject: *Operating System matching redhat7 could not be found > > Hi! > > I met a confused issue: > when i use vagrant to test, all work. > when i change to my hosts, below waring show: > org.apache.ambari.server.controller.spi.SystemException: Operating System > matching redhat7 could not be found > > And UI hang. > > The question is that both VM and hosts are Centos7, why behave differently? > > Thanks > > > -- > 戴翔 > 南京天数信息科技有限公司 > 电话: +86 1 3382776490 > 公司官网: www.sky-data.cn > 免费使用天数润科智能计算平台 SkyDiscovery >
Re: Operating System matching redhat7 could not be found
I define a stack called SKY, and my repo.xml is as below: http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3 SKY-3.0 SKY true http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7 SKY-UTILS-1.1.0.21 SKY-UTILS false I use centos7 to test, i really do not know how to fix it. Could someone help me? Thanks From: "David Quiroga" To: "user" Sent: Friday, May 18, 2018 1:29:13 AM Subject: Re: Operating System matching redhat7 could not be found "At least one set of repositories for OS should be provided" I would take a look in Ambari under Admin > Stacks and Versions > Versions Tab For the current version "Show Details", click Edit button this should list the OS and repositories. Are those valid from the host you are now running on? On Thu, May 17, 2018 at 7:38 AM, < xiang@sky-data.cn > wrote: True error maybe as below: 17 May 2018 20:33:46,103 ERROR [ambari-client-thread-78] AbstractResourceProvider:343 - Caught AmbariException when modifying a resource org.apache.ambari.server.AmbariException: At least one set of repositories for OS should be provided at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider.validateRepositoryVersion(RepositoryVersionResourceProvider.java:490) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider.validateRepositoryVersion(RepositoryVersionResourceProvider.java:439) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$2.invoke(RepositoryVersionResourceProvider.java:356) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$2.invoke(RepositoryVersionResourceProvider.java:316) at org.apache.ambari.server.controller.internal.AbstractResourceProvider.invokeWithRetry(AbstractResourceProvider.java:455) at org.apache.ambari.server.controller.internal.AbstractResourceProvider.modifyResources(AbstractResourceProvider.java:336) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider.updateResourcesAuthorized(RepositoryVersionResourceProvider.java:316) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843.CGLIB$updateResourcesAuthorized$2() at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843$$FastClassByGuice$$bbfdd590.invoke() at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:128) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843.updateResourcesAuthorized() at org.apache.ambari.server.controller.internal.AbstractAuthorizedResourceProvider.updateResources(AbstractAuthorizedResourceProvider.java:301) at org.apache.ambari.server.controller.internal.ClusterControllerImpl.updateResources(ClusterControllerImpl.java:319) at org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.update(PersistenceManagerImpl.java:125) at org.apache.ambari.server.api.handlers.UpdateHandler.persist(UpdateHandler.java:45) From: "xiang dai" < xiang@sky-data.cn > To: "user" < user@ambari.apache.org > Sent: Thursday, May 17, 2018 4:29:14 PM Subject: Re: Operating System matching redhat7 could not be found Add some clue: 17 May 2018 16:17:33,861 ERROR [ambari-client-thread-233] Request:147 - Unable to compile query predicate: Unexpected token encountered in query string. Last Token Type=PROPERTY_OPERAND, Cur rent Token[type=LOGICAL_OPERATOR, value='&'] org.apache.ambari.server.api.predicate.InvalidQueryException: Unexpected token encountered in query string. Last Token Type=PROPERTY_OPERAND, Current Token[type=LOGICAL_OPERATOR, value='&'] at org.apache.ambari.server.api.predicate.QueryParser$TokenHandler.handleToken(QueryParser.java:351) From: "xiang dai" < xiang....@sky-data.cn > To: "user" < user@ambari.apache.org > Sent: Thursday, May 17, 2018 10:27:23 AM Subject: Operating System matching redhat7 could not be found Hi! I met a confused issue: when i use vagrant to test, all work. when i change to my hosts, below waring show: org.apache.ambari.server.controller.spi.SystemException: Operating System matching redhat7 could not be found And UI hang. The question is that both VM and hosts
Re: Operating System matching redhat7 could not be found
What is the output of cat /etc/*release on the hosts. I know the code has to map values to the 'redhat7' On Fri, May 18, 2018 at 7:08 AM, wrote: > I define a stack called SKY, and my repo.xml is as below: > > > > > http://public-repo-1.hortonworks.com/HDP/centos7/2. > x/updates/2.6.0.3 > SKY-3.0 > SKY > true > > > http://public-repo-1.hortonworks.com/HDP-UTILS-1.1. > 0.21/repos/centos7 > SKY-UTILS-1.1.0.21 > SKY-UTILS > false > > > > > I use centos7 to test, i really do not know how to fix it. > > Could someone help me? > > Thanks > > -- > *From: *"David Quiroga" > *To: *"user" > *Sent: *Friday, May 18, 2018 1:29:13 AM > > *Subject: *Re: Operating System matching redhat7 could not be found > > *"At least one set of repositories for OS should be provided"* > > I would take a look in Ambari under Admin > Stacks and Versions > Versions > Tab > For the current version "Show Details", click Edit button this should list > the OS and repositories. > > Are those valid from the host you are now running on? > > On Thu, May 17, 2018 at 7:38 AM, wrote: > >> True error maybe as below: >> >> 17 May 2018 20:33:46,103 ERROR [ambari-client-thread-78] >> AbstractResourceProvider:343 - Caught AmbariException when modifying a >> resource >> org.apache.ambari.server.AmbariException: At least one set of >> repositories for OS should be provided >> at org.apache.ambari.server.controller.internal. >> RepositoryVersionResourceProvider.validateRepositoryVersion( >> RepositoryVersionResourceProvider.java:490) >> at org.apache.ambari.server.controller.internal. >> RepositoryVersionResourceProvider.validateRepositoryVersion( >> RepositoryVersionResourceProvider.java:439) >> at org.apache.ambari.server.controller.internal. >> RepositoryVersionResourceProvider$2.invoke(RepositoryVersionResourceProvi >> der.java:356) >> at org.apache.ambari.server.controller.internal. >> RepositoryVersionResourceProvider$2.invoke(RepositoryVersionResourceProvi >> der.java:316) >> at org.apache.ambari.server.controller.internal. >> AbstractResourceProvider.invokeWithRetry(AbstractResourceProvider.java: >> 455) >> at org.apache.ambari.server.controller.internal. >> AbstractResourceProvider.modifyResources(AbstractResourceProvider.java: >> 336) >> at org.apache.ambari.server.controller.internal. >> RepositoryVersionResourceProvider.updateResourcesAuthorized( >> RepositoryVersionResourceProvider.java:316) >> at org.apache.ambari.server.controller.internal. >> RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843.CGLIB$ >> updateResourcesAuthorized$2() >> at org.apache.ambari.server.controller.internal. >> RepositoryVersionResourceProvider$$EnhancerByGuice$$ >> 46398843$$FastClassByGuice$$bbfdd590.invoke() >> at com.google.inject.internal.cglib.proxy.$MethodProxy. >> invokeSuper(MethodProxy.java:228) >> at com.google.inject.internal.InterceptorStackCallback$ >> InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) >> at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor. >> invoke(AmbariJpaLocalTxnInterceptor.java:128) >> at com.google.inject.internal.InterceptorStackCallback$ >> InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) >> at com.google.inject.internal.InterceptorStackCallback.intercept( >> InterceptorStackCallback.java:52) >> at org.apache.ambari.server.controller.internal. >> RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843. >> updateResourcesAuthorized() >> at org.apache.ambari.server.controller.internal. >> AbstractAuthorizedResourceProvider.updateResources( >> AbstractAuthorizedResourceProvider.java:301) >> at org.apache.ambari.server.controller.internal. >> ClusterControllerImpl.updateResources(ClusterControllerImpl.java:319) >> at org.apache.ambari.server.api.services.persistence. >> PersistenceManagerImpl.update(PersistenceManagerImpl.java:125) >> at org.apache.ambari.server.api.handlers.UpdateHandler. >> persist(UpdateHandler.java:45) >> >> -- >> *From: *"xiang dai" >> *To: *"user" >> *Sent: *Thursday, May 17, 2018 4:29:14 PM >> *Subject: *Re: Operating System matching redhat7 could not be found &g
Re: Operating System matching redhat7 could not be found
I use centos7.4: $ cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) From: "David Quiroga" To: "user" Sent: Saturday, May 19, 2018 4:08:37 AM Subject: Re: Operating System matching redhat7 could not be found What is the output of cat /etc/*release on the hosts. I know the code has to map values to the 'redhat7' On Fri, May 18, 2018 at 7:08 AM, < xiang@sky-data.cn > wrote: I define a stack called SKY, and my repo.xml is as below: http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3 SKY-3.0 SKY true http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7 SKY-UTILS-1.1.0.21 SKY-UTILS false I use centos7 to test, i really do not know how to fix it. Could someone help me? Thanks From: "David Quiroga" < quirogadf4w...@gmail.com > To: "user" < user@ambari.apache.org > Sent: Friday, May 18, 2018 1:29:13 AM Subject: Re: Operating System matching redhat7 could not be found "At least one set of repositories for OS should be provided" I would take a look in Ambari under Admin > Stacks and Versions > Versions Tab For the current version "Show Details", click Edit button this should list the OS and repositories. Are those valid from the host you are now running on? On Thu, May 17, 2018 at 7:38 AM, < xiang@sky-data.cn > wrote: BQ_BEGIN True error maybe as below: 17 May 2018 20:33:46,103 ERROR [ambari-client-thread-78] AbstractResourceProvider:343 - Caught AmbariException when modifying a resource org.apache.ambari.server.AmbariException: At least one set of repositories for OS should be provided at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider.validateRepositoryVersion(RepositoryVersionResourceProvider.java:490) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider.validateRepositoryVersion(RepositoryVersionResourceProvider.java:439) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$2.invoke(RepositoryVersionResourceProvider.java:356) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$2.invoke(RepositoryVersionResourceProvider.java:316) at org.apache.ambari.server.controller.internal.AbstractResourceProvider.invokeWithRetry(AbstractResourceProvider.java:455) at org.apache.ambari.server.controller.internal.AbstractResourceProvider.modifyResources(AbstractResourceProvider.java:336) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider.updateResourcesAuthorized(RepositoryVersionResourceProvider.java:316) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843.CGLIB$updateResourcesAuthorized$2() at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843$$FastClassByGuice$$bbfdd590.invoke() at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:128) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843.updateResourcesAuthorized() at org.apache.ambari.server.controller.internal.AbstractAuthorizedResourceProvider.updateResources(AbstractAuthorizedResourceProvider.java:301) at org.apache.ambari.server.controller.internal.ClusterControllerImpl.updateResources(ClusterControllerImpl.java:319) at org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.update(PersistenceManagerImpl.java:125) at org.apache.ambari.server.api.handlers.UpdateHandler.persist(UpdateHandler.java:45) From: "xiang dai" < xiang@sky-data.cn > To: "user" < user@ambari.apache.org > Sent: Thursday, May 17, 2018 4:29:14 PM Subject: Re: Operating System matching redhat7 could not be found Add some clue: 17 May 2018 16:17:33,861 ERROR [ambari-client-thread-233] Request:147 - Unable to compile query predicate: Unexpected token encountered in query string. Last Token Type=PROPERTY_OPERAND, Cur rent Token[type=LOGICAL_OPERATOR, value='&'] org.apache.ambari.server.api.predicate.InvalidQueryException: Unexpected token encountered in query string. Last Token Type=PROPERTY_OPERAND, Current Token[type=LOGICAL_OPERATOR, value='&'] at org.apache.ambari.server.api.predicate.QueryParser$TokenHandler.handleToken
Re: Operating System matching redhat7 could not be found
.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu12, repoName=SKY-UTILS, distribution=null, components=null, mirrorsList=null, unique=false, ambariManagedRepositories=true, applicableServices= ]]} From: "xiang dai" To: "user" Sent: Saturday, May 19, 2018 9:30:32 AM Subject: Re: Operating System matching redhat7 could not be found I use centos7.4: $ cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) From: "David Quiroga" To: "user" Sent: Saturday, May 19, 2018 4:08:37 AM Subject: Re: Operating System matching redhat7 could not be found What is the output of cat /etc/*release on the hosts. I know the code has to map values to the 'redhat7' On Fri, May 18, 2018 at 7:08 AM, < xiang@sky-data.cn > wrote: I define a stack called SKY, and my repo.xml is as below: http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3 SKY-3.0 SKY true http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7 SKY-UTILS-1.1.0.21 SKY-UTILS false I use centos7 to test, i really do not know how to fix it. Could someone help me? Thanks From: "David Quiroga" < quirogadf4w...@gmail.com > To: "user" < user@ambari.apache.org > Sent: Friday, May 18, 2018 1:29:13 AM Subject: Re: Operating System matching redhat7 could not be found "At least one set of repositories for OS should be provided" I would take a look in Ambari under Admin > Stacks and Versions > Versions Tab For the current version "Show Details", click Edit button this should list the OS and repositories. Are those valid from the host you are now running on? On Thu, May 17, 2018 at 7:38 AM, < xiang@sky-data.cn > wrote: BQ_BEGIN True error maybe as below: 17 May 2018 20:33:46,103 ERROR [ambari-client-thread-78] AbstractResourceProvider:343 - Caught AmbariException when modifying a resource org.apache.ambari.server.AmbariException: At least one set of repositories for OS should be provided at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider.validateRepositoryVersion(RepositoryVersionResourceProvider.java:490) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider.validateRepositoryVersion(RepositoryVersionResourceProvider.java:439) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$2.invoke(RepositoryVersionResourceProvider.java:356) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$2.invoke(RepositoryVersionResourceProvider.java:316) at org.apache.ambari.server.controller.internal.AbstractResourceProvider.invokeWithRetry(AbstractResourceProvider.java:455) at org.apache.ambari.server.controller.internal.AbstractResourceProvider.modifyResources(AbstractResourceProvider.java:336) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider.updateResourcesAuthorized(RepositoryVersionResourceProvider.java:316) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843.CGLIB$updateResourcesAuthorized$2() at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843$$FastClassByGuice$$bbfdd590.invoke() at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:128) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843.updateResourcesAuthorized() at org.apache.ambari.server.controller.internal.AbstractAuthorizedResourceProvider.updateResources(AbstractAuthorizedResourceProvider.java:301) at org.apache.ambari.server.controller.internal.ClusterControllerImpl.updateResources(ClusterControllerImpl.java:319) at org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.update(PersistenceManagerImpl.java:125) at org.apache.ambari.server.api.handlers.UpdateHandler.persist(UpdateHandler.java:45) From: "xiang dai" < xiang@sky-data.cn > To: "user" < user@ambari.apache.org > Sent: Thursday, May 17, 2018 4:29:14 PM Subject: Re: Operating System matching redhat7 could not be found Add some clue: 17 May 2018 16:17:33,861 ERROR [ambari-client-thread-233] Request:147 - Unable to compile query predicate: Unexpected token encountered in query string. Last Token Type=PROPERTY_OP
Re: Operating System matching redhat7 could not be found
So you are still seeing an error? Was there more to the past error message? We always remove the OS repositories we are not using from the listing. What action were you attempting when the original problem occurred?