hive启动时报Relative path in absolute URI:${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D解决办法

hive启动时遇到以下错误:

Exception in thread “main”java.lang.RuntimeException: java.lang.IllegalArgumentException:java.net.URISyntaxException: Relative path in absolute URI:{system:java.io.tmpdir%7D/%7Bsystem:user.name%7D

解决办法:

在hive下创建临时IO的tmp文件夹。然后将路径配置到hive-site.xml的下列参数中


hive.querylog.location
/usr/local/hive/iotmp
Location of Hive run time structured log file


hive.exec.local.scratchdir
/usr/local/hive/iotmp
Local scratch space for Hive jobs


hive.downloaded.resources.dir
/usr/local/hive/iotmp
Temporary local directory for added resources in the remote file system.

保存,重启hive即可。

[root@master ~]# hive

Logging initialized using configuration in jar:file:/usr/local/hive/lib/hive-common-1.2.0.jar!/hive-log4j.properties

hive> show databases;

OK

default

Time taken: 3.684 seconds, Fetched: 1 row(s)

hive>

你可能感兴趣的:(分布式)