请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

phoenix 无法启动

老师,我启动phoenix的是怎么也无法启动起来,报错为

/opt/phoenix-server/conf/hbase-site.xml:21.6: XML declaration allowed only at the start of the document
<?xml version="1.0"?>
     ^
/opt/phoenix-server/conf/hbase-site.xml:23.1: Extra content at the end of the document
<configuration></configuration>
^
/opt/phoenix-server/conf/hbase-site.xml:21.6: XML declaration allowed only at the start of the document
<?xml version="1.0"?>
     ^
/opt/phoenix-server/conf/hbase-site.xml:23.1: Extra content at the end of the document
<configuration></configuration>
^
/opt/phoenix-server/conf/hbase-site.xml:21.6: XML declaration allowed only at the start of the document
<?xml version="1.0"?>
     ^
/opt/phoenix-server/conf/hbase-site.xml:23.1: Extra content at the end of the document
<configuration></configuration>
^
/opt/phoenix-server/conf/hbase-site.xml:21.6: XML declaration allowed only at the start of the document
<?xml version="1.0"?>
     ^
/opt/phoenix-server/conf/hbase-site.xml:23.1: Extra content at the end of the document
<configuration></configuration>
^
[Fatal Error] hbase-site.xml:21:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
21/09/02 16:05:45 FATAL conf.Configuration: error parsing conf hbase-site.xml
org.xml.sax.SAXParseException; systemId: file:/opt/phoenix-server/conf/hbase-site.xml; lineNumber: 21; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150)
	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2480)
	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2468)
	at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2539)
	at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2502)
	at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2405)
	at org.apache.hadoop.conf.Configuration.get(Configuration.java:981)
	at org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:1031)
	at org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1432)
	at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:67)
	at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:81)
	at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:96)
	at org.apache.phoenix.queryserver.server.QueryServer.main(QueryServer.java:503)
Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException; systemId: file:/opt/phoenix-server/conf/hbase-site.xml; lineNumber: 21; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed.
	at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2645)
	at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2502)
	at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2405)
	at org.apache.hadoop.conf.Configuration.get(Configuration.java:981)
	at org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:1031)
	at org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1432)
	at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:67)
	at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:81)
	at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:96)
	at org.apache.phoenix.queryserver.server.QueryServer.main(QueryServer.java:503)
Caused by: org.xml.sax.SAXParseException; systemId: file:/opt/phoenix-server/conf/hbase-site.xml; lineNumber: 21; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150)
	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2480)
	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2468)
	at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2539)
	... 9 more
/opt/phoenix-server/conf/hbase-site.xml:21.6: XML declaration allowed only at the start of the document
<?xml version="1.0"?>
     ^
/opt/phoenix-server/conf/hbase-site.xml:23.1: Extra content at the end of the document
<configuration></configuration>
^
/opt/phoenix-server/conf/hbase-site.xml:21.6: XML declaration allowed only at the start of the document
<?xml version="1.0"?>
     ^
/opt/phoenix-server/conf/hbase-site.xml:23.1: Extra content at the end of the document
<configuration></configuration>
^
/opt/phoenix-server/conf/hbase-site.xml:21.6: XML declaration allowed only at the start of the document
<?xml version="1.0"?>
     ^
/opt/phoenix-server/conf/hbase-site.xml:23.1: Extra content at the end of the document
<configuration></configuration>
^
/opt/phoenix-server/conf/hbase-site.xml:21.6: XML declaration allowed only at the start of the document
<?xml version="1.0"?>
     ^
/opt/phoenix-server/conf/hbase-site.xml:23.1: Extra content at the end of the document
<configuration></configuration>
^
[Fatal Error] hbase-site.xml:21:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
21/09/02 16:08:46 FATAL conf.Configuration: error parsing conf hbase-site.xml
org.xml.sax.SAXParseException; systemId: file:/opt/phoenix-server/conf/hbase-site.xml; lineNumber: 21; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150)
	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2480)
	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2468)
	at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2539)
	at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2502)
	at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2405)
	at org.apache.hadoop.conf.Configuration.get(Configuration.java:981)
	at org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:1031)
	at org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1432)
	at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:67)
	at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:81)
	at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:96)
	at org.apache.phoenix.queryserver.server.QueryServer.main(QueryServer.java:503)
Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException; systemId: file:/opt/phoenix-server/conf/hbase-site.xml; lineNumber: 21; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed.
	at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2645)
	at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2502)
	at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2405)
	at org.apache.hadoop.conf.Configuration.get(Configuration.java:981)
	at org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:1031)
	at org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1432)
	at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:67)
	at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:81)
	at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:96)
	at org.apache.phoenix.queryserver.server.QueryServer.main(QueryServer.java:503)
