hive 오류 시작: Exception in thread "main"java.lang.IllegalArgumentException

8779 단어 Hive

하이브 타임즈 시작이 틀렸어요.


오류 메시지:

Exception in thread "main" java.lang.IllegalArgumentException: 
        java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D
        at org.apache.hadoop.fs.Path.initialize(Path.java:205)
        at org.apache.hadoop.fs.Path.(Path.java:171)
        at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:659)
        at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:582)
        at org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:549)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:750)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:686)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D
        at java.net.URI.checkPath(URI.java:1823)
        at java.net.URI.(URI.java:745)
        at org.apache.hadoop.fs.Path.initialize(Path.java:202)
        ... 12 more

디렉토리 만들기
mkdir /home/hadoop/apps/hive-2.3.2/tmp

hive-site를 편집합니다.xml, 시스템:java.io.tmpdir를 방금 만든 경로로 바꿨습니다. 제가 찾아봤는데 수정해야 할 네 군데가 있습니다.
<property>
    <name>hive.exec.local.scratchdirname>
    <value>${system:java.io.tmpdir}/${system:user.name}value>
    <description>Local scratch space for Hive jobsdescription>
property>
<property>
    <name>hive.downloaded.resources.dirname>
    <value>${system:java.io.tmpdir}/${hive.session.id}_resourcesvalue>
    <description>Temporary local directory for added resources in the remote file system.description>
property>
<property>
    <name>hive.querylog.locationname>
    <value>${system:java.io.tmpdir}/${system:user.name}value>
    <description>Location of Hive run time structured log filedescription>
property>
<property>
    <name>hive.server2.logging.operation.log.locationname>
    <value>${system:java.io.tmpdir}/${system:user.name}/operation_logsvalue>
    <description>Top level directory where operation logs are stored if logging functionality is enableddescription>
property>

수정된 모습
<property>
    <name>hive.exec.local.scratchdirname>
    <value>/home/hadoop/apps/hive-2.3.2/tmp/${system:user.name}value>
    <description>Local scratch space for Hive jobsdescription>
property>
<property>
    <name>hive.downloaded.resources.dirname>
    <value>/home/hadoop/apps/hive-2.3.2/tmp/${hive.session.id}_resourcesvalue>
    <description>Temporary local directory for added resources in the remote file system.description>
property>
<property>
    <name>hive.querylog.locationname>
    <value>/home/hadoop/apps/hive-2.3.2/tmp/${system:user.name}value>
    <description>Location of Hive run time structured log filedescription>
property>
<property>
    <name>hive.server2.logging.operation.log.locationname>
    <value>/home/hadoop/apps/hive-2.3.2/tmp/${system:user.name}/operation_logsvalue>
    <description>Top level directory where operation logs are stored if logging functionality is enableddescription>
property>

다시 시작하면 돼요.

좋은 웹페이지 즐겨찾기