FAQ
hi,i'm tring to install cloudera manager and i followed this tutorial
http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM5/latest/Cloudera-Manager-Installation-Guide/cm5ig_install_path_B.html
but i have some trouble starting cloudera-scm-server ,i cannot open the
url http://192.168.1.101:7180/
first it's running
$ sudo service cloudera-scm-server status
Checking for service cloudera-scm-server: * cloudera-scm-server is running
then it's dead
Checking for service cloudera-scm-server: * cloudera-scm-server is dead
and pid file exists

i checked my log file and it says

log4j:ERROR Could not read configuration file from URL
[file:/etc/cloudera-scm-server/log4j.properties].

java.io.FileNotFoundException: /etc/cloudera-scm-server/log4j.properties
(No such file or directory)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.(FileInputStream.java:101)

at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)


at

i wonder which step did i miss, why my log4j file is missing and what can
i do to fix this problem?

i attached my log file below

please help

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

Search Discussions

  • Daisuke Kobayashi at Dec 21, 2013 at 3:16 pm
    Hi,

    Have you configured embedded postgresql and started?
    That is, you need to start cloudera-scm-server-db process before you start
    cloudera-scm-server up.
    If you've configured an external rdbms server instead, please verify it
    it's functioning.

    Dice.



    On Sat, Dec 21, 2013 at 11:58 PM, wrote:

    hi,i'm tring to install cloudera manager and i followed this tutorial
    http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM5/latest/Cloudera-Manager-Installation-Guide/cm5ig_install_path_B.html
    but i have some trouble starting cloudera-scm-server ,i cannot open the
    url http://192.168.1.101:7180/
    first it's running
    $ sudo service cloudera-scm-server status
    Checking for service cloudera-scm-server: * cloudera-scm-server is running
    then it's dead
    Checking for service cloudera-scm-server: * cloudera-scm-server is dead
    and pid file exists

    i checked my log file and it says

    log4j:ERROR Could not read configuration file from URL
    [file:/etc/cloudera-scm-server/log4j.properties].

    java.io.FileNotFoundException: /etc/cloudera-scm-server/log4j.properties
    (No such file or directory)

    at java.io.FileInputStream.open(Native Method)

    at java.io.FileInputStream.<init>(FileInputStream.java:146)

    at java.io.FileInputStream.<init>(FileInputStream.java:101)

    at
    sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)


    at

    i wonder which step did i miss, why my log4j file is missing and what can
    i do to fix this problem?

    i attached my log file below

    please help

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


    --
    Daisuke Kobayashi
    Customer Operations Engineer, Cloudera

    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Darren Lo at Dec 21, 2013 at 5:26 pm
    What are the files and permissions on files in /etc/cloudera-scm-server? It
    seems like your log4j file is either not readable by the cloudera-scm user,
    or it is missing.

    The log4j.properties file is normally installed by the
    cloudera-manager-server package. If you re-create that file you should be
    able to get to the next step, though you might want to figure out how it
    was deleted to make sure nothing else is missing.

    Here's the contents that log4j.properties should have:
    # Copyright (c) 2012 Cloudera, Inc. All rights reserved.
    #
    # !!!!! IMPORTANT !!!!!
    # The Cloudera Manager server finds its log file by querying log4j. It
    # assumes that the first file appender in this file is the server log.
    # See LogUtil.getServerLogFile() for more details.
    #
    # Define some default values that can be overridden by system properties
    cmf.root.logger=INFO,CONSOLE
    cmf.log.dir=.
    cmf.log.file=cmf-server.log

    # Define the root logger to the system property "cmf.root.logger".
    log4j.rootLogger=${cmf.root.logger}

    # Logging Threshold
    log4j.threshhold=ALL

    # Disable most JDBC tracing by default.
    log4j.logger.org.jdbcdslog=FATAL

    # Disable overly loud Avro IPC logging
    log4j.logger.org.apache.avro.ipc.NettyTransceiver=FATAL

    # Disable overly loud Flume config validation logging
    log4j.logger.org.apache.flume.conf.FlumeConfiguration=ERROR

    log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
    log4j.appender.CONSOLE.target=System.err
    log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
    log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} %5p [%t:%c{2}@%L]
    %m%n

    log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
    log4j.appender.LOGFILE.MaxFileSize=10MB
    log4j.appender.LOGFILE.MaxBackupIndex=10
    log4j.appender.LOGFILE.File=${cmf.log.dir}/${cmf.log.file}
    log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
    log4j.appender.LOGFILE.layout.ConversionPattern=%d{ISO8601} %5p [%t:%c{2}@%L]
    %m%n

    Thanks,
    Darren


    On Sat, Dec 21, 2013 at 7:16 AM, Daisuke Kobayashi wrote:

    Hi,

    Have you configured embedded postgresql and started?
    That is, you need to start cloudera-scm-server-db process before you start
    cloudera-scm-server up.
    If you've configured an external rdbms server instead, please verify it
    it's functioning.

    Dice.



    On Sat, Dec 21, 2013 at 11:58 PM, wrote:

    hi,i'm tring to install cloudera manager and i followed this tutorial
    http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM5/latest/Cloudera-Manager-Installation-Guide/cm5ig_install_path_B.html
    but i have some trouble starting cloudera-scm-server ,i cannot open the
    url http://192.168.1.101:7180/
    first it's running
    $ sudo service cloudera-scm-server status
    Checking for service cloudera-scm-server: * cloudera-scm-server is
    running
    then it's dead
    Checking for service cloudera-scm-server: * cloudera-scm-server is dead
    and pid file exists

    i checked my log file and it says

    log4j:ERROR Could not read configuration file from URL
    [file:/etc/cloudera-scm-server/log4j.properties].

    java.io.FileNotFoundException: /etc/cloudera-scm-server/log4j.properties
    (No such file or directory)

    at java.io.FileInputStream.open(Native Method)

    at java.io.FileInputStream.<init>(FileInputStream.java:146)

    at java.io.FileInputStream.<init>(FileInputStream.java:101)

    at
    sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)


    at

    i wonder which step did i miss, why my log4j file is missing and what
    can i do to fix this problem?

    i attached my log file below

    please help

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


    --
    Daisuke Kobayashi
    Customer Operations Engineer, Cloudera

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


    --
    Thanks,
    Darren

    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Watergate7 at Dec 22, 2013 at 11:29 am
    thanks Darren, i have uninstalled cloudera-manager(server,db and CDH4) and
    deleted their related files and gone through the procedure again,when i
    found the log4j file recovered
    still don't knowned why it's missing in the first place but everyting seems
    ok so far

    thank you for your reply again

    在 2013年12月22日星期日UTC+8上午1时26分07秒,Darren Lo写道:
    What are the files and permissions on files in /etc/cloudera-scm-server?
    It seems like your log4j file is either not readable by the cloudera-scm
    user, or it is missing.

    The log4j.properties file is normally installed by the
    cloudera-manager-server package. If you re-create that file you should be
    able to get to the next step, though you might want to figure out how it
    was deleted to make sure nothing else is missing.

    Here's the contents that log4j.properties should have:
    # Copyright (c) 2012 Cloudera, Inc. All rights reserved.
    #
    # !!!!! IMPORTANT !!!!!
    # The Cloudera Manager server finds its log file by querying log4j. It
    # assumes that the first file appender in this file is the server log.
    # See LogUtil.getServerLogFile() for more details.
    #
    # Define some default values that can be overridden by system properties
    cmf.root.logger=INFO,CONSOLE
    cmf.log.dir=.
    cmf.log.file=cmf-server.log

    # Define the root logger to the system property "cmf.root.logger".
    log4j.rootLogger=${cmf.root.logger}

    # Logging Threshold
    log4j.threshhold=ALL

    # Disable most JDBC tracing by default.
    log4j.logger.org.jdbcdslog=FATAL

    # Disable overly loud Avro IPC logging
    log4j.logger.org.apache.avro.ipc.NettyTransceiver=FATAL

    # Disable overly loud Flume config validation logging
    log4j.logger.org.apache.flume.conf.FlumeConfiguration=ERROR

    log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
    log4j.appender.CONSOLE.target=System.err
    log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
    log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} %5p
    [%t:%c{2}@%L] %m%n

    log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
    log4j.appender.LOGFILE.MaxFileSize=10MB
    log4j.appender.LOGFILE.MaxBackupIndex=10
    log4j.appender.LOGFILE.File=${cmf.log.dir}/${cmf.log.file}
    log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
    log4j.appender.LOGFILE.layout.ConversionPattern=%d{ISO8601} %5p
    [%t:%c{2}@%L] %m%n

    Thanks,
    Darren



    On Sat, Dec 21, 2013 at 7:16 AM, Daisuke Kobayashi <dai...@cloudera.com<javascript:>
    wrote:
    Hi,

    Have you configured embedded postgresql and started?
    That is, you need to start cloudera-scm-server-db process before you
    start cloudera-scm-server up.
    If you've configured an external rdbms server instead, please verify it
    it's functioning.

    Dice.



    On Sat, Dec 21, 2013 at 11:58 PM, <water...@163.com <javascript:>> wrote:

    hi,i'm tring to install cloudera manager and i followed this tutorial
    http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM5/latest/Cloudera-Manager-Installation-Guide/cm5ig_install_path_B.html
    but i have some trouble starting cloudera-scm-server ,i cannot open the
    url http://192.168.1.101:7180/
    first it's running
    $ sudo service cloudera-scm-server status
    Checking for service cloudera-scm-server: * cloudera-scm-server is
    running
    then it's dead
    Checking for service cloudera-scm-server: * cloudera-scm-server is dead
    and pid file exists

    i checked my log file and it says

    log4j:ERROR Could not read configuration file from URL
    [file:/etc/cloudera-scm-server/log4j.properties].

    java.io.FileNotFoundException: /etc/cloudera-scm-server/log4j.properties
    (No such file or directory)

    at java.io.FileInputStream.open(Native Method)

    at java.io.FileInputStream.<init>(FileInputStream.java:146)

    at java.io.FileInputStream.<init>(FileInputStream.java:101)

    at
    sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)


    at

    i wonder which step did i miss, why my log4j file is missing and what
    can i do to fix this problem?

    i attached my log file below

    please help

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


    --
    Daisuke Kobayashi
    Customer Operations Engineer, Cloudera

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


    --
    Thanks,
    Darren
    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Watergate7 at Dec 22, 2013 at 11:31 am
    yes,the db process is functioning

    在 2013年12月21日星期六UTC+8下午11时16分10秒,Daisuke Kobayashi写道:
    Hi,

    Have you configured embedded postgresql and started?
    That is, you need to start cloudera-scm-server-db process before you start
    cloudera-scm-server up.
    If you've configured an external rdbms server instead, please verify it
    it's functioning.

    Dice.



    On Sat, Dec 21, 2013 at 11:58 PM, <water...@163.com <javascript:>> wrote:

    hi,i'm tring to install cloudera manager and i followed this tutorial
    http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM5/latest/Cloudera-Manager-Installation-Guide/cm5ig_install_path_B.html
    but i have some trouble starting cloudera-scm-server ,i cannot open the
    url http://192.168.1.101:7180/
    first it's running
    $ sudo service cloudera-scm-server status
    Checking for service cloudera-scm-server: * cloudera-scm-server is
    running
    then it's dead
    Checking for service cloudera-scm-server: * cloudera-scm-server is dead
    and pid file exists

    i checked my log file and it says

    log4j:ERROR Could not read configuration file from URL
    [file:/etc/cloudera-scm-server/log4j.properties].

    java.io.FileNotFoundException: /etc/cloudera-scm-server/log4j.properties
    (No such file or directory)

    at java.io.FileInputStream.open(Native Method)

    at java.io.FileInputStream.<init>(FileInputStream.java:146)

    at java.io.FileInputStream.<init>(FileInputStream.java:101)

    at
    sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)


    at

    i wonder which step did i miss, why my log4j file is missing and what
    can i do to fix this problem?

    i attached my log file below

    please help

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


    --
    Daisuke Kobayashi
    Customer Operations Engineer, Cloudera
    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
postedDec 21, '13 at 2:58p
activeDec 22, '13 at 11:31a
posts5
users3
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase