1

私は Hadoop ハイブを初めて使用します。ハイブ テーブル上に 1 対 1 のハイブ ビューを作成しようとしましたが、不明なホスト例外が発生します :(

  1. 以下は、テーブルの DDL です。

    CREATE TABLE CLIAMS (
    CLAIM_KEY INT,
    CLAIM_NAME STRING
    )STORED AS SEQUENCEFILE;
    
  2. ビューの定義は次のとおりです。

    create view claimant_view as select * from claims;
    
  3. ビューから選択すると、次の例外がスローされます。

    select * from claimant_view;
    Total MapReduce jobs = 1
    Launching Job 1 out of 1
    Number of reduce tasks is set to 0 since there's no reduce operator
    WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files.
    Execution log at: /tmp/root/root_20130128022828_021334d7-cd4e-4499-b053-d239b7b839ee.log
    java.net.UnknownHostException: server-1358839685-az-1-region-a-geo-1.localdomain: server-1358839685-az-1-region-a-geo-1.localdomain
            at java.net.InetAddress.getLocalHost(InetAddress.java:1360)
            at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:920)
            at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:896)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAs(Subject.java:396)
            at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1332)
            at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:896)
            at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:870)
            at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:435)
            at org.apache.hadoop.hive.ql.exec.ExecDriver.main(ExecDriver.java:677)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.hadoop.util.RunJar.main(RunJar.java:208)
    Job Submission failed with exception 'java.net.UnknownHostException(server-1358839685-az-1-region-a-geo-1.localdomain: server-1358839685-az-1-region-a-geo-1.localdomain)'
    Execution failed with exit status: 1
    Obtaining error information
    
    Task failed!
    Task ID:
      Stage-1
    

ログ:

/tmp/root/hive.log

誰かが親切に問題を理解するのを手伝ってくれます。さらに情報が必要な場合はお知らせください。

4

0 に答える 0