2015-09-10 231 views
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#Item1HDP 2.1到2.2升级RHEL6

我该怎么做?我试图将ambari降级到1.7,但我得到了很多错误。如果我尝试将现在的hdp升级到2.2,然后将我的ambari从2.1升级到2.1.1。它会起作用吗?问题是我没有多少时间。 预先感谢您

+0

链接升级到2.2是404,当我今天尝试访问它,并在自由之路机也无法使用。 –

回答

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每个节点和更新与百胜(CSSH)在yum软件库文件 http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.2.6.0/hdp.repo
  3. HDP-选择
  4. 须藤苏-l HDFS -c “/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh启动NameNode的-upgrade”
    /etc/hadoop/conf.empty/core -site.xml.rpmsave,hdfs-site.xml
    须藤苏-l HDFS -c “/usr/hdp/current/hadoop-hdfs-datanode/../hadoop/sbin/hadoop-daemon.sh启动数据节点”
    的Hadoop dfsadmin -finalizeUpgrade

[更新]

  • 升级ambari-1.7〜2.1
  • 配置纱线&的MapReduce - [?]纱线-site.xml中,yarn-env.sh,容器执行。 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,启动nodemanagers
  • hive-site.xml在conf.dist中& conf。服务器;手动启动
  • 以下资源是有用的: 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/

    +0

    根据我的经验,要启动NameNode,我必须在hadoop-env.sh中更改HADOOP_NAMENODE_OPTS以增加堆大小,例如'-Xmx8192m'。 –