Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
learn:bigdata:install_hadoop_eco_system_single_mode [2014/08/14 23:40] yehudalearn:bigdata:install_hadoop_eco_system_single_mode [2022/01/03 16:03] (current) – external edit 127.0.0.1
Line 15: Line 15:
 Edit ~/.bashrc Edit ~/.bashrc
 <code bash> <code bash>
-export HADOOP_HOME=/usr/local/hadoop+export HADOOP_HOME=/usr/local/hadoop/jre
 export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
 export ZOOKEEPER_PREFIX=/usr/local/zookeeper export ZOOKEEPER_PREFIX=/usr/local/zookeeper
Line 42: Line 42:
 </code> </code>
  
 +Edit /usr/local/hadoop/etc/hadoop/mapred-site.xml
 +<code xml>
 +<?xml version="1.0"?>
 +<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
 +<configuration>
 +<property>
 +  <name>mapred.job.tracker</name>
 +  <value>localhost:54311</value>
 +  <description>The host and port that the MapReduce job tracker runs
 +  at.  If "local", then jobs are run in-process as a single map
 +  and reduce task.
 +  </description>
 +</property>
 +</configuration>
 +
 +</code>
 +Edit /usr/local/hadoop/etc/conf/core-site.xml
 +<code xml>
 +<configuration>
 +<property>
 +  <name>hadoop.tmp.dir</name>
 +  <value>/home/hduser/hadoop.tmp</value>
 +  <description>A base for other temporary directories.</description>
 +</property>
 +
 +<property>
 +  <name>fs.default.name</name>
 +  <value>hdfs://localhost:54310</value>
 +  <description>The name of the default file system.  A URI whose
 +  scheme and authority determine the FileSystem implementation.  The
 +  uri's scheme determines the config property (fs.SCHEME.impl) naming
 +  the FileSystem implementation class.  The uri's authority is used to
 +  determine the host, port, etc. for a filesystem.</description>
 +</property>
 +</configuration>
 +
 +</code>
 +
 +Format
 +<code bash>
 +cd /usr/local/hadoop/
 +bin/hadoop namenode -format
 +</code>
  
  
Line 80: Line 123:
 </code> </code>
 Edit /usr/local/hbase/conf/hbase-env.sh Edit /usr/local/hbase/conf/hbase-env.sh
 +<code>
 +export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
 +</code>
 +
 Edit /usr/local/hbase/conf/hbase-site.xml Edit /usr/local/hbase/conf/hbase-site.xml
 <code xml> <code xml>
Line 85: Line 132:
   <property>   <property>
     <name>hbase.rootdir</name>     <name>hbase.rootdir</name>
-    <value>file:///home/testuser/hbase</value>+    <value>file:///home/hduser/hbase</value>
   </property>   </property>
   <property>   <property>
     <name>hbase.zookeeper.property.dataDir</name>     <name>hbase.zookeeper.property.dataDir</name>
-    <value>/home/testuser/zookeeper</value>+    <value>/home/hduser/zookeeper</value>
   </property>   </property>
 </configuration>    </configuration>   
Line 102: Line 149:
 cd /usr/local/zookeeper cd /usr/local/zookeeper
 bin/zkServer.sh start bin/zkServer.sh start
 +
 +cd /usr/local/hbase
 +bin/start-hbase.sh
 +
 +#start hbase shell
 +./bin/hbase shell
 </code> </code>
  
  
learn/bigdata/install_hadoop_eco_system_single_mode.1408059654.txt.gz · Last modified: (external edit)
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0