*"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(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(<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 <callto:+86%2015062274256>3382776490
> 公司官网: www.sky-data.cn
> 免费使用天数润科智能计算平台 SkyDiscovery
>

Reply via email to