hadoop@jatimcom:/opt/hadoop$sudo chown -R hadoop:hadoop hadoop
hadoop@jatimcom:/opt/hadoop$nano /home/konoha/.bashrc
export JAVA_HOME="/opt/jdk1.6.0_23"
exportPATH=${JAVA_HOME}/bin:$PATH
#Add Hadoop bin/ directory to PATH
export PATH=$PATH:$HADOOP_HOME/bin
hadoop@jatimcom:/opt/hadoop/conf$nano core-site.xml
hadoop.tmp.dir
/app/hadoop/tmp
A base for other temporary directories.
fs.default.name
hdfs://localhost:54310
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.
hadoop@jatimcom:/opt/hadoop/conf$ nano hdfs-site.xml
dfs.replication
1
Default block replication.
The actual number of replications can be specified when the file is creat$
The default is used if replication is not specified in create time.
hadoop@jatimcom:/opt/hadoop/conf$ nano mapred-site.xml
mapred.job.tracker
localhost:54311
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.
Format Namenode
hadoop@jatimcom:/opt/hadoop$ bin/hadoop namenode -format
10/05/08 20:59:56 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG: host = ubuntu/127.0.1.1
STARTUP_MSG: args = [-format]
STARTUP_MSG: version = 0.20.2
STARTUP_MSG: build = https://svn[dot]apache[dot]org/repos/asf/hadoop/common/branches/branch-0.20 -r 911707; compiled by 'chrisdo' on Fri Feb 19 08:07:34 UTC 2010
************************************************************/
10/05/08 16:59:56 INFO namenode.FSNamesystem: fsOwner=hduser,hadoop
10/05/08 16:59:56 INFO namenode.FSNamesystem: supergroup=supergroup
10/05/08 16:59:56 INFO namenode.FSNamesystem: isPermissionEnabled=true
10/05/08 16:59:56 INFO common.Storage: Image file of size 96 saved in 0 seconds.
10/05/08 16:59:57 INFO common.Storage: Storage directory .../hadoop-hduser/dfs/name has been successfully formatted.
10/05/08 16:59:57 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at ubuntu/127.0.1.1
************************************************************/
hadoop@jatimcom:/opt/hadoop$ bin/start-all.sh
starting namenode, logging to /opt/hadoop2/logs/hadoop-coba-namenode-jatimcom.out
localhost: starting datanode, logging to /home/konoha/Work2/hadoop-cdh3uo/bin/../logs/hadoop-coba-datanode-jatimcom.out
localhost: starting secondarynamenode, logging to /home/konoha/Work2/hadoop-cdh3uo/bin/../logs/hadoop-coba-secondarynamenode-jatimcom.out
starting jobtracker, logging to /opt/hadoop2/logs/hadoop-coba-jobtracker-jatimcom.out
localhost: starting tasktracker, logging to /home/konoha/Work2/hadoop-cdh3uo/bin/../logs/hadoop-coba-tasktracker-jatimcom.out
hadoop@jatimcom:/opt/hadoop/bin$ jps
5128 SecondaryNameNode
5438 Jps
4731 NameNode
4927 DataNode
5396 TaskTracker
5203 JobTracker
hadoop@jatimcom:/$ netstat -plten | grep java
tcp 0 0 127.0.0.1:56770 0.0.0.0:* LISTEN 1002 429466 13364/java
tcp 0 0 0.0.0.0:50020 0.0.0.0:* LISTEN 1002 429488 12898/java
tcp 0 0 127.0.0.1:54310 0.0.0.0:* LISTEN 1002 427282 12710/java
tcp 0 0 127.0.0.1:54311 0.0.0.0:* LISTEN 1002 428510 13187/java
tcp 0 0 0.0.0.0:50090 0.0.0.0:* LISTEN 1002 428939 13113/java
tcp 0 0 0.0.0.0:50060 0.0.0.0:* LISTEN 1002 429459 13364/java
tcp 0 0 0.0.0.0:50030 0.0.0.0:* LISTEN 1002 429060 13187/java
tcp 0 0 0.0.0.0:57841 0.0.0.0:* LISTEN 1002 427679 12898/java
tcp 0 0 0.0.0.0:39766 0.0.0.0:* LISTEN 1002 428508 13187/java
tcp 0 0 0.0.0.0:50070 0.0.0.0:* LISTEN 1002 427874 12710/java
tcp 0 0 0.0.0.0:53816 0.0.0.0:* LISTEN 1002 427280 12710/java
tcp 0 0 0.0.0.0:50010 0.0.0.0:* LISTEN 1002 428062 12898/java
tcp 0 0 0.0.0.0:50075 0.0.0.0:* LISTEN 1002 428819 12898/java
tcp 0 0 0.0.0.0:41020 0.0.0.0:* LISTEN 1002 428283 13113/java
hadoop@jatimcom:/opt/hadoop/bin$ ./stop-all.sh
stopping jobtracker
localhost: stopping tasktracker
stopping namenode
localhost: stopping datanode
localhost: stopping secondarynamenode
hadoop@jatimcom:/opt/hadoop/bin$
0 comments:
Post a Comment