zoukankan      html  css  js  c++  java
  • hive报错汇总

    1、需要注意的是,要在namenode(超级用户)上操作,貌似是

    hive> insert into table record_partition partition(trancation_date) select * from record;
    WARNING: Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Consider using a different execution engine (i.e. spark, tez) or using Hive 1.X releases.
    Query ID = orco_20170616153817_6fd6bc63-4ae2-4267-b69d-d6ffe986479b
    Total jobs = 3
    Launching Job 1 out of 3
    Number of reduce tasks is set to 0 since there's no reduce operator
    java.io.IOException: The ownership on the staging directory /tmp/hadoop-yarn/staging/orco/.staging is not as expected. It is owned by root. The directory must be owned by the submitter orco or by orco
            at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(JobSubmissionFiles.java:112)
            at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:348)
            at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1285)
            at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1282)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAs(Subject.java:422)
            at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614)
            at org.apache.hadoop.mapreduce.Job.submit(Job.java:1282)
            at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:562)
            at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:557)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAs(Subject.java:422)
            at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614)
            at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:557)
            at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:548)
            at org.apache.hadoop.hive.ql.exec.mr.ExecDriver.execute(ExecDriver.java:434)
            at org.apache.hadoop.hive.ql.exec.mr.MapRedTask.execute(MapRedTask.java:138)
            at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:197)
            at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:100)
            at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:2073)
            at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1744)
            at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1453)
            at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1171)
            at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1161)
            at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:232)
            at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:183)
            at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:399)
            at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:776)
            at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:714)
            at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:641)
            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.main(RunJar.java:212)
    Job Submission failed with exception 'java.io.IOException(The ownership on the staging directory /tmp/hadoop-yarn/staging/orco/.staging is not as expected. It is owned by root. The directory must be owned by the submitter orco or by orco)'
    FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask. The ownership on the staging directory /tmp/hadoop-yarn/staging/orco/.staging is not as expected. It is owned by root. The directory must be owned by the submitter orco or by orco

    解决办法,参考:http://hadoop.apache.org/docs/r1.0.4/cn/hdfs_permissions_guide.html

    [orco@node1 ~]$ hadoop fs -ls /tmp/hadoop-yarn/staging/orco/
    Found 1 items
    drwxrwxrwx   - root admin          0 2017-06-15 19:48 /tmp/hadoop-yarn/staging/orco/.staging
    [orco@node1 ~]$ hadoop fs -chown -R orco /tmp/hadoop-yarn/staging/orco/.staging
    [orco@node1 ~]$ hadoop fs -ls /tmp/hadoop-yarn/staging/orco/
    Found 1 items
    drwx------   - orco admin          0 2017-06-16 00:46 /tmp/hadoop-yarn/staging/orco/.staging
    [orco@node1 ~]$ 
  • 相关阅读:
    sgu175pascal
    poj3659pascal
    poj3411
    传球游戏pascal
    ubuntu 9.04 wubi安装的问题 2009511 13:58:00 (21ic)
    任何道理都是有局限的 20081020 11:07:00 (21ic)
    浓浓的亲情 2008106 8:53:00 (21ic)
    卖买房所得
    黑色的一周 20081018 3:23:00 (21ic)
    度的把握 2008929 20:59:00
  • 原文地址:https://www.cnblogs.com/sorco/p/7027914.html
Copyright © 2011-2022 走看看