FAQ
Hi everyone.

Quick question about variables in CM4's configuration pages.
Part of our logging standard for directory includes the hostname of
the machine. So, rather than:

/var/log

I need:

/logs/[hostname]/

Is there a way to represent "hostname" as a variable that will be
replaced by CM?

Thanks!
Chris

Search Discussions

  • Philip Zeyliger at Sep 10, 2012 at 4:24 pm
    Hi Chris,

    We do not have support for this feature. You could work around this by
    setting all the log directories per role, using the API. Alternately,
    perhaps you could establish a symlink from /mylog to /logs/hostname on each
    machine.

    Thanks,

    -- Philip
    On Mon, Sep 10, 2012 at 8:48 AM, ChrisN wrote:

    Hi everyone.

    Quick question about variables in CM4's configuration pages.
    Part of our logging standard for directory includes the hostname of
    the machine. So, rather than:

    /var/log

    I need:

    /logs/[hostname]/

    Is there a way to represent "hostname" as a variable that will be
    replaced by CM?

    Thanks!
    Chris

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedSep 10, '12 at 3:48p
activeSep 10, '12 at 4:24p
posts2
users2
websitecloudera.com
irc#hadoop

2 users in discussion

ChrisN: 1 post Philip Zeyliger: 1 post

People

Translate

site design / logo © 2022 Grokbase