Caused by: org.xml.sax.SAXParseException; systemId: file:/opt/phoenix-server/conf/hbase-site.xml; lineNumber: 21; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150)
	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2480)
	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2468)
	at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2539)
	... 9 more
/opt/phoenix-server/conf/hbase-site.xml:21.6: XML declaration allowed only at the start of the document
<?xml version="1.0"?>
     ^
/opt/phoenix-server/conf/hbase-site.xml:23.1: Extra content at the end of the document
<configuration></configuration>
^
/opt/phoenix-server/conf/hbase-site.xml:21.6: XML declaration allowed only at the start of the document
<?xml version="1.0"?>
     ^
/opt/phoenix-server/conf/hbase-site.xml:23.1: Extra content at the end of the document
<configuration></configuration>
^
/opt/phoenix-server/conf/hbase-site.xml:21.6: XML declaration allowed only at the start of the document
<?xml version="1.0"?>
     ^
/opt/phoenix-server/conf/hbase-site.xml:23.1: Extra content at the end of the document
<configuration></configuration>
^
/opt/phoenix-server/conf/hbase-site.xml:21.6: XML declaration allowed only at the start of the document
<?xml version="1.0"?>
     ^
/opt/phoenix-server/conf/hbase-site.xml:23.1: Extra content at the end of the document
<configuration></configuration>
^
[Fatal Error] hbase-site.xml:21:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
21/09/02 16:19:35 FATAL conf.Configuration: error parsing conf hbase-site.xml
org.xml.sax.SAXParseException; systemId: file:/opt/phoenix-server/conf/hbase-site.xml; lineNumber: 21; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150)
	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2480)
	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2468)
	at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2539)
	at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2502)
	at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2405)
	at org.apache.hadoop.conf.Configuration.get(Configuration.java:981)
	at org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:1031)
	at org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1432)
	at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:67)
	at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:81)
	at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:96)
	at org.apache.phoenix.queryserver.server.QueryServer.main(QueryServer.java:503)
Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException; systemId: file:/opt/phoenix-server/conf/hbase-site.xml; lineNumber: 21; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed.
	at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2645)
	at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2502)
	at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2405)
	at org.apache.hadoop.conf.Configuration.get(Configuration.java:981)
	at org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:1031)
	at org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1432)
	at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:67)
	at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:81)
	at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:96)
	at org.apache.phoenix.queryserver.server.QueryServer.main(QueryServer.java:503)
Caused by: org.xml.sax.SAXParseException; systemId: file:/opt/phoenix-server/conf/hbase-site.xml; lineNumber: 21; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150)
	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2480)
	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2468)
	at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2539)
	... 9 more

貌似为里面的配置文件有错无,请问这个怎么修正

正在回答 回答被采纳积分+3

1回答

小简同学 2021-09-03 09:17:39

同学你好,看日志是xml文件的格式错误了,不能解析,你看下<?xml version =“1.0">前是否有空格或空行,要去掉,还有日志也指明了错误是发生在第21行,你看下那里是否也是出现了空行,要去掉的。祝学习愉快!

0 回复 有任何疑惑可以回复我~
  • 提问者 大老李 #1
    但是,这个文件在哪里去找呢?应该是容器里面的,容器启动不了也没法进去修改
    回复 有任何疑惑可以回复我~ 2021-09-03 09:20:12
  • 小简同学 回复 提问者 大老李 #2
    打命令 docker-compose down,把所有容器都关了,再重新启动就可以了。
    回复 有任何疑惑可以回复我~ 2021-09-03 09:28:20
  • 提问者 大老李 回复 小简同学 #3
    好的,谢谢老师,我回去试一试
    回复 有任何疑惑可以回复我~ 2021-09-03 09:30:18
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号