Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to locate errors through logs in hive

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to locate errors through logs in hive. Xiaobian thinks it is quite practical, so share it with everyone to learn. I hope you can gain something after reading this article. Let's not say much. Let's take a look at it together with Xiaobian.

In the default log level, DEBUG information cannot be output, so that all kinds of detailed error messages cannot be counted incorrectly. However, we can use these debug logs to locate errors by modifying the log level of log4j output in two ways:

[wyp@l-datalog5.data.cn1 ~]$ hive --hiveconf hive.root.logger=DEBUG,console

Or find the hive.root.logger property in the ${HIVE_HOME}/conf/hive-log4j.properties file and modify it to the following setting

hive.root.logger=DEBUG,console

We cannot modify log4j's log output level by:

hive> set hiveconf:hive.root.logger=DEBUG,console;

The above is how to locate errors through logs in hive. Xiaobian believes that some knowledge points may be seen or used in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report