Hive启动时,遇到java.net.URISyntaxException: Relative path in absolute URI

当启动hive的时候遇到如下错误:

Hive启动时,遇到java.net.URISyntaxException: Relative path in absolute URI_第1张图片

解决办法:

1.创建一个工作目录

mkdir /opt/hive

2.在hive1.2 的配置文件hive-site.xml中修改如下配置,修改成绝对路径:

 

    hive.exec.scratchdir

    /opt/hive/tmp

    HDFS root scratch dir for Hive jobs which gets created with write all (733) permission. For each connecting user, an HDFS scratch dir: ${hive.exec.scratchdir}/<username> is created, with ${hive.scratch.dir.permission}.

 

 

    hive.exec.local.scratchdir

    /opt/hive/hivedir

    Local scratch space for Hive jobs

 

 

    hive.downloaded.resources.dir

    /opt/hive/resouces

    Temporary local directory for added resources in the remote file system.

 

 

    hive.server2.logging.operation.log.location

    /opt/hive/operation_logs

    Top level directory where operation logs are stored if logging functionality is enabled

 

 

 

你可能感兴趣的:(hadoop)