presto与hive的集成不起作用

mitkmikd  于 2021-05-27  发布在  Hadoop
关注(0)|答案(1)|浏览(578)

我安装了hadoop 3.2.1,在hadoop的顶部安装了hive 3.1.2在单节点centos7上,我想与presto搜索引擎集成,这样我就可以在presto-server-0.229中看到hive的数据库了。hive工作得很好,能够创建表,我已经在官方的帮助下完成了presto-server-0.229的安装和配置文件。但我无法从presto访问数据库。

Here are my all configuration details:

  Hive-site.xml:
  <property>
          <name>javax.jdo.option.ConnectionURL</name>
          <value>jdbc:mysql://10.0.0.96/metastore_db?createDatabaseIfNotExist=true</value>
          <description>metadata is stored in a MySQL server</description>
          </property>

          <property>
          <name>javax.jdo.option.ConnectionDriverName</name>
          <value>com.mysql.jdbc.Driver</value>
          <description>MySQL JDBC driver class</description>
          </property>

          <property>
          <name>javax.jdo.option.ConnectionUserName</name>
          <value>hiveuser</value>
          <description>user name for connecting to mysql server </description>
          </property>

          <property>
          <name>javax.jdo.option.ConnectionPassword</name>
          <value>hivepassword</value>
          <description>password for connecting to mysql server </description>
          </property>

          <property>
          <name>hive.metastore.uris</name>
          <value>thrift://10.0.0.96:9083</value>
          <description>Hive metastore Thrift server</description>
          </property>
  Presto Directories and files details:
  drwxrwxrwx  3 root root     98 Nov 21 05:58 bin
  drwxr-xr-x  3 root root     87 Nov 22 10:55 etc
  drwxrwxrwx  2 root root   8192 Nov 21 05:30 lib
  -rwxrwxrwx  1 root root 191539 Nov 15 05:57 NOTICE
  drwxrwxrwx 31 root root   4096 Nov 21 05:30 plugin
  -rwxrwxrwx  1 root root    126 Nov 15 05:57 README.txt
  [root@master presto-server-0.229]# cd etc/
  [root@master etc]# ll
  total 12
  drwxr-xr-x 2 root root  51 Nov 23 20:38 catalog
  -rwxrwxrwx 1 root root 240 Nov 22 10:55 config.properties
  -rwxrwxrwx 1 root root 171 Nov 21 05:33 jvm.config
  -rwxrwxrwx 1 root root 104 Nov 21 05:31 node.properties
  [root@master etc]# cd catalog
  [root@master catalog]# ll
  total 8
  -rwxrwxrwx 1 root root 173 Nov 23 20:38 hive.properties
  -rw-r--r-- 1 root root  19 Nov 21 06:01 jmx.properties
  [root@master catalog]# cd ..
  [root@master etc]# cd ..
  [root@master presto-server-0.229]# cd bin/
  [root@master bin]# ll
  total 14708
  -rwxrwxrwx 1 root root     1450 Oct  9 21:28 launcher
  -rwxrwxrwx 1 root root       78 Nov 15 06:12 launcher.properties
  -rwxrwxrwx 1 root root    14173 Oct  9 21:28 launcher.py
  -rwxr-xr-x 1 root root 15033453 Dec 15  2018 presto
  drwxrwxrwx 4 root root       47 Nov 15 06:12 procname

  -rwxrwxrwx 1 root root 173 Nov 23 20:38 hive.properties
  -rw-r--r-- 1 root root  19 Nov 21 06:01 jmx.properties

  hive.properties file configuration:

  [root@master catalog]# cat hive.properties
  connector.name=hive-hadoop3
  hive.metastore.uri=thrift://10.0.0.96:9083

  Please help me
cidc1ykv

cidc1ykv1#

presto.229不支持配置单元3。
当前支持配置单元3:
由星暴普雷斯托323-e( connector.name 仍然是 hive-hadoop2 尽管如此)
由普雷斯托在qubole的平台(我不知道配置细节)。
presto在hive 3支持方面的工作正在进行中,您可以在此处进行跟踪:https://github.com/prestosql/presto/issues/1218.
因为你可能会有后续的疑难解答,比如不太合适的问题,所以我建议你加入 #troubleshooting 在普雷斯托社区闲散。如果你选择星暴普雷斯托选项,有 #starburst 频道也在那松弛。

相关问题