hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yang <>
Subject how to control hive log location on 0.13?
Date Thu, 17 Jul 2014 18:28:13 GMT
we just moved to hadoop2.0 (HDP2.1 distro). it turns out that the new hive
version generates a lot of logs into /tmp/ and is quickly creating the
danger of running out of our /tmp/ space.

I see these 2 different logs :

[myuser@mybox ~]$  ls -lt /tmp/myuser/
total 1988
-rw-rw-r-- 1 myuser myuser  191687 2014-07-17 11:17 hive.log
-rw-rw-r-- 1 myuser myuser   14472 2014-07-16 14:43
-rw-rw-r-- 1 myuser myuser   14260 2014-07-16 14:04
-rw-rw-r-- 1 myuser myuser   14254 2014-07-16 13:42

from the doc at
I can see that "per Hive session basis in /tmp/<>/, but can be
configured in hive-site.xml
the hive.querylog.location property.",
but I tried to pass it to -hiveconf hive.querylog.location=/tmp/mycustomlogdir/
 , doesn't seem to work; the hive.log location is not changed by this
approach either.

so how can I change the location of both the logs , by some per-script
params ? (i.e. we can't afford to change the system hive-site.xml or
/etc/hive/conf etc)

Thanks a lot

View raw message