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 リポジトリ ファイルを更新し、yum (cssh) で更新します http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.2.6.0/hdp.repo
  3. hdp-select
  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 に答える