Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DA4CB2009F3 for ; Fri, 20 May 2016 22:35:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D929D160A2A; Fri, 20 May 2016 20:35:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DBA32160A25 for ; Fri, 20 May 2016 22:35:52 +0200 (CEST) Received: (qmail 81889 invoked by uid 500); 20 May 2016 20:35:52 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 81403 invoked by uid 99); 20 May 2016 20:35:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2016 20:35:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4496E1A58AB; Fri, 20 May 2016 20:35:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id kEXKue5h38IB; Fri, 20 May 2016 20:35:44 +0000 (UTC) Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id AACA65FABF; Fri, 20 May 2016 20:35:43 +0000 (UTC) Received: by mail-oi0-f46.google.com with SMTP id v145so196818906oie.0; Fri, 20 May 2016 13:35:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=qi5ObFcsfRx4cJruvzh2/Bunx3JkZ3k6Ck0+SeZsNvw=; b=FlCjssj9IqO1H9mh/1Ye7sh2WwTE8hyQpHnV0Lq/40Ob/c446zlj7Z24icG+eEgo0l aUg0k7ckkCSz6MK2jfT+NeDVYkh+wZ/dYVWe3fvAcLOw1CAE4KwoA2Zx3ldxS7VEzdtB Zd1vIilZ8DtifA7n+zpdQoWkYy1wIiF51fym7JHlSHWoSHXBf/vlHgugOAziadO8AOxV Uj6K4bqppWiTwV41zFSnPdEAGlGogslFmEl4B/01jhf9LpNJxZUsYzRQbEM/ZxVorZSD dyMbUIdh38B8kG9Ygh/G6OEQxEK2KlMLxSS2e47Bs5a+Z68XulZD+pHaeBggpAEjTVnA x1Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=qi5ObFcsfRx4cJruvzh2/Bunx3JkZ3k6Ck0+SeZsNvw=; b=kDlLZvzZrNdEOSbFTOzHp1lkpJYh/9rGmDEhx9K1bF5SfTk4gVO0fz+mB661aDU0Ic GPm75jvw57ZWi9f0+pUmg+hSF/y6UwZNAHzovfcZ8pNhQH5kg1XDP3Gir/aAbmnx9DkZ 36RxyYR2Gv8FGyKy9Dk2pjm361ruJV/Tmo/Lr1a2cH7s5nHLafLnTzRHIn/i6kESC5Fy faOFf4xHU0rfuqVmEbe1gQl3d6JMtausIpagrlBLu1mJBbWE/Vh4UmZkslzJDSa+0ppa cEHA22kYxuk0g4Hn3Kn5XrwXIRaD80SBjr0NZf4kp3jWwy93CfswFO5znBA3CCEJrx8O NJYg== X-Gm-Message-State: AOPr4FXdRInrCGyALrug6kiHLt8pUYkY3qUYMLQOW1PU6IpHuwlcJJh9V3Jr6/KaY6gmmnHtI8JOQGCEsyxYgQ== MIME-Version: 1.0 X-Received: by 10.157.36.80 with SMTP id p74mr3054995ota.69.1463776542407; Fri, 20 May 2016 13:35:42 -0700 (PDT) Received: by 10.157.52.202 with HTTP; Fri, 20 May 2016 13:35:42 -0700 (PDT) In-Reply-To: References: <80A6B080-BDFE-4402-B34F-35962A33A7ED@hortonworks.com> <87BBBDD6-089A-41D3-BEFC-08D8DAAD9729@hortonworks.com> Date: Fri, 20 May 2016 13:35:42 -0700 Message-ID: Subject: Re: HDP upgrade failed on Finalize Upgrade Pre-Check using ambari. From: Anandha L Ranganathan To: Alejandro Fernandez Cc: "user@ambari.apache.org" , "dev@ambari.apache.org" Content-Type: multipart/alternative; boundary=001a113cab24d7420a05334c088c archived-at: Fri, 20 May 2016 20:35:54 -0000 --001a113cab24d7420a05334c088c Content-Type: text/plain; charset=UTF-8 I followed all the steps explained in the steps in the provided link. I could see the latest version updated in the ambari DB. Finally found that HDFS_Client is not installed (somehow got deleted and not sure how? ) on the ZK hosts. After re-installing everything started working fine. Thanks everyone for your help. On Fri, May 20, 2016 at 11:21 AM, Alejandro Fernandez < afernandez@hortonworks.com> wrote: > Hi Anandha, > > Which version of Ambari are you on? > If it's 2.2.0 or higher, you may find a button to "Pause" the upgrade and > restart ZK on your own. > > On all of the ZK hosts, make sure to run this, > hdp-select set zookeeper-server > > If ZK is actually started but Ambari doesn't recognize that it's on the > newer version, and it's the only component that's not yet on the newer > version, > then you can modify the database. > Take a look at > https://community.hortonworks.com/articles/29499/ambari-troubleshooting-a-r > olling-or-express-upgrad.html > You may have to update the host_version and cluster_version tables to > change the state from UPGRADING to UPGRADED. > > Thanks, > Alejandro > > On 5/20/16, 7:59 AM, "Anandha L Ranganathan" > wrote: > > >The zookeeper services are running on the host machine. but I could not > >restart the service from the Ambari UI. > > > > Here are further information. > > > > > >Process_id information. > > > > > > > >[root@usw2dxdpzo01 ~]# ps -ef |grep zoo > >501 2759 1 0 May19 ? 00:01:41 /usr/java/default/bin/java > >-Dzookeeper.log.dir=/var/log/zookeeper > >-Dzookeeper.log.file=zookeeper-zookeeper-server-usw2dxdpzo01.glassdoor.loc > >al.log > >-Dzookeeper.root.logger=INFO,ROLLINGFILE -cp > >/usr/hdp/2.4.0.0-169//zookeeper/bin/../build/classes:/usr/hdp/2.4.0.0-169/ > >/zookeeper/bin/../build/lib/*.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../l > >ib/xercesMinimal-1.9.6.2.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/wa > >gon-provider-api-2.4.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/wagon- > >http-shared4-2.4.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/wagon-http > >-shared-1.0-beta-6.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/wagon-ht > >tp-lightweight-1.0-beta-6.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/w > >agon-http-2.4.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/wagon-file-1. > >0-beta-6.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/slf4j-log4j12-1.6. > >1.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/slf4j-api-1.6.1.jar:/usr/ > >hdp/2.4.0.0-169//zookeeper/bin/../lib/plexus-utils-3.0.8.jar:/usr/hdp/2.4. > >0.0-169//zookeeper/bin/../lib/plexus-interpolation-1.11.jar:/usr/hdp/2.4.0 > >.0-169//zookeeper/bin/../lib/plexus-container-default-1.0-alpha-9-stable-1 > >.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/netty-3.7.0.Final.jar:/usr > >/hdp/2.4.0.0-169//zookeeper/bin/../lib/nekohtml-1.9.6.2.jar:/usr/hdp/2.4.0 > >.0-169//zookeeper/bin/../lib/maven-settings-2.2.1.jar:/usr/hdp/2.4.0.0-169 > >//zookeeper/bin/../lib/maven-repository-metadata-2.2.1.jar:/usr/hdp/ > 2.4.0. > >0-169//zookeeper/bin/../lib/maven-project-2.2.1.jar:/usr/hdp/2.4.0.0-169// > >zookeeper/bin/../lib/maven-profile-2.2.1.jar:/usr/hdp/2.4.0.0-169//zookeep > >er/bin/../lib/maven-plugin-registry-2.2.1.jar:/usr/hdp/2.4.0.0-169//zookee > >per/bin/../lib/maven-model-2.2.1.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/. > >./lib/maven-error-diagnostics-2.2.1.jar:/usr/hdp/2.4.0.0-169//zookeeper/bi > >n/../lib/maven-artifact-manager-2.2.1.jar:/usr/hdp/2.4.0.0-169//zookeeper/ > >bin/../lib/maven-artifact-2.2.1.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/.. > >/lib/maven-ant-tasks-2.1.3.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/ > >log4j-1.2.16.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/jsoup-1.7.1.ja > >r:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/jline-0.9.94.jar:/usr/hdp/2.4 > >.0.0-169//zookeeper/bin/../lib/httpcore-4.2.3.jar:/usr/hdp/2.4.0.0-169//zo > >okeeper/bin/../lib/httpclient-4.2.3.jar:/usr/hdp/2.4.0.0-169//zookeeper/bi > >n/../lib/commons-logging-1.1.1.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../ > >lib/commons-io-2.2.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/commons- > >codec-1.6.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/classworlds-1.1-a > >lpha-2.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/backport-util-concur > >rent-3.1.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/ant-launcher-1.8.0 > >.jar:/usr/hdp/2.4.0.0-169//zookeeper/bin/../lib/ant-1.8.0.jar:/usr/hdp/2.4 > >.0.0-169//zookeeper/bin/../zookeeper-3.4.6.2.4.0.0-169.jar:/usr/hdp/ > 2.4.0. > >0-169//zookeeper/bin/../src/java/lib/*.jar:/usr/hdp/2.4.0.0-169//zookeeper > >/conf::/usr/hdp/2.4.0.0-169//zookeeper/conf:/usr/hdp/2.4.0.0-169//zookeepe > >r/*:/usr/hdp/2.4.0.0-169//zookeeper/lib/*:/usr/share/zookeeper/* > >-Xmx1024m -Dzookeeper.log.threshold=INFO -Dcom.sun.management.jmxremote > >-Dcom.sun.management.jmxremote.local.only=false > >org.apache.zookeeper.server.quorum.QuorumPeerMain > >/usr/hdp/2.4.0.0-169//zookeeper/conf/zoo.cfg > > > > > >This is the output from restart log using ambari. > > > >2016-05-20 14:31:30,685 - User['hdfs'] {'fetch_nonlocal_groups': True, > >'groups': ['hadoop', 'hdfs']} > >2016-05-20 14:31:30,686 - Directory['/etc/hadoop'] {'mode': 0755} > >2016-05-20 14:31:30,686 - > >Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': > >'hdfs', 'group': 'hadoop', 'mode': 0777} > >2016-05-20 14:31:30,696 - Execute[('setenforce', '0')] {'not_if': '(! > >which getenforce ) || (which getenforce && getenforce | grep -q > >Disabled)', 'sudo': True, 'only_if': 'test -f /selinux/enforce'} > >2016-05-20 14:31:30,709 - Directory['/var/log/hadoop'] {'owner': > >'root', 'mode': 0775, 'group': 'hadoop', 'recursive': True, > >'cd_access': 'a'} > >2016-05-20 14:31:30,710 - Directory['/var/run/hadoop'] {'owner': > >'root', 'group': 'root', 'recursive': True, 'cd_access': 'a'} > >2016-05-20 14:31:30,710 - Directory['/tmp/hadoop-hdfs'] {'owner': > >'hdfs', 'recursive': True, 'cd_access': 'a'} > >2016-05-20 14:31:30,711 - Directory['/etc/hadoop/conf'] {'owner': > >'hdfs', 'group': 'hadoop', 'recursive': True} > >2016-05-20 14:31:30,711 - Creating directory > >Directory['/etc/hadoop/conf'] since it doesn't exist. > >2016-05-20 14:31:30,711 - Following the link /etc/hadoop/conf to > >/usr/hdp/current/hadoop-client/conf to create the directory > >Error: Error: Unable to run the custom hook script ['/usr/bin/python', > >'/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/h > >ook.py', > >'START', '/var/lib/ambari-agent/data/command-3206.json', > >'/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START', > >'/var/lib/ambari-agent/data/structured-out-3206.json', 'INFO', > >'/var/lib/ambari-agent/tmp'] > > > > > > > > > > > > > > > >On Thu, May 19, 2016 at 9:17 PM, Anandha L Ranganathan < > >analog.sony@gmail.com> wrote: > > > >> Thanks Nate. It helps. > >> > >> I haven't changed anything in the database. I just first tried with > >> ambari-server restart After the restart, I tried again with finalize > >> pre-check and all the errors are gone. > >> > >> > >> > >> On Wed, May 18, 2016 at 6:03 PM, Nate Cole > >>wrote: > >> > >>> Those steps look correct. It is always good practice to backup your > >>> database before trying anything directly against it. > >>> > >>> > >>> > >>> You should not lose information from an Ambari restart. > >>> > >>> > >>> > >>> Thanks > >>> > >>> > >>> > >>> *From: *Anandha L Ranganathan > >>> *Reply-To: *"user@ambari.apache.org" > >>> *Date: *Wednesday, May 18, 2016 at 7:28 PM > >>> *To: *"user@ambari.apache.org" > >>> *Cc: *"dev@ambari.apache.org" > >>> > >>> *Subject: *Re: HDP upgrade failed on Finalize Upgrade Pre-Check using > >>> ambari. > >>> > >>> > >>> > >>> Thanks Nate for quick reply. > >>> > >>> I actually found that in the host_component table , it is still > >>>referring > >>> to old version. > >>> > >>> 2 > >>> > >>> SPARK_CLIENT > >>> > >>> 2.2.6.0-2800 > >>> > >>> 5 > >>> > >>> INSTALLED > >>> > >>> 3 > >>> > >>> SPARK > >>> > >>> NONE > >>> > >>> UNKNOWN > >>> > >>> 35 > >>> > >>> 2 > >>> > >>> SPARK_JOBHISTORYSERVER > >>> > >>> 2.2.6.0-2800 > >>> > >>> 5 > >>> > >>> STARTED > >>> > >>> 6 > >>> > >>> SPARK > >>> > >>> NONE > >>> > >>> UNKNOWN > >>> > >>> 17 > >>> > >>> 2 > >>> > >>> ZOOKEEPER_SERVER > >>> > >>> 2.2.6.0-2800 > >>> > >>> 5 > >>> > >>> INSTALLED > >>> > >>> 154 > >>> > >>> ZOOKEEPER > >>> > >>> NONE > >>> > >>> UNSECURED > >>> > >>> 78 > >>> > >>> 2 > >>> > >>> ZOOKEEPER_SERVER > >>> > >>> 2.2.6.0-2800 > >>> > >>> 5 > >>> > >>> STARTED > >>> > >>> 155 > >>> > >>> ZOOKEEPER > >>> > >>> NONE > >>> > >>> UNSECURED > >>> > >>> 83 > >>> > >>> > >>> > >>> Can you confirm these are steps I need to take care. > >>> > >>> > >>> > >>> 1) Update version to latest for the component in the table and commit > >>>it. > >>> > >>> 2) Restart the ambari-server. > >>> > >>> 3) Continue the upgrade process with retry option. > >>> > >>> During the ambari-server restart, just want to confirm will I loose any > >>> information or ambari maintains all the state information in the > >>>table ? > >>> > >>> Thanks > >>> > >>> Anand > >>> > >>> > >>> > >>> > >>> > >>> On Wed, May 18, 2016 at 3:04 PM, Nate Cole > >>>wrote: > >>> > >>> Are all the services running on the correct version? If that is the > >>> case, you can set the actual version in the hostcomponentstate table. > >>>If > >>> you then restart Ambari, you should be able to retry the step and see > >>>if it > >>> succeeds. > >>> > >>> > >>> > >>> Thanks > >>> > >>> *From: *Anandha L Ranganathan > >>> *Reply-To: *"user@ambari.apache.org" > >>> *Date: *Wednesday, May 18, 2016 at 5:05 PM > >>> *To: *"user@ambari.apache.org" , " > >>> dev@ambari.apache.org" > >>> *Subject: *Re: HDP upgrade failed on Finalize Upgrade Pre-Check using > >>> ambari. > >>> > >>> > >>> > >>> I also verified that in one of the node and it is pointing to 2.4 > >>> version. > >>> > >>> [root@usw2dxdpzo01 ~]# ls -lrt /usr/hdp/current/zookeeper-client > >>> lrwxrwxrwx. 1 root root 30 May 18 15:42 > >>>/usr/hdp/current/zookeeper-client > >>> -> /usr/hdp/2.4.0.0-169/zookeeper > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> On Wed, May 18, 2016 at 9:44 AM, Anandha L Ranganathan < > >>> analog.sony@gmail.com> wrote: > >>> > >>> Hi, > >>> > >>> I created the test cluster and trying to upgrade HDP 2.4 During the > >>> upgrade it failed. > >>> > >>> > >>> > >>> Steps to upgrade the HDP. > >>> > >>> Ambari upgrade - ambari-2.1.0 => ambari-2.2.1.0 > >>> HDP upgrade - HDP 2.2.6 => HDP 2.4.0.0 > >>> > >>> > >>> > >>> During the upgrade I had one issues. forgot to turn-off the JMX port > >>> and during the upgrade I commented that out and it went through fine. > >>> I > >>> have total 15 instances for this test cluster and it is failed to > >>>upgrade 7 > >>> instances. > >>> > >>> But in the final steps, "Finalize Upgrade Pre-Check > >>> " it is throwing error. It didn't give any > >>> information in the log to debug the issue. Also it is not giving an > >>>option > >>> to proceed further. Is there any workaround for this ? The upgrade > >>>process > >>> is completed with 97% and could't proceed further. > >>> > >>> 1. The following components were found to have version mismatches. > >>>Finalize will not complete successfully: > >>> > >>> 2. usw2dxdpgw01: SPARK/SPARK_CLIENT reports 2.2.6.0-2800 > >>> > >>> 3. usw2dxdpma03: SPARK/SPARK_JOBHISTORYSERVER reports 2.2.6.0-2800 > >>> > >>> 4. usw2dxdpzo01: ZOOKEEPER/ZOOKEEPER_SERVER reports 2.2.6.0-2800 > >>> > >>> 5. usw2dxdpzo02: ZOOKEEPER/ZOOKEEPER_SERVER reports 2.2.6.0-2800 > >>> > >>> 6. usw2dxdpzo03: ZOOKEEPER/ZOOKEEPER_SERVER reports 2.2.6.0-2800 > >>> > >>> 7. usw2dxdpgw01: ZOOKEEPER/ZOOKEEPER_CLIENT reports 2.2.6.0-2800 > >>> > >>> 8. usw2dxdpmn01: ZOOKEEPER/ZOOKEEPER_CLIENT reports 2.2.6.0-2800 > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >> > >> > > --001a113cab24d7420a05334c088c--