2017-05-22 49 views
0

我正在安裝Drill with HDP 2.6,並且在安裝過程中,屏幕停留在選擇從屬代理的一個屏幕上。DRILL作爲HDP 2.6的自定義服務:java.lang.ClassCastException

在日誌文件中:

java.lang.ClassCastException: java.util.LinkedHashSet cannot be cast to java.util.List 
    at org.apache.ambari.server.controller.internal.StackAdvisorResourceProvider.prepareStackAdvisorRequest(StackAdvisorResourceProvider.java:110) 
    at org.apache.ambari.server.controller.internal.ValidationResourceProvider.createResources(ValidationResourceProvider.java:81) 
    at org.apache.ambari.server.controller.internal.ClusterControllerImpl.createResources(ClusterControllerImpl.java:298) 
    at org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.create(PersistenceManagerImpl.java:97) 
    at org.apache.ambari.server.api.handlers.CreateHandler.persist(CreateHandler.java:37) 
    at org.apache.ambari.server.api.handlers.BaseManagementHandler.handleRequest(BaseManagementHandler.java:73) 
    at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:144) 
    at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:126) 
    at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:90) 

早些時候,我已成功與HDP 2.5和鑽定製服務測試腳本已經從https://github.com/dvergari/ambari-drill-service下載。

請幫我解決這個問題。 HDP:2.6 Ambari:2.5

回答

1

曾與此混帳回購同樣的問題...更改metainfo.xml如下...

`

<?xml version="1.0"?> 
<metainfo> 
    <schemaVersion>2.0</schemaVersion> 
    <services> 
     <service> 
      <name>DRILL</name> 
      <displayName>Drill</displayName> 
      <comment>Schema-free SQL Query Engine</comment> 
      <version>1.10.0</version> 
      <components> 
       <component> 
        <name>DRILL_MASTER</name> 
        <displayName>Drill Master</displayName> 
        <category>MASTER</category> 
        <cardinality>1+</cardinality> 
        <commandScript> 
         <script>scripts/drill.py</script> 
         <scriptType>PYTHON</scriptType> 
         <timeout>10000</timeout> 
        </commandScript> 
        <configFiles> 
         <configFile> 
         <type>xml</type> 
         <fileName>drill-env.xml</fileName> 
         <dictionaryName>drill-env</dictionaryName> 
         </configFile> 
         <configFile> 
         <type>xml</type> 
         <fileName>drill-override.xml</fileName> 
         <dictionaryName>drill-override</dictionaryName> 
         </configFile> 
         <configFile> 
         <type>xml</type> 
         <fileName>drill-ambari-config.xml</fileName> 
         <dictionaryName>drill-ambari-config</dictionaryName> 
         </configFile>   
        </configFiles> 
       </component>     
      </components> 
      <configuration-dependencies> 
      <config-type>drill-env</config-type> 
      <config-type>drill-override</config-type> 
      <config-type>drill-ambari-config</config-type> 
      </configuration-dependencies>   
     </service> 
    </services> 
</metainfo> 

`

+0

非常感謝,它解決了我的問題。 –