0

I created this table in Hive:

hive> CREATE TABLE twitter_data(datePosted TIMESTAMP
  , userId BIGINT
  , userName STRING
  , tweets STRING)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\t';

But it displays this error message:

FAILED: Error in metadata: javax.jdo.JDOFatalInternalException: Error creating transactional connection factory NestedThrowables: java.lang.reflect.InvocationTargetException

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

Does anyone know what this error message means?

4

1 回答 1

0

我最近遇到了这个问题,这个问题与 Hive JDBC 驱动程序有关,该驱动程序在向 Hive 发出请求时对客户端不可用。这就是我为解决我的问题所做的:

  1. 我确实验证了我的集群中安装了 Hive JDBC 连接器
  2. hive-site.xml我根据本地设置正确修改了以下设置:
<property>
  <name>javax.jdo.option.ConnectionURL</name>
  <value>jdbc:mysql://myhost/metastore</value>
  <description>the URL of the MySQL database</description>
</property>
<property>
  <name>javax.jdo.option.ConnectionDriverName</name>
  <value>com.mysql.jdbc.Driver</value>
</property>
<property>
  <name>javax.jdo.option.ConnectionUserName</name>
  <value>hive</value>
</property>
<property>
  <name>javax.jdo.option.ConnectionPassword</name>
  <value>mypassword</value>
</property>
于 2013-06-03T18:47:59.320 回答