Monday, September 19, 2022

#hive-important-question-1

 #hive-important-question-1

what is location of hive log file ?
answer:
Hive logs are stored in the following directories on the cluster's master node. For more information, see View log files on the master node.
/mnt/var/log/hive/
/mnt/var/log/hive/user/

another alternative :
Execute the query with below command



hive --hiveconf hive.root.logger=DRFA --hiveconf hive.log.dir=./logs --hiveconf hive.log.level=DEBUG -e "select foo, count(*) from table where field=value group by foo"


It will create a log file in logs folder. Make sure that the logs folder exist in current directory.
YouTube link: Hadoop series 1 - YouTube
 Follow 👉 syed ashraf quadri👈 for awesome stuff


No comments:

Post a Comment