phoenix 无法启动

来源:2-7 【项目文档】Hive,ES,ClickHouse导入人群标签数据步骤

大老李

2021-09-03

老师,我启动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

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

写回答

1回答

小简同学

2021-09-03

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

0
4
小简同学
回复
大老李
好的,解决了就行
2024-09-25
共4条回复

Spark+ES+ClickHouse 构建DMP用户画像

大数据主流技术,数据挖掘核心算法,用户画像完整知识轻松掌握

306 学习 · 219 问题

查看课程