关于hive Metadata 使用 MsSQL
下面的页面里说明,
根据说明,Hive SmokeTest 无法通过,一直提示
Logging initialized using configuration in file:/D:/hdp/hive-0.12.0.2.0.6.0-0009
/conf/hive-log4j.properties
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/hdp/hadoop-2.2.0.2.0.6.0-0009/share/hadoop
/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/hdp/hive-0.12.0.2.0.6.0-0009/lib/slf4j-log
4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
FAILED: SemanticException [Error 10001]: Table not found hivesmoke
Run-HiveSmokeTest : Hive Smoke Test: FAILED
查下去,发现
这两个服务一直重启。
再排除吧,先从 metastore 开始吧,
这个测试一直失败,怎么回事?查看 Hive-。。。。/scripts\metastore\upgrade 目录下,有 Mysql,Derby , Oracle,….独没有 Mssql , 难道? 不支持,不对啊,再看看Oozie的数据库明明自动创建了表,难道?是Hive配置的问题,
好吧,查看 Hive-Site.xml 的配置文件,找到一配置节。
- <property> <name>javax.jdo.option.ConnectionURL</name> <value>jdbc:sqlserver://hdp10:1433;database=hive;encrypt=true;trustServerCertificate=true;create=false</value> <description>JDBC connect string for a JDBC metastore</description></property>
原来如些,我想那个测试的哥们,肯定是本机上已经有了hive数据库,create就写成了false, 所以,我这里一直没有过,当然,就出错了。
1,保证有个空数据库,
2,把配置节改成,
- <property> <name>javax.jdo.option.ConnectionURL</name> <value>jdbc:sqlserver://hdp10:1433;database=hive;encrypt=false;trustServerCertificate=true;create=true</value> <description>JDBC connect string for a JDBC metastore</description></property>

- Logging initialized using configuration in file:/D:/hdp/hive-0.12.0.2.0.6.0-0009/conf/hive-log4j.propertiesSLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/D:/hdp/hadoop-2.2.0.2.0.6.0-0009/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/D:/hdp/hive-0.12.0.2.0.6.0-0009/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
- SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]Authorization failed:java.security.AccessControlException: action WRITE not permitted on path hdfs://hdp10:8020/ for user hadoop. Use show grant to get more details.Run-HiveSmokeTest : Hive Smoke Test: FAILED所在位置 行:1 字符: 18+ Run-hiveSmokeTest <<<< + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep tion + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio n,Run-HiveSmokeTest
- 403
- 这一次又是没有写权限了。。。。
- 好吧,我Runas administrator 总可以了吧,
- 是的,是可以了。,
- 但, runas hadoop user 这个问题还是要解决的。这个问题,一会再说。
关于hive Metadata 使用 MsSQL的更多相关文章
- [转]hive metadata 存mysql 注释中文乱码的有关
FROM : http://blog.csdn.net/tswisdom/article/details/41444287 hive metadata 存mysql 注释中文乱码的问题 hive me ...
- Hive学习笔记——metadata
Hive结构体系 https://blog.csdn.net/zhoudaxia/article/details/8855937 可以在hive的jdbc接口中使用getMetaData方法来获取hi ...
- [Hive - LanguageManual] Hive Default Authorization - Legacy Mode
Disclaimer Prerequisites Users, Groups, and Roles Names of Users and Roles Creating/Dropping/Using R ...
- Hive metastore表结构设计分析
今天总结下,Hive metastore的结构设计.什么是metadata呢,对于它的描述,可以理解为数据的数据,主要是描述数据的属性的信息.它是用来支持如存储位置.历史数据.资源查找.文件记录等功能 ...
- impala系列: 同步Hive元数据和收集统计信息
---====================-- Impala 获取hive 的 metadata ---====================Impala 通常和Hive共用同一个metadat ...
- hive Getting Started
Apache HiveThe Apache Hive™ data warehouse software facilitates reading, writing, and managing large ...
- Sparksql 取代 Hive?
sparksql hive https://databricks.com/blog/2014/07/01/shark-spark-sql-hive-on-spark-and-the-future-o ...
- Hive权限之改进
不足 即使开启hive权限认证的情况下,不论什么用户仍然是超级用户.能够通过grant给不论什么人赋予不论什么权限,这样权限认证基本没有意义.因此必须在开启权限认证的同一时候.对运行grant/rev ...
- (转) hive调优(2)
hive 调优(二)参数调优汇总 在hive调优(一) 中说了一些常见的调优,但是觉得参数涉及不多,补充如下 1.设置合理solt数 mapred.tasktracker.map.tasks.maxi ...
随机推荐
- EditText中onEditorAction监听事件执行两次
Android的EditText通过setOnEditorActionListener给文本编辑框设置监听事件,但是在其处理方法onEditorAction中的逻辑在每次回车后都触发了两次, 原来是在 ...
- windows命令行 查询/kill 进程
查询: tasklist kill对应进程 按名称:taskkill /im xxx.exe 按pid: taskill /pid pid kill掉xxx进程的相关进程(子进程) taskkill ...
- elasticsearch2.x插件之一:marvel(配置)
Marvel是Elastic公司推出的商业监控方案,是用来监控Elasticsearch集群,历史状态的有力工具,便于性能优化以及故障诊断.监控主要分为六个层面,分别是集群层.节点层.索引层.分片层. ...
- 无限极分类的JS实现
纯JS实现无限极分类 <!DOCTYPE html> <html> <head> <title></title>//引入Jquery < ...
- 475. Heaters 加热范围
[抄题]: Winter is coming! Your first job during the contest is to design a standard heater with fixed ...
- Solidity开发、测试、部署
这篇文章很详细的列举了几种方式来开始solidity开发: https://medium.com/@davekaj/solidity-tips-and-tricks-for-beginners-bui ...
- 2.Books
Books示例说明了Qt中SQL类如何被Model/View框架使用,使用数据库中存储的信息,创建丰富的用户界面. 首先介绍使用SQL我们需要了解的类: 1.QSqlDatabase: QSqlDat ...
- Mac10.9下的libtiff编译
libtiff介绍 libtiff下载 libtiff编译 libtiff介绍? 参考:http://en.wikipedia.org/wiki/Tiff libtiff下载 直接到官网下载:http ...
- LeftStr函数使用
LeftStr(s, i); 表示返回字符串s的左边共I位字符的一个新字符串. var i: integer; s: string; result: string; begin i := ; s := ...
- c# 简单委托例子
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T ...