hdp2.1到2.2升级rhel6

tag5nh1u  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(450)

我在red hat linux enterprise 6上有一个具有1个namenode和4个DataNode的集群。我的hdp版本是2.1。ambari的版本是1.7,但我把它升级到了2.1。我想把hdp升级到2.2版本。我读到如果我想把hdp从2.1升级到2.2,我必须在ambari升级到2.1之前完成。当我升级hdp到2.2ambari没有看到任何变化,一切都不工作。我正在使用此教程:http://docs.hortonworks.com/hdpdocuments/hdp2/hdp-2.2.0/hdp_man_upgrade_v22/index.html#item1
我该怎么做?我试着把ambari降到1.7,但是我犯了很多错误。如果我现在尝试将hdp升级到2.2,然后将ambari从2.1升级到2.1.1呢。行吗?问题是我的时间很少。先谢谢你

hxzsmxv2

hxzsmxv21#

我正在开发/测试集群上从hdp-2.0/hadoop-2.2升级到hdp-2.2/hadoop-2.6(可能是暂时的,在升级到hdp-2.3的途中)。到目前为止,我已经得到了更新的hdfs和运行。尚未通过ambari启动/停止hdfs,也未运行Yarn。更新:在找到hdp-2.2文档(下面添加了当前链接)之后,我得到了yarn、mapreduce和hive来运行。
以下是我关于如何走到这一步的粗略记录:
升级ambari-1.4至1.7
在每个节点上更新hdp-yum-repo文件并用yum(cssh)更新http://public-repo-1.hortonworks.com/hdp/centos6/2.x/updates/2.2.6.0/hdp.repo
hdp选择
sudo su-l hdfs-c“/usr/hdp/current/hadoop client/sbin/hadoop-daemon.sh start namenode-升级”
/etc/hadoop/conf.empty/core-site.xml.rpmsave、hdfs-site.xml
sudo su-l hdfs-c“/usr/hdp/current/hadoop hdfs datanode/。/hadoop/sbin/hadoop-daemon.sh start datanode”
hadoop dfsadmin-终结升级
[更新]
升级ambari-1.7至2.1
配置yarn&mapreduce-yarn-site.xml、yarn env.sh[?]、container-executor.cfg、mapred-site.xml
sudo ln-s/usr/hdp/2.2.6.0-2800/hadoop/libexec//usr/lib/hadoop/#ambari/usr/lib/hadoop
停止启动resourcemanager,启动NodeManager
conf.dist和conf.server中的hive-site.xml;手动启动
以下资源很有用:https://cwiki.apache.org/confluence/display/ambari/install+ambari+1.7.0+from+public+repositories
https://developer.ibm.com/hadoop/blog/2015/10/08/back-up-and-restore-ambari-server-postgresql-database/
http://docs.hortonworks.com/hdpdocuments/ambari-2.1.0.0/bk_installing_hdp_amb/content/_hdp_stack_repositories.html
http://docs.hortonworks.com/hdpdocuments/ambari-2.1.0.0/bk_upgrading_ambari/content/_upgrade_hdfs_mamiu.html
https://wiki.apache.org/hadoop/hadoop_upgrade
http://docs.hortonworks.com/hdpdocuments/ambari-2.1.0.0/bk_upgrading_ambari/content/_complt_upgrd_21-23_upgrade_hdfs.html
http://solaimurugan.blogspot.com/2014/11/upgrade-hadoop-with-latest-version.html
https://cwiki.apache.org/confluence/display/ambari/install+ambari+2.0.2+from+public+repositories
[更新]
http://docs.hortonworks.com/hdpdocuments/hdp2/hdp-2.2.0/bk_upgrading_hdp_manually/content/index.html
http://docs.hortonworks.com/hdpdocuments/hdp2/hdp-2.2.0/bk_upgrading_hdp_manually/content/configure-yarn-mr-21.html
http://docs.hortonworks.com/hdpdocuments/hdp2/hdp-2.2.0/bk_upgrading_hdp_manually/content/start-hive-hcat-21.html
https://brucebcampbell.wordpress.com/2014/12/11/hortonworks-fix-missing-jar-error-in-hive-after-upgrade-to-hdp-2-2/

相关问题