1:Hive安装的过程(Hive启动的时候报的错误),贴一下错误,和为什么错,以及解决方法:

  1. [root@master bin]# ./hive
  2. // :: INFO Configuration.deprecation: mapred.input.dir.recursive is deprecated. Instead, use mapreduce.input.fileinputformat.input.dir.recursive
  3. // :: INFO Configuration.deprecation: mapred.max.split.size is deprecated. Instead, use mapreduce.input.fileinputformat.split.maxsize
  4. // :: INFO Configuration.deprecation: mapred.min.split.size is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize
  5. // :: INFO Configuration.deprecation: mapred.min.split.size.per.rack is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize.per.rack
  6. // :: INFO Configuration.deprecation: mapred.min.split.size.per.node is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize.per.node
  7. // :: INFO Configuration.deprecation: mapred.reduce.tasks is deprecated. Instead, use mapreduce.job.reduces
  8. // :: INFO Configuration.deprecation: mapred.reduce.tasks.speculative.execution is deprecated. Instead, use mapreduce.reduce.speculative
  9. [Fatal Error] hive-site.xml::: The markup in the document following the root element must be well-formed.
  10. // :: FATAL conf.Configuration: error parsing conf file:/home/hadoop/hive-0.12./conf/hive-site.xml
  11. org.xml.sax.SAXParseException; systemId: file:/home/hadoop/hive-0.12./conf/hive-site.xml; lineNumber: ; columnNumber: ; The markup in the document following the root element must be well-formed.
  12. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:)
  13. at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:)
  14. at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:)
  15. at org.apache.hadoop.conf.Configuration.parse(Configuration.java:)
  16. at org.apache.hadoop.conf.Configuration.parse(Configuration.java:)
  17. at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:)
  18. at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:)
  19. at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:)
  20. at org.apache.hadoop.conf.Configuration.get(Configuration.java:)
  21. at org.apache.hadoop.hive.conf.HiveConf.initialize(HiveConf.java:)
  22. at org.apache.hadoop.hive.conf.HiveConf.<init>(HiveConf.java:)
  23. at org.apache.hadoop.hive.common.LogUtils.initHiveLog4jCommon(LogUtils.java:)
  24. at org.apache.hadoop.hive.common.LogUtils.initHiveLog4j(LogUtils.java:)
  25. at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:)
  26. at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:)
  27. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  28. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:)
  29. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:)
  30. at java.lang.reflect.Method.invoke(Method.java:)
  31. at org.apache.hadoop.util.RunJar.main(RunJar.java:)
  32. Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException; systemId: file:/home/hadoop/hive-0.12./conf/hive-site.xml; lineNumber: ; columnNumber: ; The markup in the document following the root element must be well-formed.
  33. at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:)
  34. at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:)
  35. at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:)
  36. at org.apache.hadoop.conf.Configuration.get(Configuration.java:)
  37. at org.apache.hadoop.hive.conf.HiveConf.initialize(HiveConf.java:)
  38. at org.apache.hadoop.hive.conf.HiveConf.<init>(HiveConf.java:)
  39. at org.apache.hadoop.hive.common.LogUtils.initHiveLog4jCommon(LogUtils.java:)
  40. at org.apache.hadoop.hive.common.LogUtils.initHiveLog4j(LogUtils.java:)
  41. at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:)
  42. at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:)
  43. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  44. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:)
  45. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:)
  46. at java.lang.reflect.Method.invoke(Method.java:)
  47. at org.apache.hadoop.util.RunJar.main(RunJar.java:)
  48. Caused by: org.xml.sax.SAXParseException; systemId: file:/home/hadoop/hive-0.12./conf/hive-site.xml; lineNumber: ; columnNumber: ; The markup in the document following the root element must be well-formed.
  49. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:)
  50. at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:)
  51. at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:)
  52. at org.apache.hadoop.conf.Configuration.parse(Configuration.java:)
  53. at org.apache.hadoop.conf.Configuration.parse(Configuration.java:)
  54. at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:)
  55. ... more

2:我的错误主要是配置Hive-site.xml的时候少写了开头和结尾的<configuration></configuration>,导致的错误,下面贴一下这个配置文件易错的地方:

  1. <!--开头和结尾,一定不要忘记-->
  2. <configuration>
  3. <property>
  4. <name>javax.jdo.option.ConnectionURL</name>
  5. <!--自己的主机名称或者localhost-->
  6. <value>jdbc:mysql://主机名称:3306/hive?createDatabaseIfNotExist=true</value>
  7. </property>
  8. <property>
  9. <name>javax.jdo.option.ConnectionDriverName</name>
  10. <value>com.mysql.jdbc.Driver</value>
  11. </property>
  12. <property>
  13. <name>javax.jdo.option.ConnectionUserName</name>
  14. <!--mysql的账号-->
  15. <value>root</value>
  16. </property>
  17. <property>
  18. <name>javax.jdo.option.ConnectionPassword</name>
  19. <!--自己mysql的密码哦-->
  20. <value></value>
  21. </property>
  22. </configuration>

停更......

天霸动霸tua,加油.....

2017-12-12 15:32:47

Caused by: org.xml.sax.SAXParseException; systemId: file:/home/hadoop/hive-0.12.0/conf/hive-site.xml; lineNumber: 5; columnNumber: 2; The markup in the document following the root element must be well的更多相关文章

  1. Spring- 异常org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/context/; lineNumber: 1; columnNumber: 55; 在 publicId 和 systemId 之间需要有空格。

    抛出异常 六月 03, 2018 7:40:44 下午 org.springframework.context.support.AbstractApplicationContext prepareRe ...

  2. maven web项目的web.xml报错The markup in the document following the root element must be well-formed.

    maven项目里面的web.xml开头约束是这样的 <?xml version="1.0" encoding="UTF-8"?> <web-a ...

  3. The markup in the document following the root element must be well-formed. Quartz.xml .......

    这个错误说明是我的Quartz.xml文件的问题 错误描述:错误发生在文档的标记后,文档格式必须是良好的. 错误原因:我这里多写了个 </xml> 文件头的<?xml ?>只是 ...

  4. Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in

    1.错误描述 严重: Exception sending context initialized event to listener instance of class org.springframe ...

  5. xml操作-Nested exception: org.xml.sax.SAXParseException: White spaces are required between publicId and systemId. 异常处理

    异常如下: org.dom4j.DocumentException: Error on line 2 of document file:///D:/workspaces/struts2/lesson0 ...

  6. Caused by: org.xml.sax.SAXParseException; lineNumber: 64; columnNumber: 27; The entity name must immediately follow the '&' in the entity reference.

    java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.conte ...

  7. java读取xml文件报“org.xml.sax.SAXParseException: Premature end of file” .

    背景:java读取xml文件,xml文件内容只有“<?xml version="1.0" encoding="UTF-8"?>”一行 java读取该 ...

  8. spring整合mybatis错误:Caused by: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 62; 文档根元素 "mapper" 必须匹配 DOCTYPE 根 "configuration"。

    运行环境:jdk1.7.0_17+tomcat 7 + spring:3.2.0 +mybatis:3.2.7+ eclipse 错误:Caused by: org.xml.sax.SAXParseE ...

  9. Caused by: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 49; 前言中不允许有内容。

    今天刚开始学习mybatis时,自己去尝试使用mybatis链接数据库,操作数据局时,报了一个下面的错误 Caused by: org.xml.sax.SAXParseException; lineN ...

随机推荐

  1. POJ-1250

    #include<iostream> #include<string> #include<list> #include<algorithm> using ...

  2. leetcode:程序猿面试技巧

    起因 写在开头,脑袋铁定秀逗了,历时20多天,刷完了leetcode上面151道题目(当然非常多是google的),感觉自己对算法和数据结构算是入门了,但仍然还有非常多不清楚的地方,于是有了对于每道题 ...

  3. Git 经常使用命令总结

    一 关于加入.删除和回退 1 git rm --cached file  想要git不再跟踪这个文件,可是又不想在硬盘中删除该文件 2 在被git管理的文件夹中删除文件时,能够选择例如以下两种方式: ...

  4. java并发编程的艺术——第一章总结

    并发编程的挑战 1.1上下文切换 1.2死锁 1.3资源限制的挑战 1.4本章小结 1.1上下文切换 1.1.1多线程一定快吗 1.1.2测试上下文切换次数和时长 1.1.3如何减少上下文切换 1.1 ...

  5. JAVA入门[12]-JavaBean

    一.什么是JavaBean JavaBean是特殊的Java类,使用Java语言书写,并且遵守规范: 提供一个默认的无参构造函数. 需要被序列化并且实现了Serializable接口. 可能有一系列可 ...

  6. 阿里云ECS部署ZooKeeper注意事项

    如果ECS为专有网络+弹性IP时,配置集群中,"自己"的ip要写成0.0.0.0,其他服务器可以写成公网ip.否则会包如下错误: java.net.BindException: C ...

  7. 关于SQLALCHEMY之(一)

    SQLALCHEMY是一个不可靠的方案.对于初级开发者而言,并不如SQL语句来得简明. 或者说,我不知道是不是所有的ORM数据库对象映射方案都存在这么一种情况.纯以开发逻辑而言.下述两段代码的结论是一 ...

  8. Activiti 6.0 之SkipExpression

    Activiti 6.0 之SkipExpression 惭愧惭愧,这么一个小小的功能整了这么久. ​ 还是先说一下业务场景吧.在工作流中,我们难免会遇到这样的情况,即一个流程的发起者的身份问题.举个 ...

  9. 老生常谈之Block

    前面有一篇介绍Block的博客,主要介绍了Block的简单使用技巧.这篇博客主要更加深入地了解一下Block.包括:Block的实现.__Block的原理以及Block的存储域三方面. Block的实 ...

  10. C C语言中关键词,以及知识点复习

    C语言学习 C语言练习知识点 auto        局部变量(自动储存) break       无条件退出程序最内层循环 case        switch语句中选择项 char         ...