mon log reporting filenotfound for /logs/hdfs.java.log

Bug #1391918 reported by Guy Groulx
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Trafodion
Fix Released
Medium
Matt Brown

Bug Description

Just noticed on our system that $MY_SQROOT/logs/mon* has many of these

11/12/2014-10:31:15.515.493: (name=monitor/pid=61896/tid=62033) (cmp=1/ev=101130801/fac=320/sev=6): STDERR redirected from n011.$Z001FW1.0.62336: log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /logs/hdfs.java.log (No such file or directory)

I believe the problem is in the $MY_SQROOT/logs/log4j.hdfs.config file where the following line is:

log4j.appender.hbaseclient.file=${env:MY_SQROOT}/logs/hdfs.java.log

Tags: sql-exe
Revision history for this message
Arvind Narain (arvind-narain) wrote :

Adding comment from Matt Brown about a fix tried by him in a side branch:

To work around it I made fix to HBaseClient.java to mimic that of DTM HBaseTxnClient.java. Change looks like this

    void setupLog4j() {
        //String confFile = System.getenv("MY_SQROOT")
        // + "/conf/log4j.hdfs.config";
       System.setProperty("trafodion.hdfs.log", System.getenv("MY_SQROOT") + "/logs/trafodion.hdfs.log");
        String confFile = System.getenv("MY_SQROOT")
            + "/conf/log4j.hdfs.config";
        PropertyConfigurator.configure(confFile);
    }

And, similar to DTM’s conf/log4j.dtm.config I changed the conf/log4j.hdfs.config file as follows:

log4j.appender.hbaseclient.file=${trafodion.hdfs.log}

tags: added: sql-exe
Revision history for this message
Guy Groulx (guy-groulx) wrote :

Hello,

Why the "conf" directory. We do not have a "conf" directory under $MY_SQROOT. We have "logs" directory but not a "conf" directory.

Guy

Revision history for this message
Aruna Sadashiva (aruna-sadashiva) wrote :

Guy, with Manageability will come a conf dir under $MY_SQROOT.

Revision history for this message
Matt Brown (mattbrown-2) wrote : Re: [Bug 1391918] Re: mon log reporting filenotfound for /logs/hdfs.java.log

Already a bug open for this

On Dec 12, 2014 10:35 PM, "Sadashiva, Aruna" <email address hidden> wrote:
Guy, with Manageability will come a conf dir under $MY_SQROOT.

--
You received this bug notification because you are subscribed to
Trafodion.
Matching subscriptions: Trafodion bugs, Trafodion bugs, Trafodion bugs
https://bugs.launchpad.net/bugs/1391918

Title:
  mon log reporting filenotfound for /logs/hdfs.java.log

Status in Trafodion:
  New

Bug description:
  Just noticed on our system that $MY_SQROOT/logs/mon* has many of these

  11/12/2014-10:31:15.515.493: (name=monitor/pid=61896/tid=62033) (cmp=1/ev=101130801/fac=320/sev=6): STDERR redirected from n011.$Z001FW1.0.62336: log4j:ERROR setFile(null,true) call failed.
  java.io.FileNotFoundException: /logs/hdfs.java.log (No such file or directory)

  I believe the problem is in the $MY_SQROOT/logs/log4j.hdfs.config file where the following line is:

  log4j.appender.hbaseclient.file=${env:MY_SQROOT}/logs/hdfs.java.log

To manage notifications about this bug go to:
https://bugs.launchpad.net/trafodion/+bug/1391918/+subscriptions

Changed in trafodion:
assignee: nobody → Selvaganesan Govindarajan (selva-ganesan)
Changed in trafodion:
milestone: none → r1.0
Changed in trafodion:
assignee: Selvaganesan Govindarajan (selva-ganesan) → Anuradha (anuradha-hegde)
Matt Brown (mattbrown-2)
Changed in trafodion:
status: New → In Progress
assignee: Anuradha (anuradha-hegde) → Matt Brown (mattbrown-2)
Matt Brown (mattbrown-2)
Changed in trafodion:
milestone: r1.0 → r1.1
status: In Progress → Fix Committed
Revision history for this message
Trafodion-Gerrit (neo-devtools) wrote : Fix merged to core (master)

Reviewed: https://review.trafodion.org/1070
Committed: https://github.com/trafodion/core/commit/9b986151498053577c2fd653b80bb37428f7dde0
Submitter: Trafodion Jenkins
Branch: master

commit 9b986151498053577c2fd653b80bb37428f7dde0
Author: matbrown <email address hidden>
Date: Wed Feb 4 23:33:37 2015 +0000

    HBaseClient now logs correctly. Updated copyright

    HbaseClient failed to setup log4j properly due to its
    inability to locate the correct properties file.
    Updated copyright

    Closes-Bug: #1391918

    Change-Id: Ifed74ca8879431254b8a8e6586e717eb588a924f

Matt Brown (mattbrown-2)
Changed in trafodion:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.