1

我在 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.2 时,ambari 没有看到任何变化,并且一切都无法正常工作。我正在使用本教程: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,该怎么办?它会起作用吗?问题是我的时间很少。先感谢您

4

1 回答 1

1

我正在开发/测试集群上从 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 运行(当前链接添加在下面)。

以下是我如何做到这一点的粗略笔记:

  1. 将 ambari-1.4 升级到 1.7
  2. 更新每个节点上的 HDP yum repo 文件并使用 yum (cssh) http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.2.6.0/hdp.repo更新
  3. hdp-选择
  4. sudo su -l hdfs -c "/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh start namenode -upgrade"
    /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 -finalizeUpgrade

[更新]

  1. 将 ambari-1.7 升级到 2.1
  2. 配置 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
    stop-start resourcemanager, start nodemanagers
  3. 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/

于 2016-01-29T00:15:17.463 回答