Hive报错[ERROR] Failed with exception java.io.IOException:java.lang.IllegalArgumentException

 Hive报错[ERROR] Failed with exception java.io.IOException:java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ${system:user.name}


解决方法:新建文件夹 ../apache-hive-1.2.1-bin/iotmp,进入apache-hive-1.2.1-bin  ->  conf -> hive-site.xml,

添加属性 system:java.io.tmpdir:

system:java.io.tmpdir
../apache-hive-1.2.1-bin/iotmp      ##注意这里路径为本机上的绝对路径



如果还是不行

继续在hive-site.xml中,

hive.exec.local.scratchdir

     ${system:java.io.tmpdir}/${ system:user.name}

改成:

    hive.exec.local.scratchdir

    ${ java.io.tmpdir}/${ user.name}

你可能感兴趣的:(Hadoop学习笔记)