安装hadoop,java索引7处非法字符异常?

x8diyxa7  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(468)

以下是所有配置的本教程:http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/
得到这个错误,可以得到我的任务跟踪器和工作跟踪器了,但其他人不断给我这个错误:

013-07-03 19:39:44,918 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting DataNode
STARTUP_MSG:   host = slaveone-12499.phx-os1.stratus.dev.ebay.com/10.9.247.151
STARTUP_MSG:   args = []
STARTUP_MSG:   version = 1.2.0
STARTUP_MSG:   build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.2 -r 1479473; compiled by 'hortonfo' on Mon May  6 06:59:37 UTC 2013
STARTUP_MSG:   java = 1.7.0_25

************************************************************/

2013-07-03 19:39:45,143 INFO org.apache.hadoop.metrics2.impl.MetricsConfig: loaded properties from hadoop-metrics2.properties
2013-07-03 19:39:45,157 INFO org.apache.hadoop.metrics2.impl.MetricsSourceAdapter: MBean for source MetricsSystem,sub=Stats registered.
2013-07-03 19:39:45,159 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Scheduled snapshot period at 10 second(s).
2013-07-03 19:39:45,160 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: DataNode metrics system started
2013-07-03 19:39:46,682 INFO org.apache.hadoop.metrics2.impl.MetricsSourceAdapter: MBean for source ugi registered.
2013-07-03 19:39:46,729 WARN org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Source name ugi already exists!
2013-07-03 19:39:46,806 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.lang.IllegalArgumentException: Illegal character in authority at index 7: hdfs://localhost:54310
        at java.net.URI.create(URI.java:859)
        at org.apache.hadoop.fs.FileSystem.getDefaultUri(FileSystem.java:131)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:242)
        at org.apache.hadoop.fs.FileSystem.getLocal(FileSystem.java:225)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1683)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1637)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:1655)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:1781)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:1798)
Caused by: java.net.URISyntaxException: Illegal character in authority at index 7: hdfs://localhost:54310
        at java.net.URI$Parser.fail(URI.java:2829)
        at java.net.URI$Parser.parseAuthority(URI.java:3167)
        at java.net.URI$Parser.parseHierarchical(URI.java:3078)
        at java.net.URI$Parser.parse(URI.java:3034)
        at java.net.URI.<init>(URI.java:595)
        at java.net.URI.create(URI.java:857)
        ... 8 more

2013-07-03 19:39:46,820 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down DataNode at slaveone-12499.phx-os1.stratus.dev.ebay.com/10.9.247.151

************************************************************/

不知道怎么了,我试着找一个非法字符,但一直找不到?我也看了前面关于这个的堆栈溢出问题,但不确定它应该如何帮助我。

cfh9epnr

cfh9epnr1#

xml中的开始、结束和标记之间存在间距问题。再检查一遍!

相关问题