We have achieved upgrading the version from
Hadoop 0.20.205.0 to ==> hadoop 1.0.3
Hbase 0.90.4 to ==> hbase 0.94.1
We have followed the following steps and hope it helps
Before upgrading the HDFS make sure existing cluster is working fine and filesystem is Healthy.
1. Stop all client applications running on the MapReduce cluster.
stop-mapred.sh
2. kill any orphaned task process on the TaskTrackers.
3. Perform a filesystem check:
hadoop fsck / -files -blocks -locations dfs-v-old-fsck-1.log
4. Save a complete listing of the HDFS namespace to a local file.
hadoop dfs -lsr / dfs-v-old-lsr-1.log
5. Create a list of DataNodes participating in the cluster.
hadoop dfsadmin -report dfs-v-old-report-1.log.
6. stop and restart HDFS cluster( To create an checkpoint of the old version)
stop-dfs.sh
start-dfs.sh
7. Before stop the dfs take the backup of the Data Directory specified for storing image and other files of the HDFS
(name specified in conf/hdfs-site.xml for <namedfs.data.dir</name property)
8. stop the hdfs cluster.
stop-dfs.sh
After you have installed the new Hadoop version
1. Change the following files to redirect
conf/slaves , conf/masters, conf/core-site.xml , conf/hdfs-site.xml, conf/mapred-site.xml
2. Start the actual HDFS upgrade process.
hadoop-daemon.sh start namenode –upgrade
3. Check the upgrade process status
hadoop dfsadmin -upgradeProgress status this should give you
Upgrade for version –(new version_no) has been completed.
Upgrade is not finalized.
4. Compare the namespace log by taking the new log.
hadoop dfs -lsr / dfs-v-new-lsr-0.log
Compare it with old
5. Perform a filesystem check
hadoop fsck / -files -blocks -locations dfs-v-new-fsck-1.log
and compare it with old
6. Create list of DataNodes participating in the cluster.
hadoop dfsadmin -report dfs-v-old-report-1.log.
and compare it with old
7. Start the HDFS cluster
start-dfs.sh
8. Start the MapReduce cluster
start-mapred.sh
9. Finalize the upgrade
hadoop dfsadmin –finalizeUpgrade
Hadoop 0.20.205.0 to ==> hadoop 1.0.3
Hbase 0.90.4 to ==> hbase 0.94.1
We have followed the following steps and hope it helps
Before upgrading the HDFS make sure existing cluster is working fine and filesystem is Healthy.
1. Stop all client applications running on the MapReduce cluster.
stop-mapred.sh
2. kill any orphaned task process on the TaskTrackers.
3. Perform a filesystem check:
hadoop fsck / -files -blocks -locations dfs-v-old-fsck-1.log
4. Save a complete listing of the HDFS namespace to a local file.
hadoop dfs -lsr / dfs-v-old-lsr-1.log
5. Create a list of DataNodes participating in the cluster.
hadoop dfsadmin -report dfs-v-old-report-1.log.
6. stop and restart HDFS cluster( To create an checkpoint of the old version)
stop-dfs.sh
start-dfs.sh
7. Before stop the dfs take the backup of the Data Directory specified for storing image and other files of the HDFS
(name specified in conf/hdfs-site.xml for <namedfs.data.dir</name property)
8. stop the hdfs cluster.
stop-dfs.sh
After you have installed the new Hadoop version
1. Change the following files to redirect
conf/slaves , conf/masters, conf/core-site.xml , conf/hdfs-site.xml, conf/mapred-site.xml
2. Start the actual HDFS upgrade process.
hadoop-daemon.sh start namenode –upgrade
3. Check the upgrade process status
hadoop dfsadmin -upgradeProgress status this should give you
Upgrade for version –(new version_no) has been completed.
Upgrade is not finalized.
4. Compare the namespace log by taking the new log.
hadoop dfs -lsr / dfs-v-new-lsr-0.log
Compare it with old
5. Perform a filesystem check
hadoop fsck / -files -blocks -locations dfs-v-new-fsck-1.log
and compare it with old
6. Create list of DataNodes participating in the cluster.
hadoop dfsadmin -report dfs-v-old-report-1.log.
and compare it with old
7. Start the HDFS cluster
start-dfs.sh
8. Start the MapReduce cluster
start-mapred.sh
9. Finalize the upgrade
hadoop dfsadmin –finalizeUpgrade
Apart from learning more about Hadoop at hadoop online training, this blog adds to my learning platforms. Great work done by the webmasters. Thanks for your research and experience sharing on a platform like this.
ReplyDeleteThanks for your comments
DeleteGreat explanation to given on this post and i read our full content was really amazing,then the this more important in my part of life.
ReplyDeleteSalesforce Training in Chennai
Salesforce Online Training in Chennai
Salesforce Training in Bangalore
Salesforce Training in Hyderabad
Salesforce training in ameerpet
Salesforce Training in Pune
Salesforce Online Training
Salesforce Training
Casino No Deposit - DrmCD
ReplyDeletePlay slots 태백 출장마사지 online and win real money with no deposit required! Free spins for real money ✓ Always updated 군산 출장안마 ✓ 전라북도 출장마사지 No spammy 강릉 출장마사지 pop-up ads. Rating: 4 화성 출장안마 · 12 votes