<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Hive servers in same cluster use different hive-log4j.properties files. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196320#M158373</link>
    <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/3919/mungeolheo.html"&gt;@mungeol heo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Let's clarify a little bit. Do you run two HiveServer2 instances to manage different workloads? If so, it is not a surprise to have different settings for log4j. &lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2017 08:31:56 GMT</pubDate>
    <dc:creator>cstanca</dc:creator>
    <dc:date>2017-08-01T08:31:56Z</dc:date>
    <item>
      <title>Hive servers in same cluster use different hive-log4j.properties files.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196315#M158368</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Here are logs from two hiveserver2.log file.&lt;/P&gt;&lt;P&gt;------- first which is strange -------&lt;/P&gt;&lt;P&gt;2017-07-28 14:46:10,051 DEBUG [main]: server.HiveServer2 (HiveServer2.java:main(586)) -
&lt;/P&gt;&lt;P&gt;Logging initialized using configuration in &lt;STRONG&gt;jar:file:/usr/hdp/2.6.0.3-8/hive/lib/hive-common-1.2.1000.2.6.0.3-8.jar!/hive-log4j.properties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;------- second -------&lt;/P&gt;&lt;P&gt;2017-07-28 14:43:01,534 DEBUG [main]: server.HiveServer2 (HiveServer2.java:main(586)) -
Logging initialized using configuration in &lt;STRONG&gt;file:/etc/hive/2.6.0.3-8/0/conf.server/hive-log4j.properties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What is causing this problem?&lt;/P&gt;&lt;P&gt;Any help will be very thankful.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 13:10:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196315#M158368</guid>
      <dc:creator>mungeol_heo</dc:creator>
      <dc:date>2017-07-28T13:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hive servers in same cluster use different hive-log4j.properties files.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196316#M158369</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3919/mungeolheo.html" nodeid="3919"&gt;@mungeol heo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;By any change have you configured any "config group" and assigned these different hosts to it?&lt;/P&gt;&lt;P&gt;Also the seconds logging config looks good.&lt;/P&gt;&lt;P&gt;On the first hiveserver2 instance do you have the following path existing with proper permission?&lt;/P&gt;&lt;PRE&gt;# ls -l /etc/hive/2.6.0.3-8/0/conf.server/hive-log4j.properties
-rw------- 1 hive hadoop 3091 May 15 13:33 /etc/hive/2.6.0.3-8/0/conf.server/hive-log4j.properties&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also do you have any Environment Global Variable set related to hive conf dir on these hosts?   As in the first host the setting of log4j seems to be loading from insdie the jar , so suspecting that some explicitly set classpath setting might be done in some of the script/global environment level so that the JAR may be coming first in the CLASSPATH before the "conf" directory.&lt;/P&gt;&lt;P&gt;.
&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 13:42:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196316#M158369</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-28T13:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hive servers in same cluster use different hive-log4j.properties files.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196317#M158370</link>
      <description>&lt;P&gt;Hello, &lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;@Jay SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is no such file: /etc/hive/2.6.0.3-8/0/conf.server/hive-log4j.properties&lt;/P&gt;&lt;P&gt;It will be OK after I copy the hive-log4j.properties file to the /etc/hive/2.6.0.3-8/0/conf.server/ folder.&lt;/P&gt;&lt;P&gt;Now, I am trying to find out the reason why the hive-log4j.properties file is not exists while another node has it.&lt;/P&gt;&lt;P&gt;BTW, I am using default config group.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 14:01:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196317#M158370</guid>
      <dc:creator>mungeol_heo</dc:creator>
      <dc:date>2017-07-28T14:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hive servers in same cluster use different hive-log4j.properties files.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196318#M158371</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3919/mungeolheo.html" nodeid="3919"&gt;@mungeol heo
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, you can copy and paste the missing hive-log4j.properties file to the first host and then as a preference it will pick that file from "conf" directory.   If that file is not found in the conf directory then the log4j properties file will be picked up from any JAR present in  the classpath which has the log4j property.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3919/mungeolheo.html" nodeid="3919"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 14:05:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196318#M158371</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-28T14:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hive servers in same cluster use different hive-log4j.properties files.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196319#M158372</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The problem is any config change from ambari will not affect the hive-log4j.properties file in the first host.&lt;/P&gt;&lt;P&gt;Although, it does make sense, since ambari didn't create the file at the first place.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 14:15:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196319#M158372</guid>
      <dc:creator>mungeol_heo</dc:creator>
      <dc:date>2017-07-28T14:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hive servers in same cluster use different hive-log4j.properties files.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196320#M158373</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/3919/mungeolheo.html"&gt;@mungeol heo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Let's clarify a little bit. Do you run two HiveServer2 instances to manage different workloads? If so, it is not a surprise to have different settings for log4j. &lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 08:31:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196320#M158373</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2017-08-01T08:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hive servers in same cluster use different hive-log4j.properties files.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196321#M158374</link>
      <description>&lt;P&gt;Nope. thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 13:23:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196321#M158374</guid>
      <dc:creator>mungeol_heo</dc:creator>
      <dc:date>2017-08-01T13:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hive servers in same cluster use different hive-log4j.properties files.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196322#M158375</link>
      <description>&lt;P&gt;I solved the problem by adding a new hive metastore service to the same node which has no hive-log4j.properties file in /etc/hive/2.6.0.3-8/0/conf.server folder.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 13:28:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-servers-in-same-cluster-use-different-hive-log4j/m-p/196322#M158375</guid>
      <dc:creator>mungeol_heo</dc:creator>
      <dc:date>2017-08-01T13:28:42Z</dc:date>
    </item>
  </channel>
</rss>

