问题:我在虚拟机上安装Ubuntu server32位,并且安装hadoop和hbase,通过本地eclipse的插件编写测试程序,我在eclipse里单独测试hadoop和hbase都没有问题,可以运行官方wordcount.java,并且可以对hbase增删改查都没有问题,现在想把这两个整合到一起,读取hbase的数据,写到hdfs上,但是始终连接不上,很郁闷,已经查找2天了,还是没有解决,求帮忙,先谢谢了,在线等,很急。。。。。
我的配置信息如下
一、hadoop:
1、core-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://ubuntu:9000</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/home/ubuntu/hadoop-1.1.2/tmp</value>
</property>
<property>
<name>hadoop.native.lib</name>
<value>true</value>
<description>Should native hadoop libraries, if present, be used.</description>
</property>
</configuration>
2、mapred-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:9001</value>
</property>
</configuration>
3、hdfs-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>
</configuration>
二、hbase
1、hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://ubuntu:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
</configuration>
hosts和环境变量就不贴了,对了我使用的版本是hadoop1.1.2 、hbase0.94.9,在线等求大神门帮忙解决,很急,我的qq:826192947,谢谢