1

我是 hadoop 配置单元的新手,我试图在配置单元表上创建一个一对一的配置单元视图,但我得到一个未知的主机异常:(

  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