从官方网站上下载对应的版本,解压到hbase和hadoop目录下.
在hadoop下面
配置hadoop-env.sh配置JAVA_HOME
配置conf/core-site.xml
配置conf/hdfs-site.xml
配置mapred-site.xml
bin/hadoop namenode -format
bin/start-all.sh
进入hbase
配置conf/hbase-site.xml
bin/start-hbase.sh
bin/hbase shell
在hadoop下面
配置hadoop-env.sh配置JAVA_HOME
配置conf/core-site.xml
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
配置conf/hdfs-site.xml
<configuration>
<property>
<name>dfs.name.dir</name>
<value>/hadoop/namenode</value>
</property>
<property>
<name>dfs.data.dir</name>
<value>/hadoop/data</value>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>
配置mapred-site.xml
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:9001</value>
</property>
</configuration>
bin/hadoop namenode -format
bin/start-all.sh
进入hbase
配置conf/hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
<description>The directory shared by region servers.
</description>
</property>
</configuration>
bin/start-hbase.sh
bin/hbase shell