下面的页面里说明,

http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.0.6.0-Win/bk_installing_hdp_for_windows/content/win-getting-ready-2-4.html

 

根据说明,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 的配置文件,找到一配置节。

  1. <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,把配置节改成,

  1. <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>
 
再运行 Run-SmokeTests.cmd hive,sqlserver 数据库中开始自动创建表。
 
/************************** *** */
不过这并不代表测试通过了,问题又来了。
  1. 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.
  2.  
  3. 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
  4.  
  5. 403
  1.  
  1. 这一次又是没有写权限了。。。。
  1.  
  1. 好吧,我Runas administrator 总可以了吧,
  1. 是的,是可以了。,
  1. 但, runas hadoop user 这个问题还是要解决的。这个问题,一会再说。
  1.  

关于hive Metadata 使用 MsSQL的更多相关文章

  1. [转]hive metadata 存mysql 注释中文乱码的有关

    FROM : http://blog.csdn.net/tswisdom/article/details/41444287 hive metadata 存mysql 注释中文乱码的问题 hive me ...

  2. Hive学习笔记——metadata

    Hive结构体系 https://blog.csdn.net/zhoudaxia/article/details/8855937 可以在hive的jdbc接口中使用getMetaData方法来获取hi ...

  3. [Hive - LanguageManual] Hive Default Authorization - Legacy Mode

    Disclaimer Prerequisites Users, Groups, and Roles Names of Users and Roles Creating/Dropping/Using R ...

  4. Hive metastore表结构设计分析

    今天总结下,Hive metastore的结构设计.什么是metadata呢,对于它的描述,可以理解为数据的数据,主要是描述数据的属性的信息.它是用来支持如存储位置.历史数据.资源查找.文件记录等功能 ...

  5. impala系列: 同步Hive元数据和收集统计信息

    ---====================-- Impala 获取hive 的 metadata ---====================Impala 通常和Hive共用同一个metadat ...

  6. hive Getting Started

    Apache HiveThe Apache Hive™ data warehouse software facilitates reading, writing, and managing large ...

  7. Sparksql 取代 Hive?

    sparksql  hive https://databricks.com/blog/2014/07/01/shark-spark-sql-hive-on-spark-and-the-future-o ...

  8. Hive权限之改进

    不足 即使开启hive权限认证的情况下,不论什么用户仍然是超级用户.能够通过grant给不论什么人赋予不论什么权限,这样权限认证基本没有意义.因此必须在开启权限认证的同一时候.对运行grant/rev ...

  9. (转) hive调优(2)

    hive 调优(二)参数调优汇总 在hive调优(一) 中说了一些常见的调优,但是觉得参数涉及不多,补充如下 1.设置合理solt数 mapred.tasktracker.map.tasks.maxi ...

随机推荐

  1. EditText中onEditorAction监听事件执行两次

    Android的EditText通过setOnEditorActionListener给文本编辑框设置监听事件,但是在其处理方法onEditorAction中的逻辑在每次回车后都触发了两次, 原来是在 ...

  2. windows命令行 查询/kill 进程

    查询: tasklist kill对应进程 按名称:taskkill /im xxx.exe 按pid: taskill /pid pid kill掉xxx进程的相关进程(子进程) taskkill ...

  3. elasticsearch2.x插件之一:marvel(配置)

    Marvel是Elastic公司推出的商业监控方案,是用来监控Elasticsearch集群,历史状态的有力工具,便于性能优化以及故障诊断.监控主要分为六个层面,分别是集群层.节点层.索引层.分片层. ...

  4. 无限极分类的JS实现

    纯JS实现无限极分类 <!DOCTYPE html> <html> <head> <title></title>//引入Jquery < ...

  5. 475. Heaters 加热范围

    [抄题]: Winter is coming! Your first job during the contest is to design a standard heater with fixed ...

  6. Solidity开发、测试、部署

    这篇文章很详细的列举了几种方式来开始solidity开发: https://medium.com/@davekaj/solidity-tips-and-tricks-for-beginners-bui ...

  7. 2.Books

    Books示例说明了Qt中SQL类如何被Model/View框架使用,使用数据库中存储的信息,创建丰富的用户界面. 首先介绍使用SQL我们需要了解的类: 1.QSqlDatabase: QSqlDat ...

  8. Mac10.9下的libtiff编译

    libtiff介绍 libtiff下载 libtiff编译 libtiff介绍? 参考:http://en.wikipedia.org/wiki/Tiff libtiff下载 直接到官网下载:http ...

  9. LeftStr函数使用

    LeftStr(s, i); 表示返回字符串s的左边共I位字符的一个新字符串. var i: integer; s: string; result: string; begin i := ; s := ...

  10. c# 简单委托例子

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T ...