hive schematool 初始化 发生 'NUCLEUS_ASCII' Error
来源:互联网 发布:qq飞车紫焰战神数据 编辑:程序博客网 时间:2024/06/09 01:09
After installing hive, if the first thing you did was run hive, hive attempted to create/initialize the metastore_db, but apparently might not get it right. On that initial run, maybe you saw your error:
Exception in thread "main" java.lang.RuntimeException: Hive metastore database is not initialized. Please use schematool (e.g. ./schematool -initSchema -dbType ...) to create the schema. If needed, don't forget to include the option to auto-create the underlying database in your JDBC connection string (e.g. ?createDatabaseIfNotExist=true for mysql)
Running hive, even though it fails, creates a metastore_db directory in the directory from which you ran hive:
ubuntu15-laptop: ~ $>ls -l |grep metadrwxrwxr-x 5 testuser testuser 4096 Apr 14 12:44 metastore_db
So when you then tried running
ubuntu15-laptop: ~ $>schematool -initSchema -dbType derby
The metastore already existed, but not in complete form.
Soooooo the answer is:
Before you run hive for the first time, run
schematool -initSchema -dbType derby
If you already ran hive and then tried to initSchema and it's failing:
mv metastore_db metastore_db.tmp
Re run
schematool -initSchema -dbType derby
Run hive again
**Also of note: if you change directories, the metastore_db created above won't be found! I'm sure there's a good reason for this that I don't know yet because I'm literally trying to use hive for the first time today. Ahhh here's information on this: metastore_db created wherever I run Hive
- hive schematool 初始化 发生 'NUCLEUS_ASCII' Error
- Hive错误:Error: FUNCTION 'NUCLEUS_ASCII' already exists. (state=X0Y68,code=30000)
- Hive metastore database is not initialized. Please use schematool (e.g. ./schematool -initSchema -db
- java.lang.RuntimeException: Hive metastore database is not initialized.Please use schematool
- Hive metastore database is not initialized. Please use schematool(...) to create the schema.
- Hive metastore database is not initialized. Please use schematool(...) to create the schema.
- MetaException(message:Hive metastore database is not initialized. Please use schematool (e.g. ./sch
- hive error
- hive-error
- net安装部署“Error 1001 在初始化安装时发生异常” 的解决方法
- mmap发生Bus error
- hive 初始化运行流程
- hive 初始化运行流程
- hive 初始化运行流程
- hive 初始化运行流程
- Hive 初始化运行流程
- hive 初始化运行流程
- error: hive create table failed
- Borrow Classroom 最近公共祖先
- hashmap 前篇
- 从接口获取数据展示弹出框列表
- Android 主题切换/换肤方案 研究(一)
- python基础教程——dict和se
- hive schematool 初始化 发生 'NUCLEUS_ASCII' Error
- linux 安装 node
- Andrew Ng笔记-week1
- 深入java 认识泛型及其用法
- <iframe>和<frame>区别
- 滴滴算法工程师面试2018
- 有序表查询之三:java实现斐波那契查询
- 连接池,为什么要使用连接池?
- 详解linux目录结构及重要子目录