【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/目录下。
博客地址: http://www.cnblogs.com/defineconst/
博客版权: 本文以学习、研究和分享为主,欢迎转载和各类爬虫,但必须在文章页面明显位置给出原文链接。 如果文中有不妥或者错误的地方还望高手的您指出,以免误人子弟。如果您有更好的建议,不如留言一起讨论,共同进步! 再次感谢您耐心的读完本篇文章。
博客版权: 本文以学习、研究和分享为主,欢迎转载和各类爬虫,但必须在文章页面明显位置给出原文链接。 如果文中有不妥或者错误的地方还望高手的您指出,以免误人子弟。如果您有更好的建议,不如留言一起讨论,共同进步! 再次感谢您耐心的读完本篇文章。