Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Invalid
-
None
-
None
-
None
-
1.red hat
2.hadoop-2.3.0(NN)
3.hadoop1(namenode active),hadoop2(namenode standby),hadoop3 (datanode),hadoop4(datanode)
4.hbase-0.98.0-hadoop2-bin.tar.gz
Description
operating system: linux (red hat 5.4 i386)
hadoop version:hadoop-2.3 (NN:two namenode)
hbase version:hbase-0.98.0-hadoop2-bin
hadoop-2.3(NN)
core-site.xml
<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>/home/hadoop/tmp</value>
<description>A base for other temporary directories.</description>
</property>
<property>
<name>fs.default.name</name>
<value>hdfs://cluster1</value>
</property>
</configuration
hdfs-site.xml
<configuration>
<property>
<name>dfs.replication</name>
<value>2</value>
</property>
<property>
<name>dfs.nameservices</name>
<value>cluster1</value>
</property>
<property>
<name>dfs.ha.namenodes.cluster1</name>
<value>hadoop1,hadoop2</value>
</property>
<property>
<name>dfs.namenode.rpc-address.cluster1.hadoop1</name>
<value>hadoop1:9000</value>
</property>
<property>
<name>dfs.namenode.rpc-address.cluster1.hadoop2</name>
<value>hadoop2:9000</value>
</property>
<property>
<name>dfs.namenode.http-address.cluster1.hadoop1</name>
<value>hadoop1:50070</value>
</property>
<property>
<name>dfs.namenode.http-address.cluster1.hadoop2</name>
<value>hadoop2:50070</value>
</property>
<property>
<name>dfs.namenode.shared.edits.dir</name>
<value>qjournal://hadoop1:8485;hadoop2:8485;hadoop3:8485/cluster1</value>
</property>
<property>
<name>dfs.client.failover.proxy.provider.cluster1</name>
<value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</value>
</property>
<property>
<name>dfs.ha.fencing.methods</name>
<value>sshfence</value>
</property>
<property>
<name>dfs.ha.fencing.ssh.private-key-files</name>
<value>/root/.ssh/id_rsa</value>
</property>
<property>
<name>dfs.journalnode.edits.dir</name>
<value>/hadoop/tmp/journal</value>
</property>
<property>
<name>dfs.webhdfs.enabled</name>
<value>true</value>
</property>
</configuration>
After testing, hadoop NN configuration is successful.
http://images.cnitblog.com/i/48682/201403/281811569696016.jpg
http://images.cnitblog.com/i/48682/201403/281812107976891.jpg
http://images.cnitblog.com/i/48682/201403/281812270168836.jpg
how to configure the value hbase hbase.rootdir?
"hdfs://hadoop1:9000/hbase" or "hdfs://hadoop2:9000/hbase" or " hdfs://cluster1" All of these configuration values, I have tried, but failed to start hbase,Can you help me?