I just recode HDP stack repos(rename to SKY), is it normal: 19 May 2018 09:23:04,468 ERROR [ambari-client-thread-24] ClustersImpl:429 - {redhat-ppc7=[[ repoInfo: , osType=redhat-ppc7, repoId=SKY-3.0, baseUrl=http://public-repo-1.hortonworks.com/HDP/c entos7-ppc/2.x/updates/2.6.0.3, repoName=SKY, distribution=null, components=null, mirrorsList=null, unique=true, ambariManagedRepositories=true, applicableServices= ], [ repoInfo: , osType=r edhat-ppc7, repoId=SKY-UTILS-1.1.0.21, baseUrl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ppc64le, repoName=SKY-UTILS, distribution=null, components=null, mirrorsList=null , unique=false, ambariManagedRepositories=true, applicableServices= ]], suse12=[[ repoInfo: , osType=suse12, repoId=SKY-3.0, baseUrl=http://public-repo-1.hortonworks.com/HDP/sles12/2.x/updat es/2.6.0.3, repoName=SKY, distribution=null, components=null, mirrorsList=null, unique=true, ambariManagedRepositories=true, applicableServices= ], [ repoInfo: , osType=suse12, repoId=SKY-UT ILS-1.1.0.21, baseUrl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/suse11sp3, repoName=SKY-UTILS, distribution=null, components=null, mirrorsList=null, unique=false, ambariM anagedRepositories=true, applicableServices= ]], suse11=[[ repoInfo: , osType=suse11, repoId=SKY-3.0, baseUrl=http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.6.0.3, repoName =SKY, distribution=null, components=null, mirrorsList=null, unique=true, ambariManagedRepositories=true, applicableServices= ], [ repoInfo: , osType=suse11, repoId=SKY-UTILS-1.1.0.21, baseUr l=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/suse11sp3, repoName=SKY-UTILS, distribution=null, components=null, mirrorsList=null, unique=false, ambariManagedRepositories=t rue, applicableServices= ]], ubuntu16=[[ repoInfo: , osType=ubuntu16, repoId=SKY-3.0, baseUrl=http://public-repo-1.hortonworks.com/HDP/ubuntu16/2.x/updates/2.6.0.3, repoName=SKY, distribution=null, components=null, mirrorsList=null, unique=true, ambariManagedRepositories=true, applicableServices= ], [ repoInfo: , osType=ubuntu16, repoId=SKY-UTILS-1.1.0.21, baseUrl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu12, repoName=SKY-UTILS, distribution=null, components=null, mirrorsList=null, unique=false, ambariManagedRepositories=true, applicableServices= ]], redhat7=[[ repoInfo: , osType=redhat7, repoId=SKY-3.0, baseUrl=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3, repoName=SKY, distribution=null, components=null, mirrorsList=null, unique=true, ambariManagedRepositories=true, applicableServices= ], [ repoInfo: , osType=redhat7, repoId=SKY-UTILS-1.1.0.21, baseUrl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7, repoName=SKY-UTILS, distribution=null, components=null, mirrorsList=null, unique=true, ambariManagedRepositories=true, applicableServices= ]], debian7=[[ repoInfo: , osType=debian7, repoId=SKY-3.0, baseUrl=http://public-repo-1.hortonworks.com/HDP/debian7/2.x/updates/2.6.0.3, repoName=SKY, distribution=null, components=null, mirrorsList=null, unique=true, ambariManagedRepositories=true, applicableServices= ], [ repoInfo: , osType=debian7, repoId=SKY-UTILS-1.1.0.21, baseUrl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/debian6, repoName=SKY-UTILS, distribution=null, components=null, mirrorsList=null, unique=false, ambariManagedRepositories=true, applicableServices= ]], redhat6=[[ repoInfo: , osType=redhat6, repoId=SKY-3.0, baseUrl=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.6.0.3, repoName=SKY, distribution=null, components=null, mirrorsList=null, unique=true, ambariManagedRepositories=true, applicableServices= ], [ repoInfo: , osType=redhat6, repoId=SKY-UTILS-1.1.0.21, baseUrl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos6, repoName=SKY-UTILS, distribution=null, components=null, mirrorsList=null, unique=false, ambariManagedRepositories=true, applicableServices= ]], ubuntu14=[[ repoInfo: , osType=ubuntu14, repoId=SKY-3.0, baseUrl=http://public-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.6.0.3, repoName=SKY, distribution=null, components=null, mirrorsList=null, unique=true, ambariManagedRepositories=true, applicableServices= ], [ repoInfo: , osType=ubuntu14, repoId=SKY-UTILS-1.1.0.21, baseUrl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu12, repoName=SKY-UTILS, distribution=null, components=null, mirrorsList=null, unique=false, ambariManagedRepositories=true, applicableServices= ]], ubuntu12=[[ repoInfo: , osType=ubuntu12, repoId=SKY-3.0, baseUrl=http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.x/updates/2.6.0.3, repoName=SKY, distribution=null, components=null, mirrorsList=null, unique=true, ambariManagedRepositories=true, applicableServices= ], [ repoInfo: , osType=ubuntu12, repoId=SKY-UTILS-1.1.0.21, baseUrl=http://public-repo-1.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" <xiang....@sky-data.cn> To: "user" <user@ambari.apache.org> 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" <quirogadf4w...@gmail.com> To: "user" <user@ambari.apache.org> 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: <reposinfo> <os family="redhat7"> <repo> <baseurl> http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3 </baseurl> <repoid>SKY-3.0</repoid> <reponame>SKY</reponame> <unique>true</unique> </repo> <repo> <baseurl> http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7 </baseurl> <repoid>SKY-UTILS-1.1.0.21</repoid> <reponame>SKY-UTILS</reponame> <unique>false</unique> </repo> </os> </reposinfo> 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(<generated>) at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$46398843$$FastClassByGuice$$bbfdd590.invoke(<generated>) 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(<generated>) 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 are Centos7, why behave differently? Thanks -- 戴翔 南京天数信息科技有限公司 电话: +86 1 3382776490 公司官网: www.sky-data.cn 免费使用天数润科智能计算平台 SkyDiscovery -- 戴翔 南京天数信息科技有限公司 电话: +86 1 3382776490 公司官网: www.sky-data.cn 免费使用天数润科智能计算平台 SkyDiscovery BQ_END -- 戴翔 南京天数信息科技有限公司 电话: +86 1 3382776490 公司官网: www.sky-data.cn 免费使用天数润科智能计算平台 SkyDiscovery -- 戴翔 南京天数信息科技有限公司 电话: +86 1 3382776490 公司官网: www.sky-data.cn 免费使用天数润科智能计算平台 SkyDiscovery