-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-3393] [SQL] Align the log4j configuration for Spark & SparkSQLCLI #2263
Conversation
@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? :) |
# 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The license header is not exactly the same as other files, I'm not sure but maybe RAT may reject this one.
I know that Besides that, I think these are generally good to have, thanks! |
log4j.category.JPOX.General=ERROR,DRFA | ||
log4j.category.JPOX.Enhancer=ERROR,DRFA | ||
log4j.category.scheduler.DAGScheduler=ERROR,DRFA | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this line
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 |
Not all |
Thank you @liancheng . I didn't notice that file previously. :) test this please. |
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 |
@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 I agree it's probably more clutter if we add those 3 files, but at least we should keep the |
I'd agree that at least |
Thank you @liancheng , I've updated the code. |
QA tests have started for PR 2263 at commit
|
QA tests have finished for PR 2263 at commit
|
Oh, okay thanks for explaining this! My inclination would be to update our code to read from |
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 |
e027d23
to
53bffa9
Compare
@liancheng @marmbrus I've updated the code by removing the log4j initialization code in |
QA tests have started for PR 2263 at commit
|
Does this mean Hive log will never be initialized? Won't this prevent us from checking Hive logs? |
QA tests have finished for PR 2263 at commit
|
The Hive If we remove the logic in |
@liancheng so is this ready to merge? |
@liancheng ping |
Sorry, this LGTM. |
Thanks! Merged to master. |
User may be confused for the HQL logging & configurations, we'd better provide a default templates.
Both files are copied from Hive.