知识点
相关文章
更多最近更新
更多Hive 终端产生的问题 (Failed to start database 'metastore_db', see the next exception for details.)
2019-03-28 13:07|来源: 网络
今天使用Hive的时候遇到一个这样的bug,上网查下原来是个小问题,在此记录下。
FAILED: Error in metadata: javax.jdo.JDOFatalDataStoreException: Failed to start database 'metastore_db', see the next exception for details.
NestedThrowables:
java.sql.SQLException: Failed to start database 'metastore_db', see the next exception for details.
FAILED: Execution Error, return code 1 from org.apache.Hadoop.hive.ql.exec.DDLTask
原因是在同一个目录下面 开启了2个终端。
而你上次在一个目录进入hive 建立了一张表 下次在另外一个目录下面登录。
则上次建立的表 在这次登录中是无法被发现的。
解决办法就是在同一个目录下操作Hive就OK了。
相关阅读:Hadoop搭建教程学习笔记 http://www.linuxidc.com/Linux/2013-03/81669.htm
更多Hadoop相关信息见Hadoop 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=13
相关问答
更多-
这是jdbc连接的问题 - 而不是关于columnSimilarities - 或MLlib的一般问题。 你可能需要做一些工作来让derby连接运行。 这是一个起点: https : //stackoverflow.com/a/40547664/1056563 This is a problem of jdbc connectivity - and not about columnSimilarities - or MLlib in general. You might have some work to ...
-
tl; dr关闭C:\Users\USER\Desktop\ColumnSimilarities\metastore_db Spark应用程序的另一个实例并重新开始。 例外情况: 错误XSDB6:另一个Derby实例可能已经引导了数据库C:\ Users \ USER \ Desktop \ ColumnSimilarities \ metastore_db 说完这一切。 您已经有两个Spark应用程序实例在C:\Users\USER\Desktop\ColumnSimilarities运行并运行。 默认的 ...
-
在挖掘日志之后,正如我们在评论中用@NeilStockton讨论的一样,我试图重新下载相关的jar文件,在jar本身已经存在的文件夹中......并且在重新下载之后它工作... After digging the logs, as we were discussing with @NeilStockton in the comments, i have tried to redownload the related jar file, in the folder where the jar itself a ...
-
让我们假装这不是一个问题,而是一个知识共享/知识共享的帖子。 原来,我的Hive安装hadoop-commons-2.6.0 as lib: ➜ lib pwd /usr/local/Cellar/hive/2.1.0/libexec/lib ➜ lib ll | grep hadoop-common -rw-r--r-- 1 christian admin 3.1M Sep 3 07:29 hadoop-common-2.6.0.jar 但该方法在2.7.3中添加,请参阅源代码 。 因此, ...
-
修正了这个 mysql-connector-java.jar不兼容。 我使用的是MySQLv8.0.11 ,连接器版本是v5.1 。 我更改了版本v8.0.11的连接器。 仍面临时区CEST问题。 更改了系统时区(参考: 更改时区 ) 重新启动MySQL: /etc/init.d/mysqld restart 。 Fixed this. the mysql-connector-java.jar was not compatible. I was using MySQLv8.0.11 and the conn ...
-
我自己找到了解决方案。 我会发布它:按照下面的链接命令。 Hive模式工具 之后,当您尝试打开配置单元时,您会收到一个类似于错误的:metastore使用不同的schematool版本。 为此我使用:因此按照以下步骤并按照您的要求修改数据库像MySql: Before you run hive for the first time, run schematool -initSchema -dbType derby If you already ran hive and then tried to init ...
-
无法启动配置单元,hive-metastore-server会出现一些错误(Can't start hive, some error with hive-metastore-server)[2023-05-18]
我解决了问题。 Postgresql处于关机模式并等待每个用户完成。 所以我杀了posgresql并重新启动它和所有cloudera服务。 现在再次运作。 I fixed the Problem. Postgresql was in shutdown mode and waiting for every user to finish. So I killed posgresql and restartet it and all cloudera services. Now it works again. -
它是表的数据文件存储在HDFS上的默认目录。 metastore_db是一个外部数据库(mysql,postgres,derby等),它存储用于读取xyz.db文件的表模式。 It is the default directory where the data files for the tables are stored on HDFS. metastore_db is an external db (mysql, postgres, derby, etc..) which stores the tabl ...
-
您正在使用配有蜂巢支持的火花。 有两种可能的解决方案基于你以后想用火星壳或火花作业做什么 - 你想在你的hadoop + hive安装中访问配置单元表。 你应该把hive-site.xml放到你的spark安装的conf子目录中。 从现有的配置单元安装中查找hive-site.xml。 例如,在我的cloudera VM中,hive-site.xml位于/ usr / lib / hive / conf。 完成此步骤后启动spark-shell应成功连接到现有的配置单元Metastore,并且不会尝试在当前 ...
-
Derby用作嵌入式数据库。 尝试使用 jdbc:derby:metastore_db;create=true 作为jdbc-url。 也可以看看 https://cwiki.apache.org/confluence/display/Hive/AdminManual+MetastoreAdmin#AdminManualMetastoreAdmin-EmbeddedMetastore 要使用完全功能的Metastore(以及能够从不同服务访问它),请尝试使用mysql进行设置,如上文所述。 Derby i ...