DRILL作为HDP 2.6的自定义服务:java.lang.ClassCastException

时间:2017-05-22 07:01:43

标签: hadoop2 ambari apache-drill

我正在使用HDP 2.6安装Drill,在进行安装时,屏幕在选择奴隶代理时卡在一个屏幕上。

在日志文件中:

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 个答案:

答案 0 :(得分:1)

这个git repo有同样的问题...更改 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>

`