hive log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender









up vote
1
down vote

favorite












Hello how to fixe this issues? When I try to launch hive in my commande line(I'm using amazone aws instance and ambari is well started only 3 CRIT in YARN).










share|improve this question

























    up vote
    1
    down vote

    favorite












    Hello how to fixe this issues? When I try to launch hive in my commande line(I'm using amazone aws instance and ambari is well started only 3 CRIT in YARN).










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Hello how to fixe this issues? When I try to launch hive in my commande line(I'm using amazone aws instance and ambari is well started only 3 CRIT in YARN).










      share|improve this question













      Hello how to fixe this issues? When I try to launch hive in my commande line(I'm using amazone aws instance and ambari is well started only 3 CRIT in YARN).







      amazon-web-services hive ambari






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 11 at 0:10









      Abdoulaye Diallo

      247




      247






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Change the code from



          log4j.appender.FILE=org.apache.log4j.FileAppender 


          To



          log4j.appender.FILE=org.apache.log4j.RollingFileAppender


          in log4j.properties



          DailyRollingFileAppender doesn't support MaxFileSize, RollingFileAppender does.






          share|improve this answer




















          • Hello thanks for tgis quick answer. Where to get the file log4j.properties? I’m using aws instance.
            – Abdoulaye Diallo
            Nov 11 at 11:19










          • Try going to path: /etc/hive/conf find a file called hive-log4j.properties.
            – Mayank Porwal
            Nov 11 at 12:52


















          up vote
          0
          down vote













          Hello I couldn’t found the log4j. properties settings. Where exactly it’s located?



           # Licensed to the Apache Software Foundation (ASF) under one
          # or more contributor license agreements. See the NOTICE file
          # distributed with this work for additional information
          # regarding copyright ownership. The ASF licenses this file
          # to you under the Apache License, Version 2.0 (the
          # "License"); you may not use this file except in compliance
          # with the License. You may obtain a copy of the License at
          #
          # http://www.apache.org/licenses/LICENSE-2.0
          #
          # Unless required by applicable law or agreed to in writing, software
          # distributed under the License is distributed on an "AS IS" BASIS,
          # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          # See the License for the specific language governing permissions and
          # limitations under the License.

          # Define some default values that can be overridden by system properties
          hive.log.threshold=ALL
          hive.root.logger=INFO,DRFA
          hive.log.dir=$java.io.tmpdir/$user.name
          hive.log.file=hive.log

          # Define the root logger to the system property "hadoop.root.logger".
          log4j.rootLogger=$hive.root.logger, EventCounter

          # Logging Threshold
          log4j.threshold=$hive.log.threshold

          #
          # Daily Rolling File Appender
          #
          # Use the PidDailyerRollingFileAppend class instead if you want to use separate log files
          # for different CLI session.
          #
          # log4j.appender.DRFA=org.apache.hadoop.hive.ql.log.PidDailyRollingFileAppender

          log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender

          log4j.appender.DRFA.File=$hive.log.dir/$hive.log.file

          # Rollver at midnight
          log4j.appender.DRFA.DatePattern=.yyyy-MM-dd

          # 30-day backup
          #log4j.appender.DRFA.MaxBackupIndex= 30
          log4j.appender.DRFA.MaxFileSize = 256MB
          log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout


          # Pattern format: Date LogLevel LoggerName LogMessage
          #log4j.appender.DRFA.layout.ConversionPattern=%dISO8601 %p %c: %m%n
          # Debugging Pattern format
          log4j.appender.DRFA.layout.ConversionPattern=%dISO8601 %-5p [%t]: %c2 (%F:%M(%L)) - %m%n


          #
          # console
          # Add "console" to rootlogger above if you want to use this
          #
          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=%dyy/MM/dd HH:mm:ss [%t]: %p %c2: %m%n
          log4j.appender.console.encoding=UTF-8

          #custom logging levels
          #log4j.logger.xxx=DEBUG

          #
          # Event Counter Appender
          # Sends counts of logging messages at different severity levels to Hadoop Metrics.
          #
          log4j.appender.EventCounter=org.apache.hadoop.hive.shims.HiveEventCounter


          log4j.category.DataNucleus=ERROR,DRFA
          log4j.category.Datastore=ERROR,DRFA
          log4j.category.Datastore.Schema=ERROR,DRFA
          log4j.category.JPOX.Datastore=ERROR,DRFA
          log4j.category.JPOX.Plugin=ERROR,DRFA
          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=%dyy/MM/dd HH:mm:ss [%t]: %p %c2: %m%n
          log4j.appender.console.encoding=UTF-8

          #custom logging levels
          #log4j.logger.xxx=DEBUG

          #
          # Event Counter Appender
          # Sends counts of logging messages at different severity levels to Hadoop Metrics.
          #
          log4j.appender.EventCounter=org.apache.hadoop.hive.shims.HiveEventCounter


          log4j.category.DataNucleus=ERROR,DRFA
          log4j.category.Datastore=ERROR,DRFA
          log4j.category.Datastore.Schema=ERROR,DRFA
          log4j.category.JPOX.Datastore=ERROR,DRFA
          log4j.category.JPOX.Plugin=ERROR,DRFA





          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244668%2fhive-log4jwarn-no-such-property-maxfilesize-in-org-apache-log4j-dailyrollingf%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted










            Change the code from



            log4j.appender.FILE=org.apache.log4j.FileAppender 


            To



            log4j.appender.FILE=org.apache.log4j.RollingFileAppender


            in log4j.properties



            DailyRollingFileAppender doesn't support MaxFileSize, RollingFileAppender does.






            share|improve this answer




















            • Hello thanks for tgis quick answer. Where to get the file log4j.properties? I’m using aws instance.
              – Abdoulaye Diallo
              Nov 11 at 11:19










            • Try going to path: /etc/hive/conf find a file called hive-log4j.properties.
              – Mayank Porwal
              Nov 11 at 12:52















            up vote
            1
            down vote



            accepted










            Change the code from



            log4j.appender.FILE=org.apache.log4j.FileAppender 


            To



            log4j.appender.FILE=org.apache.log4j.RollingFileAppender


            in log4j.properties



            DailyRollingFileAppender doesn't support MaxFileSize, RollingFileAppender does.






            share|improve this answer




















            • Hello thanks for tgis quick answer. Where to get the file log4j.properties? I’m using aws instance.
              – Abdoulaye Diallo
              Nov 11 at 11:19










            • Try going to path: /etc/hive/conf find a file called hive-log4j.properties.
              – Mayank Porwal
              Nov 11 at 12:52













            up vote
            1
            down vote



            accepted







            up vote
            1
            down vote



            accepted






            Change the code from



            log4j.appender.FILE=org.apache.log4j.FileAppender 


            To



            log4j.appender.FILE=org.apache.log4j.RollingFileAppender


            in log4j.properties



            DailyRollingFileAppender doesn't support MaxFileSize, RollingFileAppender does.






            share|improve this answer












            Change the code from



            log4j.appender.FILE=org.apache.log4j.FileAppender 


            To



            log4j.appender.FILE=org.apache.log4j.RollingFileAppender


            in log4j.properties



            DailyRollingFileAppender doesn't support MaxFileSize, RollingFileAppender does.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 11 at 11:09









            Mayank Porwal

            4,1011621




            4,1011621











            • Hello thanks for tgis quick answer. Where to get the file log4j.properties? I’m using aws instance.
              – Abdoulaye Diallo
              Nov 11 at 11:19










            • Try going to path: /etc/hive/conf find a file called hive-log4j.properties.
              – Mayank Porwal
              Nov 11 at 12:52

















            • Hello thanks for tgis quick answer. Where to get the file log4j.properties? I’m using aws instance.
              – Abdoulaye Diallo
              Nov 11 at 11:19










            • Try going to path: /etc/hive/conf find a file called hive-log4j.properties.
              – Mayank Porwal
              Nov 11 at 12:52
















            Hello thanks for tgis quick answer. Where to get the file log4j.properties? I’m using aws instance.
            – Abdoulaye Diallo
            Nov 11 at 11:19




            Hello thanks for tgis quick answer. Where to get the file log4j.properties? I’m using aws instance.
            – Abdoulaye Diallo
            Nov 11 at 11:19












            Try going to path: /etc/hive/conf find a file called hive-log4j.properties.
            – Mayank Porwal
            Nov 11 at 12:52





            Try going to path: /etc/hive/conf find a file called hive-log4j.properties.
            – Mayank Porwal
            Nov 11 at 12:52













            up vote
            0
            down vote













            Hello I couldn’t found the log4j. properties settings. Where exactly it’s located?



             # Licensed to the Apache Software Foundation (ASF) under one
            # or more contributor license agreements. See the NOTICE file
            # distributed with this work for additional information
            # regarding copyright ownership. The ASF licenses this file
            # to you under the Apache License, Version 2.0 (the
            # "License"); you may not use this file except in compliance
            # with the License. You may obtain a copy of the License at
            #
            # http://www.apache.org/licenses/LICENSE-2.0
            #
            # Unless required by applicable law or agreed to in writing, software
            # distributed under the License is distributed on an "AS IS" BASIS,
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            # See the License for the specific language governing permissions and
            # limitations under the License.

            # Define some default values that can be overridden by system properties
            hive.log.threshold=ALL
            hive.root.logger=INFO,DRFA
            hive.log.dir=$java.io.tmpdir/$user.name
            hive.log.file=hive.log

            # Define the root logger to the system property "hadoop.root.logger".
            log4j.rootLogger=$hive.root.logger, EventCounter

            # Logging Threshold
            log4j.threshold=$hive.log.threshold

            #
            # Daily Rolling File Appender
            #
            # Use the PidDailyerRollingFileAppend class instead if you want to use separate log files
            # for different CLI session.
            #
            # log4j.appender.DRFA=org.apache.hadoop.hive.ql.log.PidDailyRollingFileAppender

            log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender

            log4j.appender.DRFA.File=$hive.log.dir/$hive.log.file

            # Rollver at midnight
            log4j.appender.DRFA.DatePattern=.yyyy-MM-dd

            # 30-day backup
            #log4j.appender.DRFA.MaxBackupIndex= 30
            log4j.appender.DRFA.MaxFileSize = 256MB
            log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout


            # Pattern format: Date LogLevel LoggerName LogMessage
            #log4j.appender.DRFA.layout.ConversionPattern=%dISO8601 %p %c: %m%n
            # Debugging Pattern format
            log4j.appender.DRFA.layout.ConversionPattern=%dISO8601 %-5p [%t]: %c2 (%F:%M(%L)) - %m%n


            #
            # console
            # Add "console" to rootlogger above if you want to use this
            #
            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=%dyy/MM/dd HH:mm:ss [%t]: %p %c2: %m%n
            log4j.appender.console.encoding=UTF-8

            #custom logging levels
            #log4j.logger.xxx=DEBUG

            #
            # Event Counter Appender
            # Sends counts of logging messages at different severity levels to Hadoop Metrics.
            #
            log4j.appender.EventCounter=org.apache.hadoop.hive.shims.HiveEventCounter


            log4j.category.DataNucleus=ERROR,DRFA
            log4j.category.Datastore=ERROR,DRFA
            log4j.category.Datastore.Schema=ERROR,DRFA
            log4j.category.JPOX.Datastore=ERROR,DRFA
            log4j.category.JPOX.Plugin=ERROR,DRFA
            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=%dyy/MM/dd HH:mm:ss [%t]: %p %c2: %m%n
            log4j.appender.console.encoding=UTF-8

            #custom logging levels
            #log4j.logger.xxx=DEBUG

            #
            # Event Counter Appender
            # Sends counts of logging messages at different severity levels to Hadoop Metrics.
            #
            log4j.appender.EventCounter=org.apache.hadoop.hive.shims.HiveEventCounter


            log4j.category.DataNucleus=ERROR,DRFA
            log4j.category.Datastore=ERROR,DRFA
            log4j.category.Datastore.Schema=ERROR,DRFA
            log4j.category.JPOX.Datastore=ERROR,DRFA
            log4j.category.JPOX.Plugin=ERROR,DRFA





            share|improve this answer


























              up vote
              0
              down vote













              Hello I couldn’t found the log4j. properties settings. Where exactly it’s located?



               # Licensed to the Apache Software Foundation (ASF) under one
              # or more contributor license agreements. See the NOTICE file
              # distributed with this work for additional information
              # regarding copyright ownership. The ASF licenses this file
              # to you under the Apache License, Version 2.0 (the
              # "License"); you may not use this file except in compliance
              # with the License. You may obtain a copy of the License at
              #
              # http://www.apache.org/licenses/LICENSE-2.0
              #
              # Unless required by applicable law or agreed to in writing, software
              # distributed under the License is distributed on an "AS IS" BASIS,
              # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
              # See the License for the specific language governing permissions and
              # limitations under the License.

              # Define some default values that can be overridden by system properties
              hive.log.threshold=ALL
              hive.root.logger=INFO,DRFA
              hive.log.dir=$java.io.tmpdir/$user.name
              hive.log.file=hive.log

              # Define the root logger to the system property "hadoop.root.logger".
              log4j.rootLogger=$hive.root.logger, EventCounter

              # Logging Threshold
              log4j.threshold=$hive.log.threshold

              #
              # Daily Rolling File Appender
              #
              # Use the PidDailyerRollingFileAppend class instead if you want to use separate log files
              # for different CLI session.
              #
              # log4j.appender.DRFA=org.apache.hadoop.hive.ql.log.PidDailyRollingFileAppender

              log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender

              log4j.appender.DRFA.File=$hive.log.dir/$hive.log.file

              # Rollver at midnight
              log4j.appender.DRFA.DatePattern=.yyyy-MM-dd

              # 30-day backup
              #log4j.appender.DRFA.MaxBackupIndex= 30
              log4j.appender.DRFA.MaxFileSize = 256MB
              log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout


              # Pattern format: Date LogLevel LoggerName LogMessage
              #log4j.appender.DRFA.layout.ConversionPattern=%dISO8601 %p %c: %m%n
              # Debugging Pattern format
              log4j.appender.DRFA.layout.ConversionPattern=%dISO8601 %-5p [%t]: %c2 (%F:%M(%L)) - %m%n


              #
              # console
              # Add "console" to rootlogger above if you want to use this
              #
              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=%dyy/MM/dd HH:mm:ss [%t]: %p %c2: %m%n
              log4j.appender.console.encoding=UTF-8

              #custom logging levels
              #log4j.logger.xxx=DEBUG

              #
              # Event Counter Appender
              # Sends counts of logging messages at different severity levels to Hadoop Metrics.
              #
              log4j.appender.EventCounter=org.apache.hadoop.hive.shims.HiveEventCounter


              log4j.category.DataNucleus=ERROR,DRFA
              log4j.category.Datastore=ERROR,DRFA
              log4j.category.Datastore.Schema=ERROR,DRFA
              log4j.category.JPOX.Datastore=ERROR,DRFA
              log4j.category.JPOX.Plugin=ERROR,DRFA
              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=%dyy/MM/dd HH:mm:ss [%t]: %p %c2: %m%n
              log4j.appender.console.encoding=UTF-8

              #custom logging levels
              #log4j.logger.xxx=DEBUG

              #
              # Event Counter Appender
              # Sends counts of logging messages at different severity levels to Hadoop Metrics.
              #
              log4j.appender.EventCounter=org.apache.hadoop.hive.shims.HiveEventCounter


              log4j.category.DataNucleus=ERROR,DRFA
              log4j.category.Datastore=ERROR,DRFA
              log4j.category.Datastore.Schema=ERROR,DRFA
              log4j.category.JPOX.Datastore=ERROR,DRFA
              log4j.category.JPOX.Plugin=ERROR,DRFA





              share|improve this answer
























                up vote
                0
                down vote










                up vote
                0
                down vote









                Hello I couldn’t found the log4j. properties settings. Where exactly it’s located?



                 # Licensed to the Apache Software Foundation (ASF) under one
                # or more contributor license agreements. See the NOTICE file
                # distributed with this work for additional information
                # regarding copyright ownership. The ASF licenses this file
                # to you under the Apache License, Version 2.0 (the
                # "License"); you may not use this file except in compliance
                # with the License. You may obtain a copy of the License at
                #
                # http://www.apache.org/licenses/LICENSE-2.0
                #
                # Unless required by applicable law or agreed to in writing, software
                # distributed under the License is distributed on an "AS IS" BASIS,
                # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                # See the License for the specific language governing permissions and
                # limitations under the License.

                # Define some default values that can be overridden by system properties
                hive.log.threshold=ALL
                hive.root.logger=INFO,DRFA
                hive.log.dir=$java.io.tmpdir/$user.name
                hive.log.file=hive.log

                # Define the root logger to the system property "hadoop.root.logger".
                log4j.rootLogger=$hive.root.logger, EventCounter

                # Logging Threshold
                log4j.threshold=$hive.log.threshold

                #
                # Daily Rolling File Appender
                #
                # Use the PidDailyerRollingFileAppend class instead if you want to use separate log files
                # for different CLI session.
                #
                # log4j.appender.DRFA=org.apache.hadoop.hive.ql.log.PidDailyRollingFileAppender

                log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender

                log4j.appender.DRFA.File=$hive.log.dir/$hive.log.file

                # Rollver at midnight
                log4j.appender.DRFA.DatePattern=.yyyy-MM-dd

                # 30-day backup
                #log4j.appender.DRFA.MaxBackupIndex= 30
                log4j.appender.DRFA.MaxFileSize = 256MB
                log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout


                # Pattern format: Date LogLevel LoggerName LogMessage
                #log4j.appender.DRFA.layout.ConversionPattern=%dISO8601 %p %c: %m%n
                # Debugging Pattern format
                log4j.appender.DRFA.layout.ConversionPattern=%dISO8601 %-5p [%t]: %c2 (%F:%M(%L)) - %m%n


                #
                # console
                # Add "console" to rootlogger above if you want to use this
                #
                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=%dyy/MM/dd HH:mm:ss [%t]: %p %c2: %m%n
                log4j.appender.console.encoding=UTF-8

                #custom logging levels
                #log4j.logger.xxx=DEBUG

                #
                # Event Counter Appender
                # Sends counts of logging messages at different severity levels to Hadoop Metrics.
                #
                log4j.appender.EventCounter=org.apache.hadoop.hive.shims.HiveEventCounter


                log4j.category.DataNucleus=ERROR,DRFA
                log4j.category.Datastore=ERROR,DRFA
                log4j.category.Datastore.Schema=ERROR,DRFA
                log4j.category.JPOX.Datastore=ERROR,DRFA
                log4j.category.JPOX.Plugin=ERROR,DRFA
                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=%dyy/MM/dd HH:mm:ss [%t]: %p %c2: %m%n
                log4j.appender.console.encoding=UTF-8

                #custom logging levels
                #log4j.logger.xxx=DEBUG

                #
                # Event Counter Appender
                # Sends counts of logging messages at different severity levels to Hadoop Metrics.
                #
                log4j.appender.EventCounter=org.apache.hadoop.hive.shims.HiveEventCounter


                log4j.category.DataNucleus=ERROR,DRFA
                log4j.category.Datastore=ERROR,DRFA
                log4j.category.Datastore.Schema=ERROR,DRFA
                log4j.category.JPOX.Datastore=ERROR,DRFA
                log4j.category.JPOX.Plugin=ERROR,DRFA





                share|improve this answer














                Hello I couldn’t found the log4j. properties settings. Where exactly it’s located?



                 # Licensed to the Apache Software Foundation (ASF) under one
                # or more contributor license agreements. See the NOTICE file
                # distributed with this work for additional information
                # regarding copyright ownership. The ASF licenses this file
                # to you under the Apache License, Version 2.0 (the
                # "License"); you may not use this file except in compliance
                # with the License. You may obtain a copy of the License at
                #
                # http://www.apache.org/licenses/LICENSE-2.0
                #
                # Unless required by applicable law or agreed to in writing, software
                # distributed under the License is distributed on an "AS IS" BASIS,
                # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                # See the License for the specific language governing permissions and
                # limitations under the License.

                # Define some default values that can be overridden by system properties
                hive.log.threshold=ALL
                hive.root.logger=INFO,DRFA
                hive.log.dir=$java.io.tmpdir/$user.name
                hive.log.file=hive.log

                # Define the root logger to the system property "hadoop.root.logger".
                log4j.rootLogger=$hive.root.logger, EventCounter

                # Logging Threshold
                log4j.threshold=$hive.log.threshold

                #
                # Daily Rolling File Appender
                #
                # Use the PidDailyerRollingFileAppend class instead if you want to use separate log files
                # for different CLI session.
                #
                # log4j.appender.DRFA=org.apache.hadoop.hive.ql.log.PidDailyRollingFileAppender

                log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender

                log4j.appender.DRFA.File=$hive.log.dir/$hive.log.file

                # Rollver at midnight
                log4j.appender.DRFA.DatePattern=.yyyy-MM-dd

                # 30-day backup
                #log4j.appender.DRFA.MaxBackupIndex= 30
                log4j.appender.DRFA.MaxFileSize = 256MB
                log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout


                # Pattern format: Date LogLevel LoggerName LogMessage
                #log4j.appender.DRFA.layout.ConversionPattern=%dISO8601 %p %c: %m%n
                # Debugging Pattern format
                log4j.appender.DRFA.layout.ConversionPattern=%dISO8601 %-5p [%t]: %c2 (%F:%M(%L)) - %m%n


                #
                # console
                # Add "console" to rootlogger above if you want to use this
                #
                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=%dyy/MM/dd HH:mm:ss [%t]: %p %c2: %m%n
                log4j.appender.console.encoding=UTF-8

                #custom logging levels
                #log4j.logger.xxx=DEBUG

                #
                # Event Counter Appender
                # Sends counts of logging messages at different severity levels to Hadoop Metrics.
                #
                log4j.appender.EventCounter=org.apache.hadoop.hive.shims.HiveEventCounter


                log4j.category.DataNucleus=ERROR,DRFA
                log4j.category.Datastore=ERROR,DRFA
                log4j.category.Datastore.Schema=ERROR,DRFA
                log4j.category.JPOX.Datastore=ERROR,DRFA
                log4j.category.JPOX.Plugin=ERROR,DRFA
                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=%dyy/MM/dd HH:mm:ss [%t]: %p %c2: %m%n
                log4j.appender.console.encoding=UTF-8

                #custom logging levels
                #log4j.logger.xxx=DEBUG

                #
                # Event Counter Appender
                # Sends counts of logging messages at different severity levels to Hadoop Metrics.
                #
                log4j.appender.EventCounter=org.apache.hadoop.hive.shims.HiveEventCounter


                log4j.category.DataNucleus=ERROR,DRFA
                log4j.category.Datastore=ERROR,DRFA
                log4j.category.Datastore.Schema=ERROR,DRFA
                log4j.category.JPOX.Datastore=ERROR,DRFA
                log4j.category.JPOX.Plugin=ERROR,DRFA






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 12 at 12:36

























                answered Nov 11 at 13:35









                Abdoulaye Diallo

                247




                247



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244668%2fhive-log4jwarn-no-such-property-maxfilesize-in-org-apache-log4j-dailyrollingf%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Use pre created SQLite database for Android project in kotlin

                    Darth Vader #20

                    Ondo