细细品味 |
详细的文档,总结的很全面 |
不错,看看!!!! |
网上搜索一下比较多教程 输入 java -version |
本帖最后由 DSP 于 2014-11-23 17:04 编辑 凌飞羽 发表于 2014-11-23 16:38 [root@localhost hadoop-2.4.0]# jps bash: jps: 未找到命令... java没装好?怎么看装好没有 |
DSP 发表于 2014-11-23 12:54 我都是 export PATH 在后面,不知道是不是顺序问题 |
这是我的core-site.xml 配置,安装的是hadoop2.5.1 <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <!-- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. See accompanying LICENSE file. --> <!-- Put site-specific property overrides in this file. --> <configuration> <property> <name>dfs.replication</name> <value>1</value> </property> <property> <name>dfs.namenode.name.dir</name> <value>file:/home/hadoop/hadoop/dfs/name</value> <final>true</final> </property> <property> <name>dfs.datanode.data.dir</name> <value>file:/home/hadoop/hadoop/dfs/data</value> <final>true</final> </property> <property> <name>dfs.namenode.secondary.http-address</name> <value>192.168.88.8:9001</value> </property> <property> <name>dfs.webhdfs.enabled</name> <value>true</value> </property> </configuration> |
FATAL conf.Configuration: error parsing conf core-site.xml org.xml.sax.SAXParseException; systemId: file:/root/usr/hadoop-2.4.0/etc/hadoop/core-site.xml; lineNumber: 22; columnNumber: 2; 文档中根元素后面的标记必须格式正确。 |
w123aw 发表于 2014-11-23 13:35 配置core_site.xml是不是这样写 <configuration> <property> <name>fs.default.name</name> <value>hdfs://localhost:9000</value> </property> <property> <name>dfs.namenode.name.dir</name> <value>file:/root/usr/hadoop-2.4.0/dfs/name</value> </property> <property> <name>dfs.datanode.data.dir</name> <value>file:/root/usr/hadoop-2.4.0/dfs/data</value> </property> </configuration> 一直提示文档中根元素后面的标记必须格式正确。 不知道什么情况 |