下面是我的hive/conf/hive-site.xml:
<configuration>
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://127.0.0.1/metastore?createDatabaseIfNotExist=true</value>
<description>metadata is stored in a MySQL server</desc
我正在尝试创建一个带有hadoop和hive的码头容器。这是我的Dockerfile
FROM ubuntu:latest
USER root
RUN apt-get update
#RUN apt-get -y install default-jre
RUN apt-get install -y python-pip python-dev build-essential
RUN apt-get install -y libmysqlclient-dev
RUN apt-get install -y python-mysqldb
RUN apt-get update && \
我试着在窗口上安装蜂箱。我几乎完成了我的install.But,而盯着蜂箱命令Im得到了下面的错误。
Error applying authorization policy on hive configuration: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
Beeline version 2.1.1 by Apa
我已以root用户身份登录并键入以下命令
GRANT ALL PRIVILEGES ON *.* TO 'hive'@'master' WITH GRANT OPTION;
结果是
Query OK, 0 rows affected, 1 warning (0.00 sec)
警告信息是
Warning | 1285 | MySQL is started in --skip-name-resolve mode; you must restart it without this switch for this grant to work
然后,我检查用户“蜂巢”
TL;DR:同时使用Hive和MySql JDBC会有问题吗?
我正在开发一个应用程序,该应用程序使用MySql JDBC驱动程序执行多个SQL查询,之后它还使用Hive发送另一个Hive查询。
现在发生的事情是MySql查询工作正常,当代码试图执行Hive查询时,它会抛出这个异常:
com.mysql.cj.core.exceptions.WrongArgumentException: Connector/J cannot handle a database URL of type 'jdbc:hive2:'.
at sun.reflect.NativeConstru