赞
踩
目标:修改hive的运行日志存放到hive所在目录下
mv hive-log4j.properties.template hive-log4j.properties
vim hive-log4j.properties
#向其中hive.log.dir后添加你的hive所在的路径
property.hive.log.dir = /opt/module/hive-3.1.2/logs
hive 数据仓库的原始位置是在hdfs上的:/user/hive/warehouse路径下
编辑conf目录下的hive-site.xml
<property>
<name>hive.metastore.warehouse.dir</name>
<!--此处修改-->
<value>/user/hive/warehouse</value>
<description>location of default database for the warehouse</description>
</property>
<property>
<!--数据库表的头信息-->
<name>hive.cli.print.header</name>
<value>true</value>
</property>
<property>
<!--当前数据库-->
<name>hive.cli.print.current.db</name>
<value>true</value>
</property>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。