Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: CDH 5.2.1
    • Fix Version/s: None
    • Component/s: Hive
    • Labels:

      Description

      Everytime the hive command is being run there is a warning printed to stdout:

      2014-12-10 10:43:49,030 WARN  [main] conf.HiveConf (HiveConf.java:initialize(1491)) - DEPRECATED: Configuration property hive.metastore.local no longer has any effect. Make sure to provide a valid value for hive.metastore.uris if you are connecting to a remote metastore.
      

      I would like to change it to stderr because it is annoying to cut it out of the command output.

      There is however no option to set client log4j.properties using Cloudera Manager.

      Using hive-log4j.properties per user does not help because it is being opened after a warning is printed.

      Strace output:

      [pid 26144] stat("/etc/hive/conf.cloudera.HIVE-1/log4j.properties", 0x7fd5f8687760) = -1 ENOENT (No such file or directory)
      [pid 26144] stat("/opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.p0.12/lib/hadoop-hdfs/log4j.properties", 0x7fd5f8687760) = -1 ENOENT (No such file or directory)
      [pid 26269] stat("/opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.p0.12/etc/hbase/conf.dist/log4j.properties", {st_mode=S_IFREG|0644, st_size=3451, ...}) = 0
      [pid 26269] stat("/opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.p0.12/etc/hbase/conf.dist/log4j.properties", {st_mode=S_IFREG|0644, st_size=3451, ...}) = 0
      [pid 26269] open("/opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.p0.12/etc/hbase/conf.dist/log4j.properties", O_RDONLY) = 241
      [pid 26353] stat("/etc/hive/conf.cloudera.HIVE-1/log4j.properties", 0x7f317ffc72a0) = -1 ENOENT (No such file or directory)
      [pid 26353] stat("/opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.p0.12/lib/hadoop-hdfs/log4j.properties", 0x7f317ffc72a0) = -1 ENOENT (No such file or directory)
      2014-12-10 12:05:19,603 WARN  [main] conf.HiveConf (HiveConf.java:initialize(1491)) - DEPRECATED: Configuration property hive.metastore.local no longer has any effect. Make sure to provide a valid value for hive.metastore.uris if you are connecting to a remote metastore.
      [pid 26353] stat("/etc/hive/conf.cloudera.HIVE-1/hive-log4j.properties", 0x7f317ffc80a0) = -1 ENOENT (No such file or directory)
      [pid 26353] stat("/opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.p0.12/lib/hadoop-hdfs/hive-log4j.properties", 0x7f317ffc80a0) = -1 ENOENT (No such file or directory)
      [pid 26353] stat("/home/username/hive-log4j.properties", 0x7f317ffc80a0) = -1 ENOENT (No such file or directory)
      Logging initialized using configuration in jar:file:/opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.p0.12/jars/hive-common-0.13.1-cdh5.2.1.jar!/hive-log4j.properties
      

      Manually made /etc/hive/conf.cloudera.HIVE-1/log4j.properties is being deleted after executing Deploy Client Configuration.

      There should at least be "valve" provided for setting log4j.properties for clients.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rtbhouse RTB House
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: