FAQ
Hello,
Looking to use CM to do a CDH install from a mirrored local Yum
repository that has all the CDH RPMs in it.
On the CM install path, if you select the "Matched Repository" radio
option, it tries to go archive.cloudera.com for the RPMs instead of
searching the local repo.
Is the only way to do this by manually overriding and giving it the path
to the local Yum server?

Search Discussions

  • Joey Echeverria at Jan 17, 2013 at 6:15 pm
    Yes, you need to paste in the URL to your local repo.

    -Joey

    On Thu, Jan 17, 2013 at 12:51 PM, Joe Travaglini
    wrote:
    Hello,
    Looking to use CM to do a CDH install from a mirrored local Yum repository
    that has all the CDH RPMs in it.
    On the CM install path, if you select the "Matched Repository" radio
    option, it tries to go archive.cloudera.com for the RPMs instead of
    searching the local repo.
    Is the only way to do this by manually overriding and giving it the path
    to the local Yum server?


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.
  • Joe Travaglini at Jan 17, 2013 at 7:13 pm
    Joey thanks for the quick reply, but please have a look at the following.
    It appears that CM is still trying to go externally to source the RPMs.
    Keep in mind, we've tried this using "matched repo" first, then tried with
    the custom path to our repo. During the rollback it can't delete the
    cloudera-cdh or -cm repos in /etc/yum.repos.d/ because they don't exist (as
    they shouldn't).

    By my estimation it looks like it's still trying to go externally to source
    the RPMs even though an internal local repo was provided. I see nothing in
    the log here that it even searched the local repo.

    /tmp/scm_prepare_node.AapwFUVc
    using SSH_CLIENT to get the SCM hostname: <REDACTED> 30543 22
    opening logging file descriptor****

    *Starting installation script...*

    *Acquiring installation lock...*

    *BEGIN flock 4 *
    *END (0)*****

    *Detecting root privileges...*

    effective UID is 0****

    *Detecting distribution...*

    *BEGIN grep Tikanga /etc/redhat-release *
    *END (1) *
    *BEGIN grep 'CentOS release 5' /etc/redhat-release *
    *END (1) *
    *BEGIN grep Santiago /etc/redhat-release *
    Red Hat Enterprise Linux Server release 6.2 (Santiago)
    *END (0) *
    /etc/redhat-release ==> RHEL 6****

    *Detecting Cloudera Manager Server...*

    *BEGIN host -t PTR *<REDACTED>* *
    52.36.42.10.in-addr.arpa domain name pointer <REDACTED>.
    *END (0) *
    using <REDACTED> as scm server hostname
    *BEGIN ping -c 1 *<REDACTED>
    PING <REDACTED> (<REDACTED>) 56(84) bytes of data.
    64 bytes from <REDACTED> (<REDACTED>): icmp_seq=1 ttl=64 time=0.336 ms

    --- <REDACTED> ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 2ms
    rtt min/avg/max/mdev = 0.336/0.336/0.336/0.000 ms
    *END (0) *
    scm server found****

    *Installing package repositories...*

    validating format of repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo
    installing repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo
    repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo installed
    validating format of repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo
    installing repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo
    repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo installed**
    **

    *Refreshing package metadata...*

    *BEGIN yum clean all *
    Loaded plugins: security
    Cleaning repos: cloudera-cdh4 cloudera-manager <REDACTED>12c hadoop12c
    oel6fid12c
    : vmtools_rhel6x64_<REDACTED>
    Cleaning up Everything
    *END (0) *
    *BEGIN rm -Rf /var/cache/yum/x86_64 *
    *END (0) *
    *BEGIN yum makecache *
    Loaded plugins: security
    http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4.1.2/repodata/repomd.xml:
    [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository:
    cloudera-cdh4. Please verify its path and try again
    *END (1)*****

    *Installing jdk package...*

    *BEGIN yum info jdk *
    Loaded plugins: security
    http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4.1.2/repodata/repomd.xml:
    [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository:
    cloudera-cdh4. Please verify its path and try again
    *END (1) *
    remote package jdk is not available, giving up****

    *Reverting changes...*

    rollback started****

    *Removing package repositories...*

    ls: cannot access /etc/yum.repos.d/cloudera-manager.repo.~*~*: No such file
    or directory *
    repository file /etc/yum.repos.d/cloudera-manager.repo removed
    ls: cannot access /etc/yum.repos.d/cloudera-cdh4.repo.~*~: *No such file or
    directory *
    repository file /etc/yum.repos.d/cloudera-cdh4.repo removed****

    *Cleaning the package manager cache...*

    *BEGIN yum clean all *
    Loaded plugins: security
    Cleaning repos: <REDACTED>12c hadoop12c oel6fid12c vmtools_rhel6x64_fid12c
    Cleaning up Everything
    *END (0) *
    *BEGIN rm -Rf /var/cache/yum/x86_64 *
    *END (0)*****

    *Uninstalled.*

    rollback completed
    closing logging file descriptor

    On Thu, Jan 17, 2013 at 1:07 PM, Joey Echeverria wrote:

    Yes, you need to paste in the URL to your local repo.

    -Joey

    On Thu, Jan 17, 2013 at 12:51 PM, Joe Travaglini
    wrote:
    Hello,
    Looking to use CM to do a CDH install from a mirrored local Yum
    repository
    that has all the CDH RPMs in it.
    On the CM install path, if you select the "Matched Repository" radio
    option, it tries to go archive.cloudera.com for the RPMs instead of
    searching the local repo.
    Is the only way to do this by manually overriding and giving it the path
    to the local Yum server?


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.
  • Joey Echeverria at Jan 17, 2013 at 7:24 pm
    Hrm. That's very odd. Are you sure that you're pasting in both local
    repos (one for CM and one for CDH)?

    -Joey

    On Thu, Jan 17, 2013 at 1:50 PM, Joe Travaglini
    wrote:
    Joey thanks for the quick reply, but please have a look at the following.
    It appears that CM is still trying to go externally to source the RPMs.
    Keep in mind, we've tried this using "matched repo" first, then tried with
    the custom path to our repo. During the rollback it can't delete the
    cloudera-cdh or -cm repos in /etc/yum.repos.d/ because they don't exist (as
    they shouldn't).

    By my estimation it looks like it's still trying to go externally to source
    the RPMs even though an internal local repo was provided. I see nothing in
    the log here that it even searched the local repo.

    /tmp/scm_prepare_node.AapwFUVc
    using SSH_CLIENT to get the SCM hostname: <REDACTED> 30543 22
    opening logging file descriptor

    Starting installation script...

    Acquiring installation lock...

    BEGIN flock 4
    END (0)

    Detecting root privileges...

    effective UID is 0

    Detecting distribution...

    BEGIN grep Tikanga /etc/redhat-release
    END (1)
    BEGIN grep 'CentOS release 5' /etc/redhat-release
    END (1)
    BEGIN grep Santiago /etc/redhat-release
    Red Hat Enterprise Linux Server release 6.2 (Santiago)
    END (0)
    /etc/redhat-release ==> RHEL 6

    Detecting Cloudera Manager Server...

    BEGIN host -t PTR <REDACTED>
    52.36.42.10.in-addr.arpa domain name pointer <REDACTED>.
    END (0)
    using <REDACTED> as scm server hostname
    BEGIN ping -c 1 <REDACTED>
    PING <REDACTED> (<REDACTED>) 56(84) bytes of data.
    64 bytes from <REDACTED> (<REDACTED>): icmp_seq=1 ttl=64 time=0.336 ms

    --- <REDACTED> ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 2ms
    rtt min/avg/max/mdev = 0.336/0.336/0.336/0.000 ms
    END (0)
    scm server found

    Installing package repositories...

    validating format of repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo
    installing repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo
    repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo installed
    validating format of repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo
    installing repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo
    repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo installed

    Refreshing package metadata...

    BEGIN yum clean all
    Loaded plugins: security
    Cleaning repos: cloudera-cdh4 cloudera-manager <REDACTED>12c hadoop12c
    oel6fid12c
    : vmtools_rhel6x64_<REDACTED>
    Cleaning up Everything
    END (0)
    BEGIN rm -Rf /var/cache/yum/x86_64
    END (0)
    BEGIN yum makecache
    Loaded plugins: security
    http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4.1.2/repodata/repomd.xml:
    [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository:
    cloudera-cdh4. Please verify its path and try again
    END (1)

    Installing jdk package...

    BEGIN yum info jdk
    Loaded plugins: security
    http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4.1.2/repodata/repomd.xml:
    [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository:
    cloudera-cdh4. Please verify its path and try again
    END (1)
    remote package jdk is not available, giving up

    Reverting changes...

    rollback started

    Removing package repositories...

    ls: cannot access /etc/yum.repos.d/cloudera-manager.repo.~*~: No such file
    or directory
    repository file /etc/yum.repos.d/cloudera-manager.repo removed
    ls: cannot access /etc/yum.repos.d/cloudera-cdh4.repo.~*~: No such file or
    directory
    repository file /etc/yum.repos.d/cloudera-cdh4.repo removed

    Cleaning the package manager cache...

    BEGIN yum clean all
    Loaded plugins: security
    Cleaning repos: <REDACTED>12c hadoop12c oel6fid12c vmtools_rhel6x64_fid12c
    Cleaning up Everything
    END (0)
    BEGIN rm -Rf /var/cache/yum/x86_64
    END (0)

    Uninstalled.

    rollback completed
    closing logging file descriptor


    On Thu, Jan 17, 2013 at 1:07 PM, Joey Echeverria wrote:

    Yes, you need to paste in the URL to your local repo.

    -Joey

    On Thu, Jan 17, 2013 at 12:51 PM, Joe Travaglini
    wrote:
    Hello,
    Looking to use CM to do a CDH install from a mirrored local Yum
    repository
    that has all the CDH RPMs in it.
    On the CM install path, if you select the "Matched Repository" radio
    option, it tries to go archive.cloudera.com for the RPMs instead of
    searching the local repo.
    Is the only way to do this by manually overriding and giving it the
    path
    to the local Yum server?


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.
  • Joe Travaglini at Jan 17, 2013 at 9:18 pm
    That was it Joey, we forgot one of the two. It's working now. Thanks all!

    On Thu, Jan 17, 2013 at 2:24 PM, Joey Echeverria wrote:

    Hrm. That's very odd. Are you sure that you're pasting in both local
    repos (one for CM and one for CDH)?

    -Joey

    On Thu, Jan 17, 2013 at 1:50 PM, Joe Travaglini
    wrote:
    Joey thanks for the quick reply, but please have a look at the following.
    It appears that CM is still trying to go externally to source the RPMs.
    Keep in mind, we've tried this using "matched repo" first, then tried with
    the custom path to our repo. During the rollback it can't delete the
    cloudera-cdh or -cm repos in /etc/yum.repos.d/ because they don't exist (as
    they shouldn't).

    By my estimation it looks like it's still trying to go externally to source
    the RPMs even though an internal local repo was provided. I see nothing in
    the log here that it even searched the local repo.

    /tmp/scm_prepare_node.AapwFUVc
    using SSH_CLIENT to get the SCM hostname: <REDACTED> 30543 22
    opening logging file descriptor

    Starting installation script...

    Acquiring installation lock...

    BEGIN flock 4
    END (0)

    Detecting root privileges...

    effective UID is 0

    Detecting distribution...

    BEGIN grep Tikanga /etc/redhat-release
    END (1)
    BEGIN grep 'CentOS release 5' /etc/redhat-release
    END (1)
    BEGIN grep Santiago /etc/redhat-release
    Red Hat Enterprise Linux Server release 6.2 (Santiago)
    END (0)
    /etc/redhat-release ==> RHEL 6

    Detecting Cloudera Manager Server...

    BEGIN host -t PTR <REDACTED>
    52.36.42.10.in-addr.arpa domain name pointer <REDACTED>.
    END (0)
    using <REDACTED> as scm server hostname
    BEGIN ping -c 1 <REDACTED>
    PING <REDACTED> (<REDACTED>) 56(84) bytes of data.
    64 bytes from <REDACTED> (<REDACTED>): icmp_seq=1 ttl=64 time=0.336 ms

    --- <REDACTED> ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 2ms
    rtt min/avg/max/mdev = 0.336/0.336/0.336/0.000 ms
    END (0)
    scm server found

    Installing package repositories...

    validating format of repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo
    installing repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo
    repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo installed
    validating format of repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo
    installing repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo
    repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo installed
    Refreshing package metadata...

    BEGIN yum clean all
    Loaded plugins: security
    Cleaning repos: cloudera-cdh4 cloudera-manager <REDACTED>12c hadoop12c
    oel6fid12c
    : vmtools_rhel6x64_<REDACTED>
    Cleaning up Everything
    END (0)
    BEGIN rm -Rf /var/cache/yum/x86_64
    END (0)
    BEGIN yum makecache
    Loaded plugins: security
    http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4.1.2/repodata/repomd.xml
    :
    [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository:
    cloudera-cdh4. Please verify its path and try again
    END (1)

    Installing jdk package...

    BEGIN yum info jdk
    Loaded plugins: security
    http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4.1.2/repodata/repomd.xml
    :
    [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository:
    cloudera-cdh4. Please verify its path and try again
    END (1)
    remote package jdk is not available, giving up

    Reverting changes...

    rollback started

    Removing package repositories...

    ls: cannot access /etc/yum.repos.d/cloudera-manager.repo.~*~: No such file
    or directory
    repository file /etc/yum.repos.d/cloudera-manager.repo removed
    ls: cannot access /etc/yum.repos.d/cloudera-cdh4.repo.~*~: No such file or
    directory
    repository file /etc/yum.repos.d/cloudera-cdh4.repo removed

    Cleaning the package manager cache...

    BEGIN yum clean all
    Loaded plugins: security
    Cleaning repos: <REDACTED>12c hadoop12c oel6fid12c
    vmtools_rhel6x64_fid12c
    Cleaning up Everything
    END (0)
    BEGIN rm -Rf /var/cache/yum/x86_64
    END (0)

    Uninstalled.

    rollback completed
    closing logging file descriptor


    On Thu, Jan 17, 2013 at 1:07 PM, Joey Echeverria wrote:

    Yes, you need to paste in the URL to your local repo.

    -Joey

    On Thu, Jan 17, 2013 at 12:51 PM, Joe Travaglini
    wrote:
    Hello,
    Looking to use CM to do a CDH install from a mirrored local Yum
    repository
    that has all the CDH RPMs in it.
    On the CM install path, if you select the "Matched Repository" radio
    option, it tries to go archive.cloudera.com for the RPMs instead of
    searching the local repo.
    Is the only way to do this by manually overriding and giving it the
    path
    to the local Yum server?


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.
  • 汪昊 at Jan 21, 2013 at 2:55 am
    Hi Joe,
    I have similar problem. Would you please share with me how to fix the
    problem.
    which two repo need to edit? How to edit these two repos.
    Thanks


    在 2013年1月18日星期五UTC+8上午5时10分58秒,Joe Travaglini写道:
    That was it Joey, we forgot one of the two. It's working now. Thanks all!


    On Thu, Jan 17, 2013 at 2:24 PM, Joey Echeverria <jo...@cloudera.com<javascript:>
    wrote:
    Hrm. That's very odd. Are you sure that you're pasting in both local
    repos (one for CM and one for CDH)?

    -Joey

    On Thu, Jan 17, 2013 at 1:50 PM, Joe Travaglini
    <joe.tra...@gmail.com <javascript:>> wrote:
    Joey thanks for the quick reply, but please have a look at the
    following.
    It appears that CM is still trying to go externally to source the RPMs.
    Keep in mind, we've tried this using "matched repo" first, then tried with
    the custom path to our repo. During the rollback it can't delete the
    cloudera-cdh or -cm repos in /etc/yum.repos.d/ because they don't exist (as
    they shouldn't).

    By my estimation it looks like it's still trying to go externally to source
    the RPMs even though an internal local repo was provided. I see
    nothing in
    the log here that it even searched the local repo.

    /tmp/scm_prepare_node.AapwFUVc
    using SSH_CLIENT to get the SCM hostname: <REDACTED> 30543 22
    opening logging file descriptor

    Starting installation script...

    Acquiring installation lock...

    BEGIN flock 4
    END (0)

    Detecting root privileges...

    effective UID is 0

    Detecting distribution...

    BEGIN grep Tikanga /etc/redhat-release
    END (1)
    BEGIN grep 'CentOS release 5' /etc/redhat-release
    END (1)
    BEGIN grep Santiago /etc/redhat-release
    Red Hat Enterprise Linux Server release 6.2 (Santiago)
    END (0)
    /etc/redhat-release ==> RHEL 6

    Detecting Cloudera Manager Server...

    BEGIN host -t PTR <REDACTED>
    52.36.42.10.in-addr.arpa domain name pointer <REDACTED>.
    END (0)
    using <REDACTED> as scm server hostname
    BEGIN ping -c 1 <REDACTED>
    PING <REDACTED> (<REDACTED>) 56(84) bytes of data.
    64 bytes from <REDACTED> (<REDACTED>): icmp_seq=1 ttl=64 time=0.336 ms

    --- <REDACTED> ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 2ms
    rtt min/avg/max/mdev = 0.336/0.336/0.336/0.000 ms
    END (0)
    scm server found

    Installing package repositories...

    validating format of repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo
    installing repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo
    repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo installed
    validating format of repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo
    installing repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo
    repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo installed
    Refreshing package metadata...

    BEGIN yum clean all
    Loaded plugins: security
    Cleaning repos: cloudera-cdh4 cloudera-manager <REDACTED>12c hadoop12c
    oel6fid12c
    : vmtools_rhel6x64_<REDACTED>
    Cleaning up Everything
    END (0)
    BEGIN rm -Rf /var/cache/yum/x86_64
    END (0)
    BEGIN yum makecache
    Loaded plugins: security
    http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4.1.2/repodata/repomd.xml
    :
    [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository:
    cloudera-cdh4. Please verify its path and try again
    END (1)

    Installing jdk package...

    BEGIN yum info jdk
    Loaded plugins: security
    http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4.1.2/repodata/repomd.xml
    :
    [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository:
    cloudera-cdh4. Please verify its path and try again
    END (1)
    remote package jdk is not available, giving up

    Reverting changes...

    rollback started

    Removing package repositories...

    ls: cannot access /etc/yum.repos.d/cloudera-manager.repo.~*~: No such file
    or directory
    repository file /etc/yum.repos.d/cloudera-manager.repo removed
    ls: cannot access /etc/yum.repos.d/cloudera-cdh4.repo.~*~: No such file or
    directory
    repository file /etc/yum.repos.d/cloudera-cdh4.repo removed

    Cleaning the package manager cache...

    BEGIN yum clean all
    Loaded plugins: security
    Cleaning repos: <REDACTED>12c hadoop12c oel6fid12c
    vmtools_rhel6x64_fid12c
    Cleaning up Everything
    END (0)
    BEGIN rm -Rf /var/cache/yum/x86_64
    END (0)

    Uninstalled.

    rollback completed
    closing logging file descriptor



    On Thu, Jan 17, 2013 at 1:07 PM, Joey Echeverria <jo...@cloudera.com<javascript:>>
    wrote:
    Yes, you need to paste in the URL to your local repo.

    -Joey

    On Thu, Jan 17, 2013 at 12:51 PM, Joe Travaglini
    <joe.tra...@gmail.com <javascript:>> wrote:
    Hello,
    Looking to use CM to do a CDH install from a mirrored local Yum
    repository
    that has all the CDH RPMs in it.
    On the CM install path, if you select the "Matched Repository"
    radio
    option, it tries to go archive.cloudera.com for the RPMs instead of
    searching the local repo.
    Is the only way to do this by manually overriding and giving it the
    path
    to the local Yum server?


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.
  • 汪昊 at Jan 21, 2013 at 3:28 am
    Hi Joey,
    Which two repos do I have to edit? I followed the installation guide, it
    only tells me to create one /etc/yum.repos.d/myrepo.repo file.Thanks

    在 2013年1月18日星期五UTC+8上午3时24分10秒,Joey Echeverria写道:
    Hrm. That's very odd. Are you sure that you're pasting in both local
    repos (one for CM and one for CDH)?

    -Joey

    On Thu, Jan 17, 2013 at 1:50 PM, Joe Travaglini
    <joe.tra...@gmail.com <javascript:>> wrote:
    Joey thanks for the quick reply, but please have a look at the
    following.
    It appears that CM is still trying to go externally to source the RPMs.
    Keep in mind, we've tried this using "matched repo" first, then tried with
    the custom path to our repo. During the rollback it can't delete the
    cloudera-cdh or -cm repos in /etc/yum.repos.d/ because they don't exist (as
    they shouldn't).

    By my estimation it looks like it's still trying to go externally to source
    the RPMs even though an internal local repo was provided. I see nothing in
    the log here that it even searched the local repo.

    /tmp/scm_prepare_node.AapwFUVc
    using SSH_CLIENT to get the SCM hostname: <REDACTED> 30543 22
    opening logging file descriptor

    Starting installation script...

    Acquiring installation lock...

    BEGIN flock 4
    END (0)

    Detecting root privileges...

    effective UID is 0

    Detecting distribution...

    BEGIN grep Tikanga /etc/redhat-release
    END (1)
    BEGIN grep 'CentOS release 5' /etc/redhat-release
    END (1)
    BEGIN grep Santiago /etc/redhat-release
    Red Hat Enterprise Linux Server release 6.2 (Santiago)
    END (0)
    /etc/redhat-release ==> RHEL 6

    Detecting Cloudera Manager Server...

    BEGIN host -t PTR <REDACTED>
    52.36.42.10.in-addr.arpa domain name pointer <REDACTED>.
    END (0)
    using <REDACTED> as scm server hostname
    BEGIN ping -c 1 <REDACTED>
    PING <REDACTED> (<REDACTED>) 56(84) bytes of data.
    64 bytes from <REDACTED> (<REDACTED>): icmp_seq=1 ttl=64 time=0.336 ms

    --- <REDACTED> ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 2ms
    rtt min/avg/max/mdev = 0.336/0.336/0.336/0.000 ms
    END (0)
    scm server found

    Installing package repositories...

    validating format of repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo
    installing repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo
    repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-cdh4.repo installed
    validating format of repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo
    installing repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo
    repository file
    /tmp/scm_prepare_node.AapwFUVc/repos/rhel6/cloudera-manager.repo installed
    Refreshing package metadata...

    BEGIN yum clean all
    Loaded plugins: security
    Cleaning repos: cloudera-cdh4 cloudera-manager <REDACTED>12c hadoop12c
    oel6fid12c
    : vmtools_rhel6x64_<REDACTED>
    Cleaning up Everything
    END (0)
    BEGIN rm -Rf /var/cache/yum/x86_64
    END (0)
    BEGIN yum makecache
    Loaded plugins: security
    http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4.1.2/repodata/repomd.xml:
    [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository:
    cloudera-cdh4. Please verify its path and try again
    END (1)

    Installing jdk package...

    BEGIN yum info jdk
    Loaded plugins: security
    http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4.1.2/repodata/repomd.xml:
    [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository:
    cloudera-cdh4. Please verify its path and try again
    END (1)
    remote package jdk is not available, giving up

    Reverting changes...

    rollback started

    Removing package repositories...

    ls: cannot access /etc/yum.repos.d/cloudera-manager.repo.~*~: No such file
    or directory
    repository file /etc/yum.repos.d/cloudera-manager.repo removed
    ls: cannot access /etc/yum.repos.d/cloudera-cdh4.repo.~*~: No such file or
    directory
    repository file /etc/yum.repos.d/cloudera-cdh4.repo removed

    Cleaning the package manager cache...

    BEGIN yum clean all
    Loaded plugins: security
    Cleaning repos: <REDACTED>12c hadoop12c oel6fid12c
    vmtools_rhel6x64_fid12c
    Cleaning up Everything
    END (0)
    BEGIN rm -Rf /var/cache/yum/x86_64
    END (0)

    Uninstalled.

    rollback completed
    closing logging file descriptor


    On Thu, Jan 17, 2013 at 1:07 PM, Joey Echeverria wrote:

    Yes, you need to paste in the URL to your local repo.

    -Joey

    On Thu, Jan 17, 2013 at 12:51 PM, Joe Travaglini
    <joe.tra...@gmail.com <javascript:>> wrote:
    Hello,
    Looking to use CM to do a CDH install from a mirrored local Yum
    repository
    that has all the CDH RPMs in it.
    On the CM install path, if you select the "Matched Repository"
    radio
    option, it tries to go archive.cloudera.com for the RPMs instead of
    searching the local repo.
    Is the only way to do this by manually overriding and giving it the
    path
    to the local Yum server?


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedJan 17, '13 at 6:14p
activeJan 21, '13 at 3:28a
posts7
users3
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase