Hive 在运行时的各种问题汇总

STATEMENT…

当启动Hive的时候报错:

<code class="hljs applescript has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: "Source Code Pro", monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;">Caused <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">by</span>: javax.jdo.JDOException: Couldnt obtain a new sequence (unique <span class="hljs-property" style="box-sizing: border-box;">id</span>) : Cannot execute statement: impossible <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">to</span> <span class="hljs-command" style="box-sizing: border-box;">write</span> <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">to</span> binary <span class="hljs-command" style="box-sizing: border-box;">log</span> <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">since</span> BINLOG_FORMAT = STATEMENT <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">and</span> <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">at</span> least one table uses a storage engine limited <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">to</span> row-based logging. InnoDB <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">is</span> limited <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">to</span> row-logging when <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">transaction</span> isolation level <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">is</span> READ COMMITTED <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">or</span> READ UNCOMMITTED.
NestedThrowables:
java.sql.SQLException: Cannot execute statement: impossible <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">to</span> <span class="hljs-command" style="box-sizing: border-box;">write</span> <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">to</span> binary <span class="hljs-command" style="box-sizing: border-box;">log</span> <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">since</span> BINLOG_FORMAT = STATEMENT <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">and</span> <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">at</span> least one table uses a storage engine limited <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">to</span> row-based logging. InnoDB <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">is</span> limited <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">to</span> row-logging when <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">transaction</span> isolation level <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">is</span> READ COMMITTED <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">or</span> READ UNCOMMITTED.</code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right: 1px solid rgb(221, 221, 221); list-style: none; text-align: right; background-color: rgb(238, 238, 238);"><li style="box-sizing: border-box; padding: 0px 5px;">1</li><li style="box-sizing: border-box; padding: 0px 5px;">2</li><li style="box-sizing: border-box; padding: 0px 5px;">3</li></ul>

这个问题是由于hive的元数据存储MySQL配置不当引起的,可以这样解决:

<code class="hljs vbnet has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: "Source Code Pro", monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;">mysql> <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">set</span> <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">global</span> binlog_format=<span class="hljs-comment" style="color: rgb(136, 0, 0); box-sizing: border-box;">'MIXED';</span></code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right: 1px solid rgb(221, 221, 221); list-style: none; text-align: right; background-color: rgb(238, 238, 238);"><li style="box-sizing: border-box; padding: 0px 5px;">1</li></ul>

2 For direct MetaStore DB connections, we don’t support retries at the client level.

当在Hive中创建表的时候报错:

<code class="hljs vbnet has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: "Source Code Pro", monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;">create table years (year <span class="hljs-built_in" style="color: rgb(102, 0, 102); box-sizing: border-box;">string</span>, <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">event</span> <span class="hljs-built_in" style="color: rgb(102, 0, 102); box-sizing: border-box;">string</span>) row format delimited fields terminated <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">by</span> <span class="hljs-comment" style="color: rgb(136, 0, 0); box-sizing: border-box;">'\t';</span>
FAILED: Execution <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">Error</span>, <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">return</span> code <span class="hljs-number" style="color: rgb(0, 102, 102); box-sizing: border-box;">1</span> <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">from</span> org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:<span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">For</span> direct MetaStore DB connections, we don<span class="hljs-comment" style="color: rgb(136, 0, 0); box-sizing: border-box;">'t support retries at the client level.)</span></code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right: 1px solid rgb(221, 221, 221); list-style: none; text-align: right; background-color: rgb(238, 238, 238);"><li style="box-sizing: border-box; padding: 0px 5px;">1</li><li style="box-sizing: border-box; padding: 0px 5px;">2</li></ul>

这是由于字符集的问题,需要配置MySQL的字符集:

<code class="hljs applescript has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: "Source Code Pro", monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;">mysql> alter database hive <span class="hljs-property" style="box-sizing: border-box;">character</span> <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">set</span> latin1;</code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right: 1px solid rgb(221, 221, 221); list-style: none; text-align: right; background-color: rgb(238, 238, 238);"><li style="box-sizing: border-box; padding: 0px 5px;">1</li></ul>

3 HiveConf of name hive.metastore.local does not exist

当执行Hive客户端时候出现如下错误:

<code class="hljs applescript has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: "Source Code Pro", monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;">WARN conf.HiveConf: HiveConf <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">of</span> <span class="hljs-property" style="box-sizing: border-box;">name</span> hive.metastore.<span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">local</span> <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">does</span> <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">not</span> exist</code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right: 1px solid rgb(221, 221, 221); list-style: none; text-align: right; background-color: rgb(238, 238, 238);"><li style="box-sizing: border-box; padding: 0px 5px;">1</li></ul>

这是由于在0.10 0.11或者之后的HIVE版本 hive.metastore.local 属性不再使用。将该参数从hive-site.xml删除即可。

4 Permission denied: user=anonymous, access=EXECUTE, inode=”/tmp”

在启动Hive报如下错误:

<code class="hljs ruby has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: "Source Code Pro", monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;">(<span class="hljs-constant" style="box-sizing: border-box;">Permission</span> <span class="hljs-symbol" style="color: rgb(0, 102, 102); box-sizing: border-box;">denied:</span> user=anonymous, access=<span class="hljs-constant" style="box-sizing: border-box;">EXECUTE</span>, inode=<span class="hljs-string" style="color: rgb(0, 136, 0); box-sizing: border-box;">"/tmp"</span><span class="hljs-symbol" style="color: rgb(0, 102, 102); box-sizing: border-box;">:hadoop</span><span class="hljs-symbol" style="color: rgb(0, 102, 102); box-sizing: border-box;">:supergroup</span><span class="hljs-symbol" style="color: rgb(0, 102, 102); box-sizing: border-box;">:drwx------</span></code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right: 1px solid rgb(221, 221, 221); list-style: none; text-align: right; background-color: rgb(238, 238, 238);"><li style="box-sizing: border-box; padding: 0px 5px;">1</li></ul>

这是由于Hive没有hdfs:/tmp目录的权限,赋权限即可:

<code class="hljs lasso has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: "Source Code Pro", monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;">hadoop dfs <span class="hljs-attribute" style="box-sizing: border-box;">-chmod</span> <span class="hljs-attribute" style="box-sizing: border-box;">-R</span> <span class="hljs-number" style="color: rgb(0, 102, 102); box-sizing: border-box;">777</span> /tmp</code><code class="hljs lasso has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: "Source Code Pro", monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;"></code><div class="blog-body" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 1.6rem; font-family: "Lantinghei SC", "Open Sans", Arial, "Hiragino Sans GB", "Microsoft YaHei", STHeiti, "WenQuanYi Micro Hei", SimSun, sans-serif; word-wrap: break-word; color: rgb(61, 70, 77); line-height: 30px; margin-top: 30px;"><val data-name="blog_content_type" data-value="richtext" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent;"></val><div class="BlogContent" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent;"><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";">hive</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">的常见问题</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: Consolas;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">1.     </span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:10000</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">问题</span></span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">:</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";">hive --service hiveserver  </span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">启动</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";">hiveserver</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">服务</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">解决方法</span></span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">:端口被占用</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";">  </span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">,</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";">kill </span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">该端口进程或者重新制定端口</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";"> hive --service hiveserver -p 10001</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: Consolas;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">2.  </span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">Error in metadata: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">解决方法</span></span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">:</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";">./hive -hiveconf hive.root.logger=DEBUG,console</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">输出错误日志,进行修改。一般都是</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";">hive</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">用户</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";">mysql</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">库权限问题.</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: Consolas;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">3.</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">Error: dl failure on line 864</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: Consolas;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">Error: failed /home/app/jdk1.7.0_21/jre/lib/i386/client/libjvm.so, because /home/app/jdk1.7.0_21/jre/lib/i386/client/libjvm.so: cannot restore segment prot after reloc: Permission denied</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px; font-family: "Century Gothic";"> </span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">解决方法</span></span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">:</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";"> /usr/sbin/setenforce 0</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent;">4.</span></span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">运行</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";">Hadoop</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">程序</span></span> <span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">时,出现</span></span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">  </span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">Filesystem closed</span></span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">异常。</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">通过查证是设置了缓存。需要取消缓存。</span></span><span style="font-family: "Century Gothic"; font-size: 16px; background-color: transparent;"> </span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">通过修改配置文件</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";">core-site.xml</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">:</span></span><span style="font-family: "Century Gothic"; font-size: 16px; background-color: transparent;"> </span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px; background: rgb(226, 239, 217);"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 12px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: Consolas;"><property></span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px; text-indent: 28px; background: rgb(226, 239, 217);"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 12px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: Consolas;"><name>fs.hdfs.impl.disable.cache</name></span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px; text-indent: 28px; background: rgb(226, 239, 217);"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 12px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: Consolas;"><value>true</value></span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px; background: rgb(226, 239, 217);"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 12px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: Consolas;"></property></span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">程序仍然出现上述问题。</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">在程序中,加上这条语句:</span></span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">JobConf  </span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">jobConf.set("fs.hdfs.impl.disable.cache", "true");</span></span><span style="font-family: "Century Gothic"; font-size: 16px; background-color: transparent;"> </span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">程序运行成功。</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">5 </span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">Failed with exception Unable to move sourcehdfs://vmtmstorm01:8020/test to destination hdfs://vmtmstorm01:8020/user/hive/warehouse/ptest/name=ww/test</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;">FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask</span></span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; margin-bottom: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: 16px;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent;"><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">原因</span></span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">:由于</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";">hive</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">的用户权限问题,</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: "Century Gothic";">hive</span><span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-family: 宋体;">在源目录或者是目的目录没有操作的权限</span></span></p></div></div>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值