How to upgrade Cloudera 5 beta 1 and install beta2
To upgrade Cloudera 5 beta 1 to beta 2 there are two methods. I'm using method B. For guys who cant uninstall, they can give a shot at method A.
A. Upgrade manually ( this is from cloudera forum)
1. Stop All cluster and stop Management
2. Run the below script in all nodes
Now uninstall is complete. Download the latest install bin file from cloudera and install.
PS: Make sure oozie is properly uninstalled. During reinstallation, creating oozie db schema created lot of issues.
To upgrade Cloudera 5 beta 1 to beta 2 there are two methods. I'm using method B. For guys who cant uninstall, they can give a shot at method A.
A. Upgrade manually ( this is from cloudera forum)
- Stop CDH5b1 cluster in CM5b1.
- Stop Cloudera Monitoring Services.
- Upgrade CM to 5b2.
- Start CM
- Upgrade CDH to 5b2 (for packages - manually, for parcels - using CM UI). If upgrading using parcels, DO NOT start the cluster.
- (Only if YARN is present in secure cluster) Goto “Settings” > “Administration”, Select ALL “yarn” principals and hit “Regenerate”. Wait for the “Generate Credentials” command to finish. This is needed because CDH5b2 added the HTTP principal for YARN.
- Start ZooKeeper
- Run HDFS Metadata Upgrade command from HDFS Actions Menu
- Run Oozie Database Upgrade command from Oozie Actions Menu
- Run Oozie Install Sharelib command from Oozie Actions Menu
- Run Upgrade Sqoop command from Sqoop Actions Menu
- Run Upgrade Hive Metastore Database Schema command from Hive Actions Menu
- Start all services
- Deploy Client Configuration for the cluster.
- Start Cloudera Monitoring Services.
1. Stop All cluster and stop Management
2. Run the below script in all nodes
sudo service cloudera-scm-agent hard_stop
echo Y|sudo apt-get purge 'cloudera-manager-*'
sudo apt-get clean
sudo rm -Rf /usr/share/cmf /var/lib/cloudera* /var/cache/yum/cloudera* /var/log/cloudera* /var/run/cloudera*
sudo rm -Rf /var/lib/flume-ng /var/lib/hadoop* /var/lib/hue /var/lib/oozie /var/lib/solr /var/lib/sqoop*
sudo rm -Rf /dfs /mapred /yarn
for u in hdfs mapred cloudera-scm hbase hue zookeeper oozie hive impala flume; do sudo kill $(ps -u $u -o pid=); done
sudo rm /tmp/.scm_prepare_node.lock
Now uninstall is complete. Download the latest install bin file from cloudera and install.
PS: Make sure oozie is properly uninstalled. During reinstallation, creating oozie db schema created lot of issues.
very nice blog good information provide your blog Big Data for telecom
ReplyDelete