FAQ
How can I cleanly uninstall CDH5 beta 1 and install CDH4?

When I run cloudera-manager-installer.bin (FROM CDH4) it fatal errors in
and tries to download cdh5b1 rpms and not cdh4 rpms.


Here's how I uninstalled:
==================
1. I shutdown all the services (verified the PIDs).
2 Then I ran the /usr/share/cmf/uninstall_cloudera.sh script
2. Then I still had to manually remove a bunch of stuff from every node.
e.g.:
      a. /opt/cloudera/
      b. all the symlinks in /etc/alternatives/ that point to /opt/cloudera
      c. the cdh5 repo files in /etc/yum.repos.d/
      d. all the log directories under /var/log/
          ls -1d /var/log/*|egrep
"cloudera|hadoop|hive|hbase|impala|oozie|solr|sqoop|yarn|zoo"
      e. removed the cloudera-related users cloudera-scm, hdfs, hive, hbase,
mapred, sqoop,

After all that, I still get this when running cloudera-manager-installer.bin

[root@node1 ~]# cat
  /var/log/cloudera-manager-installer/3.install-cloudera-manager-server.log
Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id,
               : refresh-packagekit, security, subscription-manager, tmprepo,
               : verify, versionlock
Updating certificate-based repositories.
Loading support for Red Hat kernel ABI
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package cloudera-manager-server.x86_64 0:5.0.0-0.cm5b1.p0.77.el6 will
be installed
--> Processing Dependency: cloudera-manager-daemons = 5.0.0 for package:
cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64
--> Running transaction check
---> Package cloudera-manager-daemons.x86_64 0:5.0.0-0.cm5b1.p0.77.el6 will
be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
  Package Arch Version Repository
  Size
================================================================================
Installing:
  cloudera-manager-server x86_64 5.0.0-0.cm5b1.p0.77.el6 cloudera-manager
7.7 k
Installing for dependencies:
  cloudera-manager-daemons x86_64 5.0.0-0.cm5b1.p0.77.el6 cloudera-manager
174 M

Transaction Summary
================================================================================
Install 2 Package(s)

Total download size: 174 M
Installed size: 240 M
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 174 M
http://archive.cloudera.com/cm4/redhat/6/x86_64/cm/4/RPMS/x86_64/cloudera-manager-daemons-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm:
[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
http://archive.cloudera.com/cm4/redhat/6/x86_64/cm/4/RPMS/x86_64/cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm:
[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.


Error Downloading Packages:
   cloudera-manager-daemons-5.0.0-0.cm5b1.p0.77.el6.x86_64: failure:
RPMS/x86_64/cloudera-manager-daemons-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm
from cloudera-manager: [Errno 256] No more mirrors to try.
   cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64: failure:
RPMS/x86_64/cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm from
cloudera-manager: [Errno 256] No more mirrors to try.

To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Search Discussions

  • Philip Zeyliger at Nov 20, 2013 at 5:19 pm
    Alan,

    You probably need to look through your yum repo files (/etc/yum.repos.d,
    typically) and make sure there aren't any CDH5 ones remaining in there.

    On Tue, Nov 19, 2013 at 4:12 PM, Alan Miller wrote:


    How can I cleanly uninstall CDH5 beta 1 and install CDH4?

    When I run cloudera-manager-installer.bin (FROM CDH4) it fatal errors in
    and tries to download cdh5b1 rpms and not cdh4 rpms.


    Here's how I uninstalled:
    ==================
    1. I shutdown all the services (verified the PIDs).
    2 Then I ran the /usr/share/cmf/uninstall_cloudera.sh script
    2. Then I still had to manually remove a bunch of stuff from every node.
    e.g.:
    a. /opt/cloudera/
    b. all the symlinks in /etc/alternatives/ that point to /opt/cloudera
    c. the cdh5 repo files in /etc/yum.repos.d/
    d. all the log directories under /var/log/
    ls -1d /var/log/*|egrep
    "cloudera|hadoop|hive|hbase|impala|oozie|solr|sqoop|yarn|zoo"
    e. removed the cloudera-related users cloudera-scm, hdfs, hive,
    hbase, mapred, sqoop,

    After all that, I still get this when running
    cloudera-manager-installer.bin

    [root@node1 ~]# cat
    /var/log/cloudera-manager-installer/3.install-cloudera-manager-server.log
    Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id,
    : refresh-packagekit, security, subscription-manager,
    tmprepo,
    : verify, versionlock
    Updating certificate-based repositories.
    Loading support for Red Hat kernel ABI
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package cloudera-manager-server.x86_64 0:5.0.0-0.cm5b1.p0.77.el6 will
    be installed
    --> Processing Dependency: cloudera-manager-daemons = 5.0.0 for package:
    cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64
    --> Running transaction check
    ---> Package cloudera-manager-daemons.x86_64 0:5.0.0-0.cm5b1.p0.77.el6
    will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved


    ================================================================================
    Package Arch Version Repository
    Size

    ================================================================================
    Installing:
    cloudera-manager-server x86_64 5.0.0-0.cm5b1.p0.77.el6 cloudera-manager
    7.7 k
    Installing for dependencies:
    cloudera-manager-daemons x86_64 5.0.0-0.cm5b1.p0.77.el6 cloudera-manager
    174 M

    Transaction Summary

    ================================================================================
    Install 2 Package(s)

    Total download size: 174 M
    Installed size: 240 M
    Downloading Packages:
    Setting up and reading Presto delta metadata
    Processing delta metadata
    Package(s) data still to download: 174 M

    http://archive.cloudera.com/cm4/redhat/6/x86_64/cm/4/RPMS/x86_64/cloudera-manager-daemons-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm:
    [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
    Trying other mirror.

    http://archive.cloudera.com/cm4/redhat/6/x86_64/cm/4/RPMS/x86_64/cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm:
    [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
    Trying other mirror.


    Error Downloading Packages:
    cloudera-manager-daemons-5.0.0-0.cm5b1.p0.77.el6.x86_64: failure:
    RPMS/x86_64/cloudera-manager-daemons-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm
    from cloudera-manager: [Errno 256] No more mirrors to try.
    cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64: failure:
    RPMS/x86_64/cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm from
    cloudera-manager: [Errno 256] No more mirrors to try.

    To unsubscribe from this group and stop receiving emails from it, send an
    email to scm-users+unsubscribe@cloudera.org.
    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Alan Miller at Nov 20, 2013 at 5:49 pm
    Thanks Philip,

    /etc/yum.repos.d/ was already clean.

    Apparently the problem was that there were packages in /var/cache/yum/

    'yum clean all' didn't remove them (but that's another issue) so I deleted
    them
    manually and running the CDH4 cloudera-manager-installer.bin is working now.

    [root@node1 ~]# ls /var/cache/yum/x86_64/6Workstation/
    cloudera-cdh5 cloudera-manager
    [root@node1 ~]# rm -rf /var/cache/yum/x86_64/6Workstation/cloudera-*

    Alan

    On Wed, Nov 20, 2013 at 9:18 AM, Philip Zeyliger wrote:

    Alan,

    You probably need to look through your yum repo files (/etc/yum.repos.d,
    typically) and make sure there aren't any CDH5 ones remaining in there.

    On Tue, Nov 19, 2013 at 4:12 PM, Alan Miller wrote:


    How can I cleanly uninstall CDH5 beta 1 and install CDH4?

    When I run cloudera-manager-installer.bin (FROM CDH4) it fatal errors in
    and tries to download cdh5b1 rpms and not cdh4 rpms.


    Here's how I uninstalled:
    ==================
    1. I shutdown all the services (verified the PIDs).
    2 Then I ran the /usr/share/cmf/uninstall_cloudera.sh script
    2. Then I still had to manually remove a bunch of stuff from every node.
    e.g.:
    a. /opt/cloudera/
    b. all the symlinks in /etc/alternatives/ that point to /opt/cloudera
    c. the cdh5 repo files in /etc/yum.repos.d/
    d. all the log directories under /var/log/
    ls -1d /var/log/*|egrep
    "cloudera|hadoop|hive|hbase|impala|oozie|solr|sqoop|yarn|zoo"
    e. removed the cloudera-related users cloudera-scm, hdfs, hive,
    hbase, mapred, sqoop,

    After all that, I still get this when running
    cloudera-manager-installer.bin

    [root@node1 ~]# cat
    /var/log/cloudera-manager-installer/3.install-cloudera-manager-server.log
    Loaded plugins: aliases, changelog, downloadonly, kabi, presto,
    product-id,
    : refresh-packagekit, security, subscription-manager,
    tmprepo,
    : verify, versionlock
    Updating certificate-based repositories.
    Loading support for Red Hat kernel ABI
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package cloudera-manager-server.x86_64 0:5.0.0-0.cm5b1.p0.77.el6
    will be installed
    --> Processing Dependency: cloudera-manager-daemons = 5.0.0 for package:
    cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64
    --> Running transaction check
    ---> Package cloudera-manager-daemons.x86_64 0:5.0.0-0.cm5b1.p0.77.el6
    will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved


    ================================================================================
    Package Arch Version Repository
    Size

    ================================================================================
    Installing:
    cloudera-manager-server x86_64 5.0.0-0.cm5b1.p0.77.el6 cloudera-manager
    7.7 k
    Installing for dependencies:
    cloudera-manager-daemons x86_64 5.0.0-0.cm5b1.p0.77.el6 cloudera-manager
    174 M

    Transaction Summary

    ================================================================================
    Install 2 Package(s)

    Total download size: 174 M
    Installed size: 240 M
    Downloading Packages:
    Setting up and reading Presto delta metadata
    Processing delta metadata
    Package(s) data still to download: 174 M

    http://archive.cloudera.com/cm4/redhat/6/x86_64/cm/4/RPMS/x86_64/cloudera-manager-daemons-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm:
    [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
    Trying other mirror.

    http://archive.cloudera.com/cm4/redhat/6/x86_64/cm/4/RPMS/x86_64/cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm:
    [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
    Trying other mirror.


    Error Downloading Packages:
    cloudera-manager-daemons-5.0.0-0.cm5b1.p0.77.el6.x86_64: failure:
    RPMS/x86_64/cloudera-manager-daemons-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm
    from cloudera-manager: [Errno 256] No more mirrors to try.
    cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64: failure:
    RPMS/x86_64/cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm from
    cloudera-manager: [Errno 256] No more mirrors to try.

    To unsubscribe from this group and stop receiving emails from it, send
    an email to scm-users+unsubscribe@cloudera.org.
    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Alan Miller at Nov 20, 2013 at 8:07 pm
    This is all becoming a big mess.

    cloudera-manager-installer.bin did install CDH4 on my nodes BUT
    all the links in /etc/alternatives/ currently point to non-existent
    paths in /opt/cloudera/parcels/CDH-5.0......... instead of the
    paths in /opt/cloudera/parcels/CDH-4.4.........


    Alan

    On Wed, Nov 20, 2013 at 9:49 AM, Alan Miller wrote:

    Thanks Philip,

    /etc/yum.repos.d/ was already clean.

    Apparently the problem was that there were packages in /var/cache/yum/

    'yum clean all' didn't remove them (but that's another issue) so I deleted
    them
    manually and running the CDH4 cloudera-manager-installer.bin is working
    now.

    [root@node1 ~]# ls /var/cache/yum/x86_64/6Workstation/
    cloudera-cdh5 cloudera-manager
    [root@node1 ~]# rm -rf /var/cache/yum/x86_64/6Workstation/cloudera-*

    Alan

    On Wed, Nov 20, 2013 at 9:18 AM, Philip Zeyliger wrote:

    Alan,

    You probably need to look through your yum repo files (/etc/yum.repos.d,
    typically) and make sure there aren't any CDH5 ones remaining in there.

    On Tue, Nov 19, 2013 at 4:12 PM, Alan Miller wrote:


    How can I cleanly uninstall CDH5 beta 1 and install CDH4?

    When I run cloudera-manager-installer.bin (FROM CDH4) it fatal errors in
    and tries to download cdh5b1 rpms and not cdh4 rpms.


    Here's how I uninstalled:
    ==================
    1. I shutdown all the services (verified the PIDs).
    2 Then I ran the /usr/share/cmf/uninstall_cloudera.sh script
    2. Then I still had to manually remove a bunch of stuff from every node.
    e.g.:
    a. /opt/cloudera/
    b. all the symlinks in /etc/alternatives/ that point to
    /opt/cloudera
    c. the cdh5 repo files in /etc/yum.repos.d/
    d. all the log directories under /var/log/
    ls -1d /var/log/*|egrep
    "cloudera|hadoop|hive|hbase|impala|oozie|solr|sqoop|yarn|zoo"
    e. removed the cloudera-related users cloudera-scm, hdfs, hive,
    hbase, mapred, sqoop,

    After all that, I still get this when running
    cloudera-manager-installer.bin

    [root@node1 ~]# cat
    /var/log/cloudera-manager-installer/3.install-cloudera-manager-server.log
    Loaded plugins: aliases, changelog, downloadonly, kabi, presto,
    product-id,
    : refresh-packagekit, security, subscription-manager,
    tmprepo,
    : verify, versionlock
    Updating certificate-based repositories.
    Loading support for Red Hat kernel ABI
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package cloudera-manager-server.x86_64 0:5.0.0-0.cm5b1.p0.77.el6
    will be installed
    --> Processing Dependency: cloudera-manager-daemons = 5.0.0 for package:
    cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64
    --> Running transaction check
    ---> Package cloudera-manager-daemons.x86_64 0:5.0.0-0.cm5b1.p0.77.el6
    will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved


    ================================================================================
    Package Arch Version Repository
    Size

    ================================================================================
    Installing:
    cloudera-manager-server x86_64 5.0.0-0.cm5b1.p0.77.el6
    cloudera-manager 7.7 k
    Installing for dependencies:
    cloudera-manager-daemons x86_64 5.0.0-0.cm5b1.p0.77.el6
    cloudera-manager 174 M

    Transaction Summary

    ================================================================================
    Install 2 Package(s)

    Total download size: 174 M
    Installed size: 240 M
    Downloading Packages:
    Setting up and reading Presto delta metadata
    Processing delta metadata
    Package(s) data still to download: 174 M

    http://archive.cloudera.com/cm4/redhat/6/x86_64/cm/4/RPMS/x86_64/cloudera-manager-daemons-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm:
    [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
    Trying other mirror.

    http://archive.cloudera.com/cm4/redhat/6/x86_64/cm/4/RPMS/x86_64/cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm:
    [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
    Trying other mirror.


    Error Downloading Packages:
    cloudera-manager-daemons-5.0.0-0.cm5b1.p0.77.el6.x86_64: failure:
    RPMS/x86_64/cloudera-manager-daemons-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm
    from cloudera-manager: [Errno 256] No more mirrors to try.
    cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64: failure:
    RPMS/x86_64/cloudera-manager-server-5.0.0-0.cm5b1.p0.77.el6.x86_64.rpm from
    cloudera-manager: [Errno 256] No more mirrors to try.

    To unsubscribe from this group and stop receiving emails from it, send
    an email to scm-users+unsubscribe@cloudera.org.
    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedNov 20, '13 at 12:12a
activeNov 20, '13 at 8:07p
posts4
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Alan Miller: 3 posts Philip Zeyliger: 1 post

People

Translate

site design / logo © 2022 Grokbase