【Hadoop】CDH、Presto配置問題


1、hive.properties配置如下

 

connector.name=hive-hadoop2
hive.metastore.uri=thrift://node001.XXXX.com:9083
hive.config.resources=/etc/hadoop/conf/core-site.xml,/etc/haoop/conf/hdfs-site.xml

 

 

 

2、hive.properties中connector.name必須是hive-hadoop2 ,否則啟動presto會自動退出

 

java.lang.IllegalArgumentException: No factory for connector hive-hadoop2 

        at com.google.common.base.Preconditions.checkArgument(Preconditions.java:210)
        at com.facebook.presto.connector.ConnectorManager.createConnection(ConnectorManager.java:172)
        at com.facebook.presto.metadata.StaticCatalogStore.loadCatalog(StaticCatalogStore.java:96)
        at com.facebook.presto.metadata.StaticCatalogStore.loadCatalogs(StaticCatalogStore.java:74)
        at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:119)
        at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:67)

  

 3、hive.properties配置core-site.xml和hdfs-site.xml文件,否則會報nameservices1錯誤

core-site.xml和hdfs-site.xml在CDH配置后的路徑是:/etc/hadoop/conf/目錄下。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM