pig2 发表于 2014-11-23 11:11:07

DSP 发表于 2014-11-23 11:00
HADOOP_HDFS_HOME not found!
,这是什么情况???


执行这个命令:
export HADOOP_HDFS_HOME="$HADOOP_HOME"

建议Linux基础加强,多看些安装部署文档

http://www.aboutyun.com/forum.php?mod=collection&action=view&ctid=3

DSP 发表于 2014-11-23 12:54:21

pig2 发表于 2014-11-23 11:11
执行这个命令:
export HADOOP_HDFS_HOME="$HADOOP_HOME"



vi /etc/profile
然后添加了
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_51
export HADOOP_PREFIX=/usr/hadoop-2.4.0
export CLASSPATH=".:$JAVA_HOME/lib:$CLASSPATH"
export PATH="$JAVA_HOME/:$HADOOP_PREFIX/bin:$PATH"
export HADOOP_PREFIX PATH CLASSPATH
export HADOOP_HOME="$/usr/hadoop-2.4.0"
export PATH=$HADOOP_HOME/bin:$PATH
export HADOOP_HDFS_HOME="$HADOOP_HOME"


还是提示HADOOP_HDFS_HOME not found!
这是怎么回事呢

w123aw 发表于 2014-11-23 13:35:13

DSP 发表于 2014-11-23 12:54
vi /etc/profile
然后添加了
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_51




不需要加上引号,然后记得文件生效


执行下面命令
source 文件名如果不行,最好重启下集群,或则虚拟机




DSP 发表于 2014-11-23 14:54:38

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>
一直提示文档中根元素后面的标记必须格式正确。不知道什么情况


DSP 发表于 2014-11-23 16:25:29

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; 文档中根元素后面的标记必须格式正确。

凌飞羽 发表于 2014-11-23 16:38:43

这是我的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>

凌飞羽 发表于 2014-11-23 16:41:29

DSP 发表于 2014-11-23 12:54
vi /etc/profile
然后添加了
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_51


我都是 export PATH 在后面,不知道是不是顺序问题

DSP 发表于 2014-11-23 16:50:52

本帖最后由 DSP 于 2014-11-23 17:04 编辑

凌飞羽 发表于 2014-11-23 16:38
这是我的core-site.xml 配置,安装的是hadoop2.5.1



# jps
bash: jps: 未找到命令...


java没装好?怎么看装好没有

凌飞羽 发表于 2014-11-23 23:48:51

网上搜索一下比较多教程
输入
java -version

zhangjie_123 发表于 2014-11-26 16:42:27

不错,看看!!!!
页: 1 [2] 3
查看完整版本: hadoop2.4.0 伪分布安装配置