You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by chenghao-intel <gi...@git.apache.org> on 2014/09/04 03:55:28 UTC

[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

GitHub user chenghao-intel opened a pull request:

    https://github.com/apache/spark/pull/2263

    [SPARK-3393] [SQL] add configuration template for HQL users

    User may be confused for the HQL logging & configurations, we'd better provide a default templates.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/chenghao-intel/spark hive_template

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/2263.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2263
    
----
commit da29da43a1d55a0fb340e963fb7ed15517c8aeaf
Author: Cheng Hao <ha...@intel.com>
Date:   2014-09-04T01:44:31Z

    add configuration template for HQL users

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2263#discussion_r17096826
  
    --- Diff: conf/hive-log4j.properties.template ---
    @@ -0,0 +1,84 @@
    +# 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.root.logger=WARN,console
    +hive.log.dir=/tmp/${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.threshhold=WARN
    +
    +#
    +# 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
    --- End diff --
    
    "Rollver" => "Rollover"


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by chenghao-intel <gi...@git.apache.org>.
Github user chenghao-intel commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-54922757
  
    @marmbrus those files are just a hint for users if they want to change some of the default settings. Probably not everybody knows what files exactly they should put under the folder `conf/`
    e.g.
    `hive-log4j.properties.template` => `hive-log4j.properties` (not `log4j.properties` see `https://github.com/apache/spark/blob/master/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala#L81`)
    `hive-site.xml.template` is for people familiar with `Shark`, they probably confused with the Hive `dependency` means. In `Shark`, `Hive` is also required to be installed, and the `hive-site.xml` is placed under `$HIVE/conf`.
    `configuration.xsl` is the xml style file for display the `hive-site.xml` on browser.(http://www.w3.org/Style/XSL/WhatIsXSL.html)
    
    I agree it's probably more clutter if we add those 3 files, but at least we should keep the `hive-log4j.properties.template`, or we have to change the code `SparkSQLCLIDriver.scala` to load `log4j.properties` instead of the `hive-log4j.properties`.  What do you think?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2263#discussion_r17096828
  
    --- Diff: conf/hive-log4j.properties.template ---
    @@ -0,0 +1,84 @@
    +# 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.root.logger=WARN,console
    +hive.log.dir=/tmp/${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.threshhold=WARN
    +
    +#
    +# 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
    --- End diff --
    
    `# Uncomment the this line to enable 30-day log backup`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] Align the log4j configurati...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/2263


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by chenghao-intel <gi...@git.apache.org>.
Github user chenghao-intel commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-54565805
  
    Thank you @liancheng . I didn't notice that file previously. :)
    
    test this please.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-54520406
  
    Not all `.properties` files are ignored by RAT, it's controlled by `.rat-excludes`, you may add `hive-log4j.properties.template` there.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] Align the log4j configurati...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-55377834
  
    Does this mean Hive log will never be initialized? Won't this prevent us from checking Hive logs?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2263#discussion_r17096823
  
    --- Diff: conf/hive-log4j.properties.template ---
    @@ -0,0 +1,84 @@
    +# 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.
    --- End diff --
    
    The license header is not exactly the same as other files, I'm not sure but maybe RAT may reject this one.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] Align the log4j configurati...

Posted by chenghao-intel <gi...@git.apache.org>.
Github user chenghao-intel commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-55546610
  
    The Hive `LogUtils` just load the specified .properties file for `Log4J`, see https://github.com/apache/hive/blob/branch-0.12/common/src/java/org/apache/hadoop/hive/common/LogUtils.java#L117-L126
    
    If we remove the logic in `SparkSQLCliDriver`, `Log4J` will load the `log4j.properties` under the classpath automatically.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-54410818
  
    I know that `hive-log4j.properties.template` is copied from Hive, but this file really makes me itchy...
    
    Besides that, I think these are generally good to have, thanks!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2263#discussion_r17096833
  
    --- Diff: conf/hive-log4j.properties.template ---
    @@ -0,0 +1,84 @@
    +# 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.root.logger=WARN,console
    +hive.log.dir=/tmp/${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.threshhold=WARN
    +
    +#
    +# 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.layout=org.apache.log4j.PatternLayout
    +
    +# Pattern format: Date LogLevel LoggerName LogMessage
    +#log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
    +# Debugging Pattern format
    +log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n
    +
    +
    +#
    +# console
    --- End diff --
    
    Remove this line


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-54923120
  
    I'd agree that at least `hive-log4j.properties.template` should be good to have. Partly because I myself had once been confused by this a lot...


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2263#discussion_r17096824
  
    --- Diff: conf/hive-log4j.properties.template ---
    @@ -0,0 +1,84 @@
    +# 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.root.logger=WARN,console
    +hive.log.dir=/tmp/${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.threshhold=WARN
    +
    +#
    +# 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
    --- End diff --
    
    I guess this line should be removed?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-54930604
  
      [QA tests have finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/20023/consoleFull) for   PR 2263 at commit [`e027d23`](https://github.com/apache/spark/commit/e027d23f6fc59da8ff6173de4a8efab170de3959).
     * This patch **fails** unit tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by chenghao-intel <gi...@git.apache.org>.
Github user chenghao-intel commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-54925323
  
    Thank you @liancheng , I've updated the code.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] Align the log4j configurati...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-56575244
  
    @liancheng ping


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-55062500
  
    Oh, okay thanks for explaining this!  My inclination would be to update our code to read from `log4j.properties` instead, unless there is some compelling reason not to.  Otherwise, can we maybe add a comment to the template file that explains what it is for and why its needed in addition to the standard config file?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-54916301
  
    Its not really clear to me what this buys over the log4j.template that is already there.  I'm also not sure what the xsl file is for.  Finally an empty hive-site.xml file only saves you from adding `<configuration>` which most users are probably going to copy from wherever they found the hive options they want at.  Given that I think this might be more clutter than its worth.  What do you think?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-54927090
  
      [QA tests have started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/20023/consoleFull) for   PR 2263 at commit [`e027d23`](https://github.com/apache/spark/commit/e027d23f6fc59da8ff6173de4a8efab170de3959).
     * This patch merges cleanly.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by chenghao-intel <gi...@git.apache.org>.
Github user chenghao-intel commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-54407664
  
    @liancheng, this is not change of any code, but kind of hint for the user of HQL, I was asked couple of times for the configuration files, hope it helpful. Any comments? :)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] Align the log4j configurati...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-55384288
  
      [QA tests have finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/20219/consoleFull) for   PR 2263 at commit [`53bffa9`](https://github.com/apache/spark/commit/53bffa9bf31d7bac3c6f51d94189d4568ee80a7d).
     * This patch **passes** unit tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2263#discussion_r17097013
  
    --- Diff: conf/hive-log4j.properties.template ---
    @@ -0,0 +1,84 @@
    +# 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.root.logger=WARN,console
    +hive.log.dir=/tmp/${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.threshhold=WARN
    +
    +#
    +# 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.layout=org.apache.log4j.PatternLayout
    +
    +# Pattern format: Date LogLevel LoggerName LogMessage
    +#log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
    +# Debugging Pattern format
    +log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%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=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %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.metrics.jvm.EventCounter
    +
    +
    +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.category.JPOX.MetaData=ERROR,DRFA
    +log4j.category.JPOX.Query=ERROR,DRFA
    +log4j.category.JPOX.General=ERROR,DRFA
    +log4j.category.JPOX.Enhancer=ERROR,DRFA
    +log4j.category.scheduler.DAGScheduler=ERROR,DRFA
    +
    --- End diff --
    
    Remove this line


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] Align the log4j configurati...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-56244403
  
    @liancheng so is this ready to merge?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] Align the log4j configurati...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-56599320
  
    Sorry, this LGTM.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] Align the log4j configurati...

Posted by chenghao-intel <gi...@git.apache.org>.
Github user chenghao-intel commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-55374805
  
    @liancheng @marmbrus I've updated the code by removing the log4j initialization code in `SparkSQLCLIDriver.scala`, now it will load the `log4j.properties` by default, and it works fine in my cluster testing.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2263#discussion_r17096834
  
    --- Diff: conf/hive-log4j.properties.template ---
    @@ -0,0 +1,84 @@
    +# 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.root.logger=WARN,console
    +hive.log.dir=/tmp/${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.threshhold=WARN
    +
    +#
    +# 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.layout=org.apache.log4j.PatternLayout
    +
    +# Pattern format: Date LogLevel LoggerName LogMessage
    +#log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
    +# Debugging Pattern format
    +log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n
    +
    +
    +#
    +# console
    +# Add "console" to rootlogger above if you want to use this 
    --- End diff --
    
    "rootlogger" => "the root logger"


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2263#discussion_r17096830
  
    --- Diff: conf/hive-log4j.properties.template ---
    @@ -0,0 +1,84 @@
    +# 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.root.logger=WARN,console
    +hive.log.dir=/tmp/${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.threshhold=WARN
    +
    +#
    +# 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.layout=org.apache.log4j.PatternLayout
    +
    +# Pattern format: Date LogLevel LoggerName LogMessage
    +#log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
    --- End diff --
    
    Maybe a newline after this line?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2263#discussion_r17096836
  
    --- Diff: conf/hive-log4j.properties.template ---
    @@ -0,0 +1,84 @@
    +# 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.root.logger=WARN,console
    +hive.log.dir=/tmp/${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.threshhold=WARN
    +
    +#
    +# 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.layout=org.apache.log4j.PatternLayout
    +
    +# Pattern format: Date LogLevel LoggerName LogMessage
    +#log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
    +# Debugging Pattern format
    +log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%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=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n
    +log4j.appender.console.encoding=UTF-8
    +
    +#custom logging levels
    --- End diff --
    
    `# Customized logging configurations goes here`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] Align the log4j configurati...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-57006585
  
    Thanks! Merged to master.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by chenghao-intel <gi...@git.apache.org>.
Github user chenghao-intel commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-54424705
  
    Thanks for reviewing this, you're right, the log4j configuration template mainly for Hive usage (particularly for MapReduce), I've updated the code and keep it simple for demo purpose.
    
    I also checked the other template files under `conf`, seems the `licence header` is not necessary for `.properties` files. Let's do it the same way?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] add configuration template ...

Posted by chenghao-intel <gi...@git.apache.org>.
Github user chenghao-intel commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-55347720
  
    2 logj4j properties files does make people confusing, I will try to update the code, let's see if we can find a simple way to reuse the `log4j.properties`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-3393] [SQL] Align the log4j configurati...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/2263#issuecomment-55374937
  
      [QA tests have started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/20219/consoleFull) for   PR 2263 at commit [`53bffa9`](https://github.com/apache/spark/commit/53bffa9bf31d7bac3c6f51d94189d4568ee80a7d).
     * This patch merges cleanly.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